wuhongyuq 5 years ago
parent
commit
9f32300799

File diff suppressed because it is too large
+ 2363 - 0
free-technological-management/WebRoot/js/bootstrap.js


File diff suppressed because it is too large
+ 7 - 0
free-technological-management/WebRoot/js/bootstrap.min.js


+ 132 - 0
free-technological-management/WebRoot/js/info-nav.js

@@ -0,0 +1,132 @@
+( function( $ ) {
+
+    'use strict';
+
+    var $doc = $( document );
+    var $win = $( window );
+    var mediaQueries = {
+        xs: {
+            from: 0,
+            to: 543
+        },
+        sm: {
+            from: 544,
+            to: 767
+        },
+        md: {
+            from: 768,
+            to: 991
+        },
+        lg: {
+            from: 992,
+            to: 1199
+        },
+        xl: {
+            from: 1200,
+            to: 'all'
+        }
+    };
+
+    $doc.ready( function( $ ) {
+        var $header = $( '#header' );
+        var $heroBlock = $( '.info-header' );
+        var ticking = false;
+
+        function update() {
+            var el = document.documentElement,
+                body = document.getElementsByTagName( 'body' )[0],
+                x = window.innerWidth || el.clientWidth || body.clientWidth,
+                y = window.innerHeight || el.clientHeight || body.clientHeight;
+
+            var wScrollTop = $win.scrollTop();
+
+            if ( $header.hasClass( 'is-fixed' ) ) {
+                $header.toggleClass( 'is-small', wScrollTop > $header.outerHeight() );
+            }
+
+            var heroHeight = $heroBlock.find( '.container' ).outerHeight();
+
+            if ( wScrollTop < y && x > mediaQueries.md.from ){
+                $heroBlock.css( {
+                    opacity: Math.max( Math.min( ( heroHeight - wScrollTop ) / ( heroHeight ), 1 ), 0 )
+                } );
+            }
+
+            var section = document.querySelector( '.features.dark-theme' );
+            if ( section ) {
+                $header.toggleClass( 'is-light', section.getBoundingClientRect().top < 40 );
+            }
+
+            ticking = false;
+        }
+
+        function onScroll() {
+            requestTick();
+        }
+
+        function requestTick() {
+            if ( ! ticking ) {
+                requestAnimationFrame( update );
+            }
+            ticking = true;
+        }
+
+        $win
+           .scroll( onScroll )
+           .resize( onScroll );
+
+        onScroll();
+
+    } );
+    // $doc.ready( function( $ ) {
+    //     var $header = $( '#header' );
+    //     var $heroBlock = $( '.info-li-bo' );
+    //     var ticking = false;
+
+    //     function update() {
+    //         var el = document.documentElement,
+    //             body = document.getElementsByTagName( 'body' )[0],
+    //             x = window.innerWidth || el.clientWidth || body.clientWidth,
+    //             y = window.innerHeight || el.clientHeight || body.clientHeight;
+
+    //         var wScrollTop = $win.scrollTop();
+
+    //         if ( $header.hasClass( 'is-fixed' ) ) {
+    //             $header.toggleClass( 'is-small', wScrollTop > $header.outerHeight() );
+    //         }
+
+    //         var heroHeight = $heroBlock.find( '.container' ).outerHeight();
+
+    //         if ( wScrollTop < y && x > mediaQueries.md.from ){
+    //             $heroBlock.css( {
+    //                 opacity: Math.max( Math.min( ( heroHeight - wScrollTop ) / ( heroHeight ), 1 ), 0 )
+    //             } );
+    //         }
+
+    //         var section = document.querySelector( '.features.dark-theme' );
+    //         if ( section ) {
+    //             $header.toggleClass( 'is-light', section.getBoundingClientRect().top < 40 );
+    //         }
+
+    //         ticking = false;
+    //     }
+
+    //     function onScroll() {
+    //         requestTick();
+    //     }
+
+    //     function requestTick() {
+    //         if ( ! ticking ) {
+    //             requestAnimationFrame( update );
+    //         }
+    //         ticking = true;
+    //     }
+
+    //     $win
+    //        .scroll( onScroll )
+    //        .resize( onScroll );
+
+    //     onScroll();
+
+    // } );
+} ) ( jQuery );

File diff suppressed because it is too large
+ 4 - 0
free-technological-management/WebRoot/js/jquery-3.1.1.slim.min.js


File diff suppressed because it is too large
+ 9210 - 0
free-technological-management/WebRoot/js/jquery.js


File diff suppressed because it is too large
+ 4 - 0
free-technological-management/WebRoot/js/jquery.min.js


File diff suppressed because it is too large
+ 1 - 0
free-technological-management/WebRoot/js/jquery.pin.min.js


+ 13 - 0
free-technological-management/WebRoot/js/npm.js

@@ -0,0 +1,13 @@
+// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
+require('../../js/transition.js')
+require('../../js/alert.js')
+require('../../js/button.js')
+require('../../js/carousel.js')
+require('../../js/collapse.js')
+require('../../js/dropdown.js')
+require('../../js/modal.js')
+require('../../js/tooltip.js')
+require('../../js/popover.js')
+require('../../js/scrollspy.js')
+require('../../js/tab.js')
+require('../../js/affix.js')

File diff suppressed because it is too large
+ 33 - 0
free-technological-management/WebRoot/js/slider.js