Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
Line 110: Line 110:
<!--STICKY SIDEBAR-->
<!--STICKY SIDEBAR-->
-
<!--js-->
+
<script>
-
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
+
  $(document).ready(function(){
-
<script src="js/stickySidebar.js"></script>
+
    $('#sidebar').stickyMojo({footerID: '#footer', contentID: '#main'});
-
+
  });
-
<script>
+
</script>
-
$(document).ready(function() {
+
-
+
-
$('#sidebar').stickySidebar({
+
-
sidebarTopMargin: 20,
+
-
footerThreshold: 100
+
-
});
+
-
+
-
});
+
-
</script>
+
</html>
</html>

Revision as of 23:56, 4 August 2014