680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
|
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
|
-
+
+
-
-
+
+
|
}
@ "noop":0}
@ </script>
zFooter = skin_get("footer");
if( sqlite3_strlike("%</body>%", zFooter, 0)==0 ){
@ <script src='%s(g.zBaseURL)/main.js' type='application/javascript'>\
@ <script src='%s(g.zBaseURL)/main.js/%S(MANIFEST_UUID)' \
@ type='application/javascript'></script>
}
if( g.thTrace ) Th_Trace("BEGIN_FOOTER<br />\n", -1);
Th_Render(zFooter);
if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1);
/* Render trace log if TH1 tracing is enabled. */
if( g.thTrace ){
cgi_append_content("<span class=\"thTrace\"><hr />\n", -1);
cgi_append_content(blob_str(&g.thLog), blob_size(&g.thLog));
cgi_append_content("</span>\n", -1);
}
/* Add document end mark if it was not in the footer */
if( sqlite3_strlike("%</body>%", zFooter, 0)!=0 ){
@ <script src='%s(g.zBaseURL)/main.js' type='application/javascript'>\
@ </script>
@ <script src='%s(g.zBaseURL)/main.js/%S(MANIFEST_UUID)' \
@ type='application/javascript'></script>
@ </body>
@ </html>
}
}
/*
** Begin a side-box on the right-hand side of a page. The title and
|
843
844
845
846
847
848
849
850
851
852
853
854
855
856
|
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
|
+
|
** Return the javascript
*/
void page_main_js(void){
Blob mainjs;
cgi_set_content_type("application/javascript");
blob_init(&mainjs, builtin_text("main.js"), -1);
cgi_set_content(&mainjs);
g.isConst = 1;
}
/*
** WEBPAGE: test_env
**
** Display CGI-variables and other aspects of the run-time
|