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

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=0;
  17. var visibleImg=0;
  18. setInterval(function(){
  19. document.getElementById("backgroundImage"+visibleImg).className="own-indexBackgroundImage";
  20. if(visibleImg==0){
  21. visibleImg=1;
  22. }else{
  23. visibleImg=0;
  24. }
  25. document.getElementById("backgroundImage"+visibleImg).className+=" own-opacity0";
  26. document.getElementById("backgroundImage"+visibleImg).src="imatges/background/background"+numImg+".jpg";
  27. numImg++;
  28. if(numImg>9)
  29. {
  30. numImg=0;
  31. }
  32. }, 5000);
  33. }
  34. function OnLoadNosaltres(){
  35. OnLoadDefault();
  36. setTimeout(function(){
  37. document.getElementsByClassName("own-menuButtons")[0].childNodes[3].className="own-currentPageMenu";
  38. }, 500);
  39. }
  40. function OnClickCampanyesDeSuport(){
  41. if(document.getElementById("desplegable").className=="own-desplegable")
  42. {
  43. document.getElementById("desplegable").className="own-desplegableAmagat";
  44. }else{
  45. document.getElementById("desplegable").className="own-desplegable";
  46. }
  47. }