1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-08-24 18:22:55 +02:00

remove jquery dependency

used getElementsByTagName which has support all the way down to IE 5.5
This commit is contained in:
James Doyle
2013-08-02 09:51:39 -04:00
parent 84934a61d3
commit 42ca6f6308

View File

@@ -7,7 +7,7 @@
<div class="footer">
Apaxy by <a href="https://twitter.com/adamwhitcroft">@adamwhitcroft</a>
</div><!--/.footer-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
$('tr:nth-child(2)').addClass('parent');
</script>
// grab the 2nd child and add the parent class. tr:nth-child(2)
document.getElementsByTagName('tr')[1].className = 'parent';
</script>