Browse code

Restructure template folder to use Contao template dir structure

Benjamin Roth authored on10/03/2016 11:24:31
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+<script src="system/modules/eSM_waypoints/assets/lib/waypoints/<?php echo WAYPOINTS; ?>/assets/js/jquery.waypoints.min.js"></script>
2
+<script>
3
+	(function($) {
4
+		$(document).ready(function() {
5
+
6
+			var waypoint = {
7
+
8
+				header: new Waypoint({
9
+					element: $('#container'),
10
+					handler: function(direction) {
11
+						if (direction == 'down') {
12
+							$('#header').addClass('shrink');
13
+						} else {
14
+							$('#header').removeClass('shrink');
15
+						}
16
+					}
17
+				})
18
+			};
19
+		});
20
+	})(jQuery);
21
+</script>