From b9e008378d164752a8e08fc8c59582b2bdbeb529 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 13 Aug 2014 16:23:01 -0400 Subject: [PATCH] Move to external files keep separation between js html and css --- Toolkit/Page.php | 2 ++ js/pageSetup.js | 8 ++++++++ templates/template.html | 14 -------------- 3 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 js/pageSetup.js 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} - - - -- 2.17.1