You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
1.3 KiB

//http://placehold.it/1920x1080
function OnLoadDefault(){
$(document).ready(function(e) {
$('#HTMLmenu').load('HTMLmenu.html',function(){
//
});
});
$(document).ready(function(e) {
$('#HTMLfooter').load('HTMLfooter.html',function(){
//
});
});
}
function OnLoadIndex(){
OnLoadDefault();
var numImg=0;
var visibleImg=0;
setInterval(function(){
document.getElementById("backgroundImage"+visibleImg).className="own-indexBackgroundImage";
if(visibleImg==0){
visibleImg=1;
}else{
visibleImg=0;
}
document.getElementById("backgroundImage"+visibleImg).className+=" own-opacity0";
document.getElementById("backgroundImage"+visibleImg).src="imatges/background/background"+numImg+".jpg";
numImg++;
if(numImg>9)
{
numImg=0;
}
}, 5000);
}
function OnLoadNosaltres(){
OnLoadDefault();
setTimeout(function(){
document.getElementsByClassName("own-menuButtons")[0].childNodes[3].className="own-currentPageMenu";
}, 500);
}
function OnClickCampanyesDeSuport(){
if(document.getElementById("desplegable").className=="own-desplegable")
{
document.getElementById("desplegable").className="own-desplegableAmagat";
}else{
document.getElementById("desplegable").className="own-desplegable";
}
}