User our own jQuery

This commit is contained in:
Pablo Vazquez 2016-08-30 14:09:56 +02:00
parent b9b993fe4a
commit 8d6df947c8
7 changed files with 11 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -130,7 +130,7 @@ function hopToTop(limit){
document.getElementById("hop").onclick = function(e){ window.scrollTo(0, 0);}
$(window).scroll(function() {
$(window).on("scroll", function () {
if ($(window).scrollTop() >= limit) {$("#hop").addClass("active")} else {$("#hop").removeAttr("class")}
});
}

View File

@ -24,7 +24,7 @@ html(lang="en")
meta(name="twitter:image", content="{{ url_for('static', filename='assets/img/backgrounds/background_gleb_locomotive.jpg')}}")
| {% endblock %}
script(src="//code.jquery.com/jquery-2.2.1.min.js")
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery-3.1.0.min.js')}}")
script(src="//cdn.jsdelivr.net/typeahead.js/0.11.1/typeahead.jquery.min.js")
script(src="//cdn.jsdelivr.net/algoliasearch/3/algoliasearch.min.js")
script(src="//cdnjs.cloudflare.com/ajax/libs/js-cookie/2.0.3/js.cookie.min.js",)
@ -407,7 +407,7 @@ html(lang="en")
link(href='//fonts.googleapis.com/css?family=Roboto:300,400,500', rel='stylesheet', type='text/css')
link(href='//fonts.googleapis.com/css?family=Lato:300,400', rel='stylesheet', type='text/css')
script(type="text/javascript", src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js")
script(type="text/javascript", src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js")
script(type="text/javascript", src="//cdnjs.cloudflare.com/ajax/libs/jquery.perfect-scrollbar/0.6.10/js/min/perfect-scrollbar.min.js")
script(type="text/javascript", src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js")

View File

@ -104,7 +104,7 @@ script.
if (preview_img) {
preview_img.load(function() {
preview_img.on('load', function() {
var preview = thumbnail.find('.list-node-children-item-preview');

View File

@ -135,7 +135,7 @@ script.
if (preview_img) {
preview_img.load(function() {
preview_img.on('load', function() {
var preview = thumbnail.find('.list-node-children-item-preview');

View File

@ -135,7 +135,7 @@ script.
/* Make dummy img in memory otherwise we have css issues */
$("<img/>")
.attr('src', src_xl)
.load(function(){
.on('load', function(){
src_xl_width = this.width;
src_xl_height = this.height;
});

View File

@ -154,7 +154,7 @@ script.
$imgs.each(function(i) {
var $img = $(this);
$('<img/>').load(function() {
$('<img/>').on('load', function() {
++cnt;
if( cnt === totalImgs ) {
$imgs.show();