forked from bgromov/wiki-mathjax
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unneeded cross-site scripting override. Clean up.
Signed-off-by: Or Sharir <or@sharir.org>
- Loading branch information
Showing
3 changed files
with
1 addition
and
70 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,10 @@ | ||
var config = chrome.extension.getURL('mathjax_config.js'); | ||
// $('script').first().after('<script type="text/javascript" src="' + config + '" ></script>'); | ||
var mathjax = chrome.extension.getURL('MathJax/MathJax.js'); | ||
// $('script').first().after('<script type="text/javascript" src="' + mathjax + '" ></script>'); | ||
var jquery = chrome.extension.getURL('jquery-min-1.7.2.js'); | ||
// $('script').first().after('<script type="text/javascript" src="' + jquery + '" ></script>'); | ||
var dynamic_math = chrome.extension.getURL('dynamic_math.js'); | ||
// $('script').first().after('<script type="text/javascript" src="' + dynamic_math + '" ></script>'); | ||
|
||
$.include([config, jquery], function() { | ||
$.include([mathjax], function() { | ||
$.include([dynamic_math]); | ||
}); | ||
}); | ||
// $('script').first().after('<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'); | ||
// var render_math_in_preview = 'document.addEventListener("pjax:end", function(){alert("Test");MathJax.Hub.Queue(["Typeset", MathJax.Hub]);});'; | ||
// var render_math_in_preview = '\ | ||
// jQuery(".js-preview-tab").on("click", function(e) { \ | ||
// function didLoadPreview() { \ | ||
// alert("Test3!!!"); \ | ||
// alert(window.MathJax);\ | ||
// window.MathJax.Hub.Queue(["Typeset", window.MathJax.Hub]); \ | ||
// } \ | ||
// setTimeout(didLoadPreview, 500); \ | ||
// });'; | ||
// alert(render_math_in_preview); | ||
// $('script').first().after('<script type="text/javascript">' + render_math_in_preview + '</script>'); | ||
// $(document).on('preview:render', function (t) { | ||
// alert('preview:render'); | ||
// MathJax.Hub.Queue(["Typeset", MathJax.Hub]); | ||
// }); | ||
// $.ready(function(){ | ||
// $('.js-preview-tab').on("click", function(e) { | ||
// function didLoadPreview() { | ||
// alert("Test3!!!"); | ||
// window.MathJax.Hub.Queue(["Typeset", window.MathJax.Hub]); | ||
// } | ||
// setTimeout(didLoadPreview, 2000); | ||
// }); | ||
// }); | ||
|
||
// $.ready(function(){ | ||
// preview:render | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters