From: Steve Sutton Date: Wed, 13 Aug 2014 20:23:01 +0000 (-0400) Subject: Move to external files X-Git-Tag: V1.0^2~88 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b9e008378d164752a8e08fc8c59582b2bdbeb529;p=web%2FKeweenaw.git Move to external files keep separation between js html and css --- diff --git a/Toolkit/Page.php b/Toolkit/Page.php index bf05339..bc0c368 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -147,6 +147,8 @@ class Toolkit_Page $GLOBALS['styleSheets'] = array(); // Resources needed for every page. $GLOBALS['topScripts'][] = JQUERY_CDN_JS; + $GLOBALS['bottomScripts'][] = MEDIA_BASE_URL . 'js/foundation.min.js'; + $GLOBALS['bottomScripts'][] = MEDIA_BASE_URL . 'js/pageSetup.js'; } /** diff --git a/js/pageSetup.js b/js/pageSetup.js new file mode 100644 index 0000000..c1f4f79 --- /dev/null +++ b/js/pageSetup.js @@ -0,0 +1,8 @@ +$(document).foundation(); +$(document).ready(function() { + $('.off-canvas-list').find('a.toggle').click(function() { + $(this).toggleClass('open'); + $(this).siblings('ul').toggleClass('open'); + }); + $("#main .row .small-12 p").attr("class", "small-12 columns"); +}); \ No newline at end of file diff --git a/templates/template.html b/templates/template.html index cecb6c3..0119238 100644 --- a/templates/template.html +++ b/templates/template.html @@ -195,20 +195,6 @@ - {bottomScripts:h} - - -