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.

57 lines
1.4 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. //http://placehold.it/1920x1080
  2. function OnLoadDefault(){
  3. $(document).ready(function(e) {
  4. $('#HTMLmenu').load('HTMLmenu.html',function(){
  5. //
  6. });
  7. });
  8. $(document).ready(function(e) {
  9. $('#HTMLfooter').load('HTMLfooter.html',function(){
  10. //
  11. });
  12. });
  13. }
  14. function OnLoadIndex(){
  15. OnLoadDefault();
  16. var numImg=3;
  17. var visibleImg=1;
  18. setInterval(function(){
  19. console.log(numImg);
  20. console.log("visibleImg: " + visibleImg);
  21. document.getElementById("backgroundImage"+visibleImg).className+=" own-opacity0";
  22. document.getElementById("backgroundImage"+visibleImg).src="imatges/background/background"+numImg+".jpg";
  23. if(visibleImg==0){
  24. visibleImg=1;
  25. }else{
  26. visibleImg=0;
  27. }
  28. document.getElementById("backgroundImage"+visibleImg).className="own-indexBackgroundImage";
  29. numImg++;
  30. if(numImg>9)
  31. {
  32. numImg=0;
  33. }
  34. }, 4000);
  35. }
  36. function OnLoadNosaltres(){
  37. OnLoadDefault();
  38. setTimeout(function(){
  39. document.getElementsByClassName("own-menuButtons")[0].childNodes[3].className="own-currentPageMenu";
  40. }, 500);
  41. }
  42. function OnClickCampanyesDeSuport(){
  43. if(document.getElementById("desplegable").className=="own-desplegable")
  44. {
  45. document.getElementById("desplegable").className="own-desplegableAmagat";
  46. }else{
  47. document.getElementById("desplegable").className="own-desplegable";
  48. }
  49. }