arnaucube
arnaucube/ivardiawebPublic Self-hosted repository
llista deures part 4
nau idoctnef@openmailbox.org
Thu, 16 Jun 2016 21:54:12 +0200
commit

0598210114e9f58fac65abbac1d8c855b4670a95

parent

9e4998f81ad032da62266a74e004bc57216fb7fe

1 files changed, 16 insertions(+), 11 deletions(-)

jump to
M index.js → index.js

@@ -1,5 +1,5 @@

//http://placehold.it/1920x1080 - +var actualWindow=""; function OnLoadDefault(){ /*$(document).ready(function(e) { $('#HTMLmenu').load('HTMLmenu.html',function(){

@@ -11,16 +11,20 @@ $('#HTMLfooter').load('HTMLfooter.html',function(){

// }); });*/ - $(window).bind('scroll', function () { - console.log($(window).scrollTop()); - if ($(window).scrollTop() > 25) { - //$('.menu').addClass('own-menuFixed'); - document.getElementById("menu").className="own-menuFixed"; - } else { - //$('.menu').removeClass('own-menuFixed'); - document.getElementById("menu").className="own-menu"; - } - }); + console.log(actualWindow); + if(actualWindow!="index") + { + $(window).bind('scroll', function () { + console.log($(window).scrollTop()); + if ($(window).scrollTop() > 25) { + //$('.menu').addClass('own-menuFixed'); + document.getElementById("menu").className="own-menuFixed"; + } else { + //$('.menu').removeClass('own-menuFixed'); + document.getElementById("menu").className="own-menu"; + } + }); + } } /* - La señora haciendo el saludo de la victoria (_013)

@@ -32,6 +36,7 @@ - Paisajes (057, 059, 058, 045)

- Gente (014, 074, 068, 071, 012) */ function OnLoadIndex(){ + actualWindow="index"; OnLoadDefault(); var numImg=3; var visibleImg=1;