Search code examples
javascriptnode.jsejsmathquill

MathQuil API Inclusion


MathQuill seems to be particularly hard to include in our project, when we exactly follow the instructions off their website and we put:

<link rel="stylesheet" href="file:///mathquill-0.10.1/mathquill.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="file:///mathquill-0.10.1/mathquill.js"></script>

Our directory layout (the file the above code is in is landing.ejs) It does not work.The console errors when running the program. We think it is quite likely this is an issue with ejs although we are unsure of this and any help would be greatly appreciated.


Solution

  • So I eventually found out the answer myself through a considerable amount of painful trial and error, ultimately the answer was or me to use the mathquill resources in my project in GitHub to create my own CDN using RawGit, I still have no idea why this works, but it does.