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:
parent
6f310a94a7
commit
1fa765ba50
@ -3,14 +3,12 @@
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
imgAttrRemover();
|
||||
slider();
|
||||
featuredFAQ();
|
||||
marketplaces();
|
||||
tourNav();
|
||||
mobileNav();
|
||||
stickyNav();
|
||||
colourHover();
|
||||
|
||||
function tourNav() {
|
||||
|
||||
@ -85,22 +83,5 @@ $(document).ready(function(){
|
||||
}
|
||||
}, 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');
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user