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.

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