]> git.quilime.com - notes.git/commitdiff
Cleaning out js cruft.
authorGabriel Dunne <gdunne@quilime.com>
Wed, 30 Apr 2014 06:28:06 +0000 (23:28 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Wed, 30 Apr 2014 06:28:06 +0000 (23:28 -0700)
_layouts/default.html
_layouts/post.html
archive.html
css/component.css [deleted file]
css/main.css
index.html
js/classie.js [deleted file]
js/modernizr.custom.js [deleted file]
js/sidebarEffects.js [deleted file]

index a7ecdcc4db734f12a6421344c2243f4518c8462b..124a15324a9ac8b22fa330e317ea5f06e00b1a95 100644 (file)
@@ -6,53 +6,22 @@
         <title>{{ page.title }}</title>
         <meta name="viewport" content="width=device-width">
         <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/normalize.css" />
-        <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/component.css" />
         <link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css">
         <link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
     </head>
     <body>
 
-    <div id="st-container" class="st-container">
-
-      <!-- content push wrapper -->
-      <div class="st-pusher">
-        
-        <nav class="st-menu st-effect-1" id="menu-1">
-          <ul class="posts">
-            {% for post in site.posts %}
-              <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
-            {% endfor %}
-          </ul>
-        </nav>
-
-        <div class="st-content"><!-- this is the wrapper for the content -->
-          <div class="st-content-inner"><!-- extra div for emulating position:fixed of the menu -->
-            
-          <div class="site">
-            {{ content }}          
-          </div>
+      <div class="site">
+        {{ content }}          
+      </div>
+    
+      <div class="footer">
+        <p class="meta">
+        &copy; {{ site.time | date: "%Y" }} <a href="{{site.author_url}}">{{ site.author }}</a>
+        </p>
+      </div>
         
-          <div class="footer">
-            <p class="meta">
-            &copy; {{ site.time | date: "%Y" }} <a href="{{site.author_url}}">{{ site.author }}</a>
-            </p>
-          </div>
-            
-          </div><!-- /st-content-inner -->
-        </div><!-- /st-content -->
-      </div><!-- /st-pusher -->
-    </div><!-- /st-container -->
-
-
-<!--         <header>
-          <span class="title">&larr; <a href="{{ site.baseurl }}">{{ site.name }}</a></span>
-        </header> -->
-
-
-
-        <script src="{{ site.baseurl }}/js/classie.js"></script>
-        <script src="{{ site.baseurl }}/js/sidebarEffects.js"></script>
-        <script src="{{ site.baseurl }}/js/script.js"></script>
+      <script src="{{ site.baseurl }}/js/script.js"></script>
 
     </body>
 </html>
index 2a55bf2657d7058aae9c5e98f09305003e00b9ae..3158f4950d7a5a23a87a737bd97b380288d4bf4a 100644 (file)
@@ -2,8 +2,8 @@
 layout: default
 ---
 
-<div id="st-trigger-effects" class="nav">
-  <div data-effect="st-effect-1">&#9776;</div>
+<div class="nav">
+  <a href="/">&#9776;</a>
 </div>
 
 <h1>{{ page.title }}</h1>
index 134f7093b5476d3c7d7a709ba3801dd7ec682706..c61271f290f4dcc659aa8cfb255a5406b745982f 100644 (file)
@@ -7,18 +7,28 @@ title: archive
 
   <h1>archive</h1>
 
-  <ul class="posts">
   {% for category in site.categories %}
-    <li><a name="{{ category | first }}">{{ category | first }}</a>
-      <ul>
+  <h3>{{ category | first }}</h3>  
+    <ul class="posts">
       {% for posts in category %}
         {% for post in posts %}
           <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
         {% endfor %}
       {% endfor %}
-      </ul>
-    </li>
+    </ul>  
   {% endfor %}
-  </ul>
+
 </div>
 
+
+<!--
+<div id="home">
+  <ul class="posts">
+    {% for post in site.posts %}
+      <li>
+      <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
+      </li>
+    {% endfor %}
+  </ul>
+</div>
+-->
\ No newline at end of file
diff --git a/css/component.css b/css/component.css
deleted file mode 100755 (executable)
index 640f3e0..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-st-effect-3*,
-*:after,
-*::before {
-       -moz-box-sizing: border-box;
-       box-sizing: border-box;
-}
-
-html,
-body,
-.st-container,
-.st-pusher,
-.st-content {
-
-}
-
-.st-content {
-       overflow-y: scroll;
-}
-
-.st-content,
-.st-content-inner {
-}
-
-.st-container {
-       position: relative;
-}
-
-.st-pusher {
-       position: relative;
-       left: 0;
-       z-index: 99;
-       height: 100%;
-       -webkit-transition: -webkit-transform 0.1s;
-       transition: transform 0.1s;
-}
-
-.st-pusher::after {
-       position: absolute;
-       top: 0;
-       right: 0;
-       width: 0;
-       height: 0;
-       background: rgba(0,0,0,0.3);
-       content: '';
-       opacity: 0;
-       -webkit-transition: opacity 0.1s, width 0.1s 0.1s, height 0.1s 0.1s;
-       transition: opacity 0.1s, width 0.1s 0.1s, height 0.1s 0.1s;
-}
-
-.st-menu-open .st-pusher::after {
-       width: 100%;
-       height: 100%;
-       opacity: 1;
-       -webkit-transition: opacity 0.5s;
-       transition: opacity 0.5s;
-}
-
-.st-menu {
-       background:#fff;
-       position: absolute;
-       top: 0;
-       left: 0;
-       z-index: 100;
-       visibility: hidden;
-       width: 300px;
-       height: 100%;
-       -webkit-transition: all 0.5s;
-       transition: all 0.5s;
-}
-
-.st-menu::after {
-       position: absolute;
-       top: 0;
-       right: 0;
-       width: 100%;
-       height: 100%;
-       background: rgba(0,0,0,0.2);
-       content: '';
-       opacity: 1;
-       -webkit-transition: opacity 0.5s;
-       transition: opacity 0.5s;
-}
-
-.st-menu-open .st-menu::after {
-       width: 0;
-       height: 0;
-       opacity: 0;
-       -webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
-       transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
-}
-
-/* content style */
-
-.st-menu ul {
-       margin: 0;
-       padding: 0;
-       list-style: none;
-}
-
-/* Individual effects */
-
-/* Effect 1: Slide in on top */
-.st-effect-1.st-menu {
-       visibility: visible;
-       -webkit-transform: translate3d(-100%, 0, 0);
-       transform: translate3d(-100%, 0, 0);
-}
-
-.st-effect-1.st-menu-open .st-effect-1.st-menu {
-       visibility: visible;
-       -webkit-transform: translate3d(0, 0, 0);
-       transform: translate3d(0, 0, 0);
-}
-
-.st-effect-1.st-menu::after {
-       display: none;
-}
-
-/* Effect 3: Push*/
-.st-effect-3.st-menu-open .st-pusher {
-       -webkit-transform: translate3d(300px, 0, 0);
-       transform: translate3d(300px, 0, 0);
-}
-
-.st-effect-3.st-menu {
-       -webkit-transform: translate3d(-100%, 0, 0);
-       transform: translate3d(-100%, 0, 0);
-}
-
-.st-effect-3.st-menu-open .st-effect-3.st-menu {
-       visibility: visible;
-       -webkit-transition: -webkit-transform 0.1s;
-       transition: transform 0.1s;
-}
-
-.st-effect-3.st-menu::after {
-       display: none;
-}
-
-
-/* Fallback example for browsers that don't support 3D transforms (and no JS fallback) */
-.no-csstransforms3d .st-pusher,
-.no-js .st-pusher {
-       padding-left: 300px;
-}
index 37f69c97a2c3508a50c77142ad1df3df529f0d61..715c1f5f1ee9832d83a7c03f3bb5a5b563f049f9 100755 (executable)
@@ -84,7 +84,7 @@ h2, h3 {
   text-align:center;
   margin:3em 0 2em 0; 
   font-size:1em;
-  text-decoration:underline;
+  
 }
 h3 {
   text-align:left;
index 30860ab104b6540c237c12cf5dc0e5df6c3e035a..30d59c9c42b0e5724ee87ae45c47461215f98788 100644 (file)
@@ -1,14 +1,17 @@
 ---
 layout: default
-title: notes
+title: index
 ---
 
-<div id="home">
+{% for category in site.categories %}
+<h3>{{ category | first }}</h3>  
   <ul class="posts">
-    {% for post in site.posts %}
-      <li>
-      <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
-      </li>
+    {% for posts in category %}
+      {% for post in posts %}
+        {% if post.url %}
+          <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
+        {% endif %}
+      {% endfor %}
     {% endfor %}
-  </ul>
-</div>
+  </ul>  
+{% endfor %}
diff --git a/js/classie.js b/js/classie.js
deleted file mode 100755 (executable)
index a967554..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-/*!
- * classie - class helper functions
- * from bonzo https://github.com/ded/bonzo
- * 
- * classie.has( elem, 'my-class' ) -> true/false
- * classie.add( elem, 'my-new-class' )
- * classie.remove( elem, 'my-unwanted-class' )
- * classie.toggle( elem, 'my-class' )
- */
-
-/*jshint browser: true, strict: true, undef: true */
-/*global define: false */
-
-( function( window ) {
-
-'use strict';
-
-// class helper functions from bonzo https://github.com/ded/bonzo
-
-function classReg( className ) {
-  return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
-}
-
-// classList support for class management
-// altho to be fair, the api sucks because it won't accept multiple classes at once
-var hasClass, addClass, removeClass;
-
-if ( 'classList' in document.documentElement ) {
-  hasClass = function( elem, c ) {
-    return elem.classList.contains( c );
-  };
-  addClass = function( elem, c ) {
-    elem.classList.add( c );
-  };
-  removeClass = function( elem, c ) {
-    elem.classList.remove( c );
-  };
-}
-else {
-  hasClass = function( elem, c ) {
-    return classReg( c ).test( elem.className );
-  };
-  addClass = function( elem, c ) {
-    if ( !hasClass( elem, c ) ) {
-      elem.className = elem.className + ' ' + c;
-    }
-  };
-  removeClass = function( elem, c ) {
-    elem.className = elem.className.replace( classReg( c ), ' ' );
-  };
-}
-
-function toggleClass( elem, c ) {
-  var fn = hasClass( elem, c ) ? removeClass : addClass;
-  fn( elem, c );
-}
-
-var classie = {
-  // full names
-  hasClass: hasClass,
-  addClass: addClass,
-  removeClass: removeClass,
-  toggleClass: toggleClass,
-  // short names
-  has: hasClass,
-  add: addClass,
-  remove: removeClass,
-  toggle: toggleClass
-};
-
-// transport
-if ( typeof define === 'function' && define.amd ) {
-  // AMD
-  define( classie );
-} else {
-  // browser global
-  window.classie = classie;
-}
-
-})( window );
diff --git a/js/modernizr.custom.js b/js/modernizr.custom.js
deleted file mode 100755 (executable)
index f63dbbe..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
- * Build: http://modernizr.com/download/#-csstransforms3d-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load
- */
-;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.csstransforms3d=function(){var a=!!F("perspective");return a&&"webkitPerspective"in g.style&&w("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
\ No newline at end of file
diff --git a/js/sidebarEffects.js b/js/sidebarEffects.js
deleted file mode 100644 (file)
index c46b791..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * sidebarEffects.js v1.0.0
- * http://www.codrops.com
- *
- * Licensed under the MIT license.
- * http://www.opensource.org/licenses/mit-license.php
- * 
- * Copyright 2013, Codrops
- * http://www.codrops.com
- */
- var SidebarMenuEffects = (function() {
-
-       function hasParentClass( e, classname ) {
-               if(e === document) return false;
-               if( classie.has( e, classname ) ) {
-                       return true;
-               }
-               return e.parentNode && hasParentClass( e.parentNode, classname );
-       }
-
-       // http://coveroverflow.com/a/11381730/989439
-       function mobilecheck() {
-               var check = false;
-               (function(a){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = true})(navigator.userAgent||navigator.vendor||window.opera);
-               return check;
-       }
-
-       function init() {
-
-               var container = document.getElementById( 'st-container' ),
-                       buttons = Array.prototype.slice.call( document.querySelectorAll( '#st-trigger-effects > div' ) ),
-                       // event type (if mobile use touch events)
-                       eventtype = mobilecheck() ? 'touchstart' : 'click',
-                       resetMenu = function() {
-                               classie.remove( container, 'st-menu-open' );
-                       },
-                       bodyClickFn = function(evt) {
-                               if( !hasParentClass( evt.target, 'st-menu' ) ) {
-                                       resetMenu();
-                                       document.removeEventListener( eventtype, bodyClickFn );
-                               }
-                       };
-
-               buttons.forEach( function( el, i ) {
-                       var effect = el.getAttribute( 'data-effect' );
-
-                       el.addEventListener( eventtype, function( ev ) {
-                               ev.stopPropagation();
-                               ev.preventDefault();
-                               container.className = 'st-container'; // clear
-                               classie.add( container, effect );
-                               setTimeout( function() {
-                                       classie.add( container, 'st-menu-open' );
-                               }, 25 );
-                               document.addEventListener( eventtype, bodyClickFn );
-                       });
-               } );
-
-       }
-
-       init();
-
-})();
\ No newline at end of file