|
@@ -100,7 +100,7 @@ block content
|
|
|
window.wikiEnabled = #{!!(settings.apis.wiki && settings.apis.wiki.url)};
|
|
window.wikiEnabled = #{!!(settings.apis.wiki && settings.apis.wiki.url)};
|
|
|
window.requirejs = {
|
|
window.requirejs = {
|
|
|
"paths" : {
|
|
"paths" : {
|
|
|
- "mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML",
|
|
|
|
|
|
|
+ "mathjax": "#{buildJsPath('/libs/mathjax/MathJax.js', {qs:{config:'TeX-AMS_HTML'}})}",
|
|
|
"moment": "libs/moment-2.7.0",
|
|
"moment": "libs/moment-2.7.0",
|
|
|
"libs/pdf": "libs/pdfjs-1.3.91/pdf"
|
|
"libs/pdf": "libs/pdfjs-1.3.91/pdf"
|
|
|
},
|
|
},
|
|
@@ -129,7 +129,7 @@ block content
|
|
|
|
|
|
|
|
- var pdfPath = 'libs/pdfjs-1.3.91/pdf.worker.js'
|
|
- var pdfPath = 'libs/pdfjs-1.3.91/pdf.worker.js'
|
|
|
- var fingerprintedPath = fingerprint(jsPath+pdfPath)
|
|
- var fingerprintedPath = fingerprint(jsPath+pdfPath)
|
|
|
- - var pdfJsWorkerPath = buildJsPath(pdfPath, fingerprintedPath)
|
|
|
|
|
|
|
+ - var pdfJsWorkerPath = buildJsPath(pdfPath, {fingerprint:fingerprintedPath})
|
|
|
|
|
|
|
|
|
|
|
|
|
script(type='text/javascript').
|
|
script(type='text/javascript').
|