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.

119 lines
3.9 KiB

8 years ago
8 years ago
8 years ago
8 years ago
7 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. var actualWindow="";
  3. function OnLoadDefault(){
  4. /*$(document).ready(function(e) {
  5. $('#HTMLmenu').load('HTMLmenu.html',function(){
  6. //
  7. });
  8. });
  9. $(document).ready(function(e) {
  10. $('#HTMLfooter').load('HTMLfooter.html',function(){
  11. //
  12. });
  13. });*/
  14. console.log(actualWindow);
  15. if(actualWindow!="index")
  16. {
  17. $(window).bind('scroll', function () {
  18. console.log($(window).scrollTop());
  19. if ($(window).scrollTop() > 25) {
  20. //document.getElementById("menu").className="own-menuFixed";
  21. document.getElementById("menu").className="own-menuFixed";
  22. document.getElementById("logoIvardia").className+=" own-overImage-logo-small";
  23. document.getElementById("menuButtons").className+=" own-menuButtons-small";
  24. } else {
  25. document.getElementById("menu").className="own-menu";
  26. document.getElementById("logoIvardia").className="own-overImage-logo";
  27. document.getElementById("menuButtons").className="own-menuButtons";
  28. }
  29. });
  30. }
  31. }
  32. /*
  33. - La señora haciendo el saludo de la victoria (_013)
  34. - Paisaje Sol (_008)
  35. - Paisaje Sol niñxs (004)
  36. - Señora en balcón (la que se vea bien, he visto que no está bien pillado el frame)) (_036)
  37. - Barricadas (020, 026, 028, 001)
  38. - Paisajes (057, 059, 058, 045)
  39. - Gente (014, 074, 068, 071, 012)
  40. */
  41. function OnLoadIndex(){
  42. actualWindow="index";
  43. OnLoadDefault();
  44. var numImg=1;
  45. var visibleImg=0;
  46. setInterval(function(){
  47. console.log(numImg);
  48. console.log("visibleImg: " + visibleImg);
  49. document.getElementById("backgroundImage"+visibleImg).className="own-indexBackgroundImage";
  50. if(visibleImg==0){
  51. visibleImg=1;
  52. }else{
  53. visibleImg=0;
  54. }
  55. document.getElementById("backgroundImage"+visibleImg).className+=" own-opacity0";
  56. document.getElementById("backgroundImage"+visibleImg).src="imatges/background/background"+numImg+".jpg";
  57. numImg++;
  58. if(numImg>9)
  59. {
  60. numImg=0;
  61. }
  62. }, 4000);
  63. }
  64. function OnLoadNosaltres(){
  65. OnLoadDefault();
  66. setTimeout(function(){
  67. document.getElementsByClassName("own-menuButtons")[0].childNodes[3].className="own-currentPageMenu";
  68. }, 500);
  69. }
  70. function OnLoadContacte(){
  71. OnLoadDefault();
  72. setTimeout(function(){
  73. document.getElementsByClassName("own-menuButtons")[0].childNodes[5].className="own-currentPageMenu";
  74. }, 8000);
  75. }
  76. function OnClickCampanyesDeSuport(){
  77. if(document.getElementById("desplegable").className=="own-desplegable")
  78. {
  79. document.getElementById("desplegable").className="own-desplegableAmagat";
  80. }else{
  81. var auxhtml="";
  82. auxhtml+="<h3>El nostre projecte, un viatge a Bakur</h3>";
  83. auxhtml+="El 19 d’octubre de 2015 vam decidir viatjar al Kurdistan amb unes motxilles plenes de càmeres, micros, llibretes, pors i esperances. Feia mesos que gestàvem la idea. D’ençà que havíem descobert el moviment kurd seguíem amb interès i admiració tant la seva resistència com la seva proposta política: un sistema basat en el municipalisme, l’ecologia social i l’alliberament de la dona, tot això alimentat per un poble lluitador, crític i solidari.";
  84. document.getElementById("desplegable").innerHTML=auxhtml;
  85. document.getElementById("desplegable").className="own-desplegable";
  86. }
  87. }
  88. function ShowMenuButtons(){
  89. if(document.getElementById("menuButtons").className.indexOf("own-displayShowBlock") > -1)
  90. {
  91. document.getElementById("menuButtons").className="own-menuButtons";
  92. }else{
  93. document.getElementById("menuButtons").className+=" own-displayShowBlock";
  94. }
  95. }
  96. function ShowMenuButtonsIndex(){
  97. if(document.getElementById("menuButtons").className.indexOf("own-displayShowBlock") > -1)
  98. {
  99. document.getElementById("menuButtons").className="own-menuButtons own-whiteText";
  100. }else{
  101. document.getElementById("menuButtons").className+=" own-displayShowBlock";
  102. }
  103. }
  104. function NoFunction(){
  105. }