Diff
Not logged in

Differences From Artifact [b5f484dbf4]:

To Artifact [3e0b84e52a]:


406
407
408
409
410
411
412
413

414
415
416
417

418
419
420
421
422
423
424
406
407
408
409
410
411
412

413
414
415
416

417
418
419
420
421
422
423
424







-
+



-
+







** functionality, just nice-to-haves. Only call this once per page.
*/
void document_emit_js(void){
  if(!builtin_bundle_all_fossil_js_apis()){
    builtin_emit_fossil_js_apis("dom", "copybutton",
                                "pikchr", 0);
  }
  style_emit_script_tag(0,0);
  style_script_begin(__FILE__,__LINE__);
  CX("window.addEventListener('load', "
     "()=>window.fossil.pikchr.addSrcView(), "
     "false);\n");
  style_emit_script_tag(1,0);
  style_script_end();
}

/*
** Guess the mime-type of a document based on its name.
*/
const char *mimetype_from_name(const char *zName){
  const char *z;