From c46fbf3657283c1e6e802d45bc92c5e9a651f4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ma=C3=B1as?= Date: Tue, 28 Feb 2017 18:55:33 +0100 Subject: [PATCH] - Update JS scripts --- _source/js/_sn.snitch.js | 17 +++++++++++++++++ _source/js/main.js | 13 +------------ config.json | 1 + 3 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 _source/js/_sn.snitch.js diff --git a/_source/js/_sn.snitch.js b/_source/js/_sn.snitch.js new file mode 100644 index 0000000..f132f9d --- /dev/null +++ b/_source/js/_sn.snitch.js @@ -0,0 +1,17 @@ +/** + * SN.snitch + * Show browser window real width, FYI. + * + */ + +SN.snitch = { + init: function(responsiveDebug){ + + // > Responsive snitch + if ( responsiveDebug ) { + SN.cache.$body.width_snitch({ + style:{} + }) + } + } +}; diff --git a/_source/js/main.js b/_source/js/main.js index 0ac3a77..9271af3 100755 --- a/_source/js/main.js +++ b/_source/js/main.js @@ -5,22 +5,11 @@ SN.init = function() { SN.cache.init(); SN.externalLinks.init(); SN.cookies.init(); + SN.snitch.init(true); } $(function() { SN.init(); - var responsiveDebug = true; - - - - - - // > Responsive snitch - if ( responsiveDebug ) { - SN.cache.$body.width_snitch({ - style:{} - }) - } }); diff --git a/config.json b/config.json index 6ef1b2a..8affe41 100644 --- a/config.json +++ b/config.json @@ -42,6 +42,7 @@ "_source/js/_sn.cache.js", "_source/js/_sn.cookies.js", "_source/js/_sn.externallinks.js", + "_source/js/_sn.snitch.js", "_source/js/main.js" ], "dest": "public/assets/js/"