Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using jQuery with Jekyll site hosted on Github pages

I have a simpled Jekyll blog hosted on github pages and I have included jQuery and a tablesorter plugin but come across error and to all my knowledge this error is caused by not having jQuery loaded in the correct order. my image below shows the code is in the right order.. so my question is simply is it being stopped by Github itself somehow?

and if so how?

my code of include scripts

edit: for completion/clarity here is the exact code:

<script type="text/javascript" src="/js/jquery.min.js" ></script>

<script type="text/javscript" src="/js/jquery.tablesorter.min.js" ></script>  

<script type="text/javascript">$(document).ready(function() { 
 if(jQuery("table.tablesorter").length > 0)
   {  
    $.tablesorter.defaults.widgets = ['zebra']; }
   }
 );
like image 570
Mat Avatar asked Oct 22 '22 06:10

Mat


1 Answers

turns out it's not a jekyll or github issue having copied files to my own server. it seems to be an issue with my plugins and jQuery 2.0.0, going back to 1.9.0 works.

ugh

like image 148
Mat Avatar answered Oct 28 '22 19:10

Mat