diff options
author | Cheng-Han, Wu | 2016-05-29 17:49:29 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-05-29 17:49:29 +0800 |
commit | c73c32d12759a44c46b18548e7d1ef3fc1678473 (patch) | |
tree | 5d1ece5926cf2b2a4ac124c8e27154f35aea2576 | |
parent | 2c60f0dd671b63885ffcbc494025ef037fdf34fd (diff) |
Update to replace animation acceleration library from gsap to velocity
Diffstat (limited to '')
-rw-r--r-- | bower.json | 4 | ||||
-rw-r--r-- | public/views/foot.ejs | 6 | ||||
-rw-r--r-- | public/views/index.ejs | 6 | ||||
-rw-r--r-- | public/views/slide.hbs | 1 |
4 files changed, 7 insertions, 10 deletions
@@ -20,7 +20,6 @@ "font-awesome": "~4.6.2", "Ionicons": "ionicons#~2.0.1", "reveal.js": "~3.2.0", - "gsap": "greensock#~1.18.0", "jquery-mousewheel": "~3.1.13", "spin.js": "~2.3.2", "moment": "~2.12.0", @@ -45,6 +44,7 @@ "markdown-it-container": "^2.0.0", "mermaid": "^0.5.8", "MathJax": "^2.6.1", - "octicons": "^3.5.0" + "octicons": "^3.5.0", + "velocity": "^1.2.3" } } diff --git a/public/views/foot.ejs b/public/views/foot.ejs index 7adb8c72..28a1fe4f 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -4,10 +4,9 @@ <% if(useCDN) { %> <script src="//cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js" defer></script> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> +<script src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js" defer></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script> -<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js" defer></script> -<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/jquery.gsap.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.7/socket.io.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.6/js-yaml.min.js" defer></script> <script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script> @@ -16,10 +15,9 @@ <% } else { %> <script src="<%- url %>/vendor/spin.js/spin.min.js" defer></script> <script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script> +<script src="<%- url %>/vendor/velocity/velocity.min.js" defer></script> <script src="<%- url %>/vendor/jquery-mousewheel/jquery.mousewheel.min.js" defer></script> <script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script> -<script src="<%- url %>/vendor/gsap/src/minified/TweenMax.min.js" defer></script> -<script src="<%- url %>/vendor/gsap/src/minified/jquery.gsap.min.js" defer></script> <script src="<%- url %>/vendor/socket.io-client/socket.io.js" defer></script> <script src="<%- url %>/vendor/js-yaml/dist/js-yaml.min.js" defer></script> <script type="text/javascript" src="<%- url %>/vendor/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script> diff --git a/public/views/index.ejs b/public/views/index.ejs index 9a4db7ac..abedab48 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -186,18 +186,16 @@ <!-- Placed at the end of the document so the pages load faster --> <% if(useCDN) { %> <script src="//code.jquery.com/jquery-1.11.3.min.js" defer></script> + <script src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js" defer></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/jquery.gsap.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment-with-locales.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/js-url/2.0.2/url.min.js" defer></script> <% } else { %> <script src="<%- url %>/vendor/jquery/dist/jquery.min.js" defer></script> + <script src="<%- url %>/vendor/velocity/velocity.min.js" defer></script> <script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script> - <script src="<%- url %>/vendor/gsap/src/minified/TweenMax.min.js" defer></script> - <script src="<%- url %>/vendor/gsap/src/minified/jquery.gsap.min.js" defer></script> <script src="<%- url %>/vendor/select2/select2.min.js" defer></script> <script src="<%- url %>/vendor/moment/min/moment-with-locales.min.js" defer></script> <script src="<%- url %>/vendor/handlebars/handlebars.min.js" defer></script> diff --git a/public/views/slide.hbs b/public/views/slide.hbs index 262a5df7..e2e2e9ae 100644 --- a/public/views/slide.hbs +++ b/public/views/slide.hbs @@ -21,6 +21,7 @@ document.write( '<link rel="stylesheet" href="{{{url}}}/vendor/reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); </script> <script src="{{{url}}}/vendor/jquery/dist/jquery.min.js"></script> + <script src="{{{url}}}/vendor/velocity/velocity.min.js"></script> </head> <body> |