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.

85 lines
2.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
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. /*
  15. - La señora haciendo el saludo de la victoria (_013)
  16. - Paisaje Sol (_008)
  17. - Paisaje Sol niñxs (004)
  18. - Señora en balcón (la que se vea bien, he visto que no está bien pillado el frame)) (_036)
  19. - Barricadas (020, 026, 028, 001)
  20. - Paisajes (057, 059, 058, 045)
  21. - Gente (014, 074, 068, 071, 012)
  22. */
  23. function OnLoadIndex(){
  24. OnLoadDefault();
  25. var numImg=3;
  26. var visibleImg=1;
  27. setInterval(function(){
  28. console.log(numImg);
  29. console.log("visibleImg: " + visibleImg);
  30. document.getElementById("backgroundImage"+visibleImg).className+=" own-opacity0";
  31. document.getElementById("backgroundImage"+visibleImg).src="imatges/background/background"+numImg+".jpg";
  32. if(visibleImg==0){
  33. visibleImg=1;
  34. }else{
  35. visibleImg=0;
  36. }
  37. document.getElementById("backgroundImage"+visibleImg).className="own-indexBackgroundImage";
  38. numImg++;
  39. if(numImg>9)
  40. {
  41. numImg=0;
  42. }
  43. }, 4000);
  44. }
  45. function OnLoadNosaltres(){
  46. OnLoadDefault();
  47. setTimeout(function(){
  48. document.getElementsByClassName("own-menuButtons")[0].childNodes[3].className="own-currentPageMenu";
  49. }, 500);
  50. }
  51. function OnClickCampanyesDeSuport(){
  52. if(document.getElementById("desplegable").className=="own-desplegable")
  53. {
  54. document.getElementById("desplegable").className="own-desplegableAmagat";
  55. }else{
  56. document.getElementById("desplegable").className="own-desplegable";
  57. }
  58. }
  59. $(window).bind('scroll', function () {
  60. console.log($(window).scrollTop());
  61. if ($(window).scrollTop() > 25) {
  62. //$('.menu').addClass('own-menuFixed');
  63. document.getElementById("menu").className="own-menuFixed";
  64. } else {
  65. //$('.menu').removeClass('own-menuFixed');
  66. document.getElementById("menu").className="own-menu";
  67. }
  68. });
  69. function ShowMenuButtons(){
  70. if(document.getElementById("menuButtons").className.indexOf("own-displayShowBlock") > -1)
  71. {
  72. document.getElementById("menuButtons").className="own-menuButtons";
  73. }else{
  74. document.getElementById("menuButtons").className+=" own-displayShowBlock";
  75. }
  76. }