cannabinieri website
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.

219 lines
4.9 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. // show mobile menu onclick
  2. document.getElementById("icon").addEventListener("click", function menu() {
  3. var x = document.getElementById("md");
  4. if (x.style.display === "none") {
  5. x.style.display = "flex";}
  6. else {
  7. x.style.display ="none";
  8. }
  9. }
  10. )
  11. // show hemp submenu
  12. document.getElementById("chevron_1").addEventListener("click", function menu() {
  13. var x= document.getElementById("down_1");
  14. if (x.style.display === "none") {
  15. x.style.display = "flex";}
  16. else {
  17. x.style.display ="none";
  18. }
  19. }
  20. )
  21. // spider submenu
  22. document.getElementById("chevron_2").addEventListener("click", function menu() {
  23. var x= document.getElementById("down_2");
  24. if (x.style.display === "none") {
  25. x.style.display = "flex";}
  26. else {
  27. x.style.display ="none";
  28. }
  29. }
  30. )
  31. // offgrid submenu
  32. document.getElementById("chevron_3").addEventListener("click", function menu() {
  33. var x= document.getElementById("down_3");
  34. if (x.style.display === "none") {
  35. x.style.display = "flex";}
  36. else {
  37. x.style.display ="none";
  38. }
  39. }
  40. )
  41. // index
  42. // button 1
  43. document.getElementById("b_1").addEventListener("click", function menu() {
  44. var x= document.getElementById("c_1");
  45. let hemp = document.getElementById("hemp");
  46. if (x.style.display === "none") {
  47. x.style.display = "flex";
  48. hemp.style.zIndex = "9";
  49. }
  50. else {
  51. x.style.display ="none";
  52. hemp.style.zIndex = "0";
  53. }
  54. }
  55. );
  56. // button 2
  57. document.getElementById("b_2").addEventListener("click", function menu() {
  58. var x= document.getElementById("c_2");
  59. let permapp = document.getElementById("permapp");
  60. if (x.style.display === "none") {
  61. x.style.display = "flex";
  62. permapp.style.zIndex = "9";
  63. }
  64. else {
  65. x.style.display ="none";
  66. permapp.style.zIndex = "0";
  67. }
  68. }
  69. );
  70. // button 3
  71. document.getElementById("b_3").addEventListener("click", function menu() {
  72. var x= document.getElementById("c_3");
  73. let spider = document.getElementById("spider");
  74. if (x.style.display === "none") {
  75. x.style.display = "flex";
  76. spider.style.zIndex = "9";
  77. }
  78. else {
  79. x.style.display ="none";
  80. spider.style.zIndex = "0";
  81. }
  82. }
  83. );
  84. // button 4
  85. document.getElementById("b_4").addEventListener("click", function menu() {
  86. var x= document.getElementById("c_4");
  87. let cube = document.getElementById("cube");
  88. if (x.style.display === "none") {
  89. x.style.display = "flex";
  90. cube.style.zIndex = "9";
  91. }
  92. else {
  93. x.style.display ="none";
  94. cube.style.zIndex = "0";
  95. }
  96. }
  97. );
  98. // button 5
  99. document.getElementById("b_5").addEventListener("click", function menu() {
  100. var x= document.getElementById("c_5");
  101. let offgrid = document.getElementById("offgrid");
  102. if (x.style.display === "none") {
  103. x.style.display = "flex";
  104. offgrid.style.zIndex = "9";
  105. }
  106. else {
  107. x.style.display ="none";
  108. offgrid.style.zIndex = "0";
  109. }
  110. }
  111. );
  112. // button 6
  113. document.getElementById("b_6").addEventListener("click", function menu() {
  114. var x= document.getElementById("c_6");
  115. let cyber = document.getElementById("cyber");
  116. if (x.style.display === "none") {
  117. x.style.display = "flex";
  118. cyber.style.zIndex = "9";
  119. }
  120. else {
  121. x.style.display ="none";
  122. cyber.style.zIndex = "0";
  123. }
  124. }
  125. );
  126. // button 7
  127. document.getElementById("b_7").addEventListener("click", function menu() {
  128. var x= document.getElementById("c_7");
  129. let machina = document.getElementById("machina");
  130. if (x.style.display === "none") {
  131. x.style.display = "flex";
  132. machina.style.zIndex = "9";
  133. }
  134. else {
  135. x.style.display ="none";
  136. machina.style.zIndex = "0";
  137. }
  138. }
  139. );
  140. // button
  141. document.getElementById("b_8").addEventListener("click", function menu() {
  142. var x= document.getElementById("c_8");
  143. let miner = document.getElementById("miner");
  144. if (x.style.display === "none") {
  145. x.style.display = "flex";
  146. miner.style.zIndex = "9";
  147. }
  148. else {
  149. x.style.display ="none";
  150. miner.style.zIndex = "0";
  151. }
  152. }
  153. );
  154. // this function shows an element by id
  155. function show() {
  156. var x= document.getElementById("information");
  157. if (x.style.display === "none") {
  158. x.style.display = "flex"; }
  159. else {
  160. x.style.display ="none";
  161. }
  162. }
  163. //this function shows element2 by id -to be generalized
  164. function display() {
  165. var x= document.getElementById("footer-links");
  166. if (x.style.display === "none") {
  167. x.style.display = "flex";}
  168. else {
  169. x.style.display ="none";
  170. }
  171. }