1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 09:13:38 +01:00

remove unused js

This commit is contained in:
Matthias Kretschmann 2016-01-16 20:35:12 +01:00
parent 6f310a94a7
commit 1fa765ba50

View File

@ -3,14 +3,12 @@
$(document).ready(function(){ $(document).ready(function(){
imgAttrRemover();
slider(); slider();
featuredFAQ(); featuredFAQ();
marketplaces(); marketplaces();
tourNav(); tourNav();
mobileNav(); mobileNav();
stickyNav(); stickyNav();
colourHover();
function tourNav() { function tourNav() {
@ -85,22 +83,5 @@ $(document).ready(function(){
} }
}, 250); }, 250);
} }
function colourHover() {
$('.team-member img').hover(
function(){
var hover = $(this).data('hover');
$(this).attr('src',hover);
},
function(){
var normal = $(this).data('regular');
$(this).attr('src',normal);
});
}
function imgAttrRemover() {
$('img').each(function(){
$(this).removeAttr('width');
$(this).removeAttr('height');
});
}
}); });