windhamdavid 5 years ago
parent
commit
c6aa8833a7
3 changed files with 3 additions and 58 deletions
  1. 1 28
      js/script.js
  2. 2 2
      js/script.min.js
  3. 0 28
      js/scripts.js

+ 1 - 28
js/script.js

@@ -1,31 +1,4 @@
-( function( $ ) {
-	
- $( '#toggle-menu' ).on( 'touchstart click', function(e) {
-  e.preventDefault();
-
-  var $body = $( 'body' ),
-      $page = $( '#page' ),
-      $menu = $( '#menu' ),
-
-      transitionEnd = 'transitionend webkitTransitionEnd otransitionend MSTransitionEnd';
-
-  $body.addClass( 'animating' );
-
-  if ( $body.hasClass( 'menu-visible' ) ) {
-   $body.addClass( 'right' );
-  } else {
-   $body.addClass( 'left' );
-  }
-  
-  $page.on( transitionEnd, function() {
-   $body
-    .removeClass( 'animating left right' )
-    .toggleClass( 'menu-visible' );
-
-   $page.off( transitionEnd );
-  } );
- } );
-} )( jQuery );;/*!
+;/*!
  * Bootstrap v3.2.0 (http://getbootstrap.com)
  * Copyright 2011-2014 Twitter, Inc.
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)

File diff suppressed because it is too large
+ 2 - 2
js/script.min.js


+ 0 - 28
js/scripts.js

@@ -1,28 +0,0 @@
-( function( $ ) {
-	
- $( '#toggle-menu' ).on( 'touchstart click', function(e) {
-  e.preventDefault();
-
-  var $body = $( 'body' ),
-      $page = $( '#page' ),
-      $menu = $( '#menu' ),
-
-      transitionEnd = 'transitionend webkitTransitionEnd otransitionend MSTransitionEnd';
-
-  $body.addClass( 'animating' );
-
-  if ( $body.hasClass( 'menu-visible' ) ) {
-   $body.addClass( 'right' );
-  } else {
-   $body.addClass( 'left' );
-  }
-  
-  $page.on( transitionEnd, function() {
-   $body
-    .removeClass( 'animating left right' )
-    .toggleClass( 'menu-visible' );
-
-   $page.off( transitionEnd );
-  } );
- } );
-} )( jQuery );