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.

testing.html 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
  6. <!-- CSP is a PITA ;). Disabled, don't try this at home!-->
  7. <meta http-equiv="Content-Security-Policy" content="">
  8. <!-- include bulma css -->
  9. <link rel="stylesheet" href="bulma/css/bulma.min.css">
  10. <title>My Test App</title>
  11. <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
  12. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
  13. integrity="sha512-abc123..." crossorigin="anonymous" />
  14. <style>
  15. .hidden {
  16. display: none;
  17. }
  18. .button-23 {
  19. background-color: #FFFFFF;
  20. border: 1px solid #222222;
  21. border-radius: 8px;
  22. box-sizing: border-box;
  23. color: #222222;
  24. cursor: pointer;
  25. display: inline-block;
  26. font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  27. font-size: 15px;
  28. font-weight: 600;
  29. line-height: 20px;
  30. margin: 0;
  31. outline: none;
  32. padding: 13px 23px;
  33. position: relative;
  34. text-align: center;
  35. text-decoration: none;
  36. touch-action: manipulation;
  37. transition: box-shadow .2s, -ms-transform .1s, -webkit-transform .1s, transform .1s;
  38. user-select: none;
  39. -webkit-user-select: none;
  40. width: auto;
  41. }
  42. .button-23:focus-visible {
  43. box-shadow: #222222 0 0 0 2px, rgba(255, 255, 255, 0.8) 0 0 0 4px;
  44. transition: box-shadow .2s;
  45. }
  46. .button-23:active {
  47. background-color: #F7F7F7;
  48. border-color: #000000;
  49. transform: scale(.96);
  50. }
  51. .button-23:disabled {
  52. border-color: #DDDDDD;
  53. color: #DDDDDD;
  54. cursor: not-allowed;
  55. opacity: 1;
  56. }
  57. .map-svg {
  58. display: block;
  59. margin: 0 auto;
  60. filter: drop-shadow(-16px 11px 2px rgba(0, 0, 0, 0.5));
  61. a {
  62. transition: all 1s;
  63. transform-origin: 50% 50%;
  64. text-decoration: none;
  65. filter: drop-shadow(3px 10px 5px rgb(0 0 0 / 0.4));
  66. @media only screen and (min-width: 992px) {
  67. polygon,
  68. &:hover {
  69. cursor: pointer;
  70. transform: scale(1.05);
  71. filter: drop-shadow(0px 15px 12px rgb(0 0 0 / 0.7));
  72. .st0 {
  73. fill: $dark-default;
  74. }
  75. }
  76. }
  77. }
  78. .pahang-barat {
  79. fill: #427bba;
  80. }
  81. .pahang-tengah {
  82. fill: #144172;
  83. }
  84. .pahang-timur {
  85. fill: #0c6088;
  86. }
  87. .label-text {
  88. font-size: 35px;
  89. fill: white;
  90. transform: translate(0,
  91. 3px);
  92. /* adjust vertical position to centre text */
  93. }
  94. .label-text-cameron {
  95. font-size: 20px;
  96. fill: white;
  97. transform: translate(0,
  98. 3px);
  99. /* adjust vertical position to centre text */
  100. }
  101. }
  102. </style>
  103. <script>
  104. // window.addEventListener('load', (event) => {
  105. // document.querySelector(".hello").textContent = "Hello from Electron with bulma css!";
  106. // });
  107. </script>
  108. </head>
  109. <body>
  110. <section class="section" style="max-height: 100vh;">
  111. <div class=""
  112. style="background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
  113. <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="index.html"><i
  114. class="fas fa-chevron-left"></i></a></h6>
  115. <h6 style="color: white;">Jerantut</h6>
  116. </div>
  117. <div class="text-center pt-5"
  118. style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
  119. <button id="pembangun_btn" type="button" class="p-1"
  120. style="font-weight: 500; border-top: 4px solid #BF3030; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Pembangunan&emsp;&emsp;</button>
  121. <button id="penternakan_btn" type="button" class="p-1"
  122. style="font-weight: 500; border-top: 4px solid #3B47E0; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Penternakan&emsp;&emsp;</button>
  123. <button id="pertanian_btn" type="button" class="p-1"
  124. style="font-weight: 500; border-top: 4px solid #E2E236; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Pertanian&emsp;&emsp;</button>
  125. <button id="industri_btn" type="button" class="p-1"
  126. style="font-weight: 500; border-top: 4px solid #32A740; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Industri&emsp;&emsp;</button>
  127. </div>
  128. <div class="text-center pt-1"
  129. style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
  130. <div class="pt-5" style="width: 600px;height: 100px;">
  131. <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
  132. xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-30 -30 1150 1150"
  133. style="enable-background: new 0 0 1080 1080" xml:space="preserve">
  134. <g>
  135. <a href="testing.html" data-area="jerantut">
  136. <path id="jerantut" class="pahang-barat" d="M431.5,110.2c5.4,5.9,6.4,12.3,2.5,19.5c-3.7,6.8-4.5,14.3-3.7,21.9h0c6.1,6.2,11.1,12-3.4,12.9
  137. c-4.7,0.3-7.1,4.1-9.8,7.3c-3.3,9.5-3.4,18.6,2.6,27.4c4.8,7.1,2.7,15.3,3.2,23.1c6.7,4.2,9.9,10.2,9.4,18.1c0,0.4-0.1,0.9,0,1.3
  138. c10.5,20.1,4.7,41.2,3.7,62c3.3,0.8,6.6,1.5,9.9,2.3c7.1,1.7,16,3.6,16.1,11.6c0.1,7.7-5.5,14.9-13.2,18.9c-4.1,2.1-8.1,4.6-12.5,6
  139. c-7.9,2.5-18.2,1.9-15.2,15.6c0.5,2.3-6.1,5.6-8,2.5c-6.5-10.5-22-8.4-27-20.7c-2.8-6.9-11.3-6.5-16.5-10.9c-3.7-3.2-7.2-0.5-7,4.7
  140. c0.1,2.9,0.7,5.8,1,8.7c1.1,4.1,2.7,7.5,6.1,10.6c8.4,7.6,7.2,14.4-2.8,19.2c-1.9,0.9-3.9,1.4-5.9,2.1c-21.4,6.9-22.1,9.7-4.7,25.1
  141. c6,5.3,8.7,9.3,0.1,14c-0.5,3.7-0.3,7.7-1.6,11.1c-3.6,9.5,3.7,13.5,8.9,11.1c15.5-7.3,33.5-5.8,48.3-14.7c0,0,0,0,0,0
  142. c0.8-5.5,3.8-8.5,9.4-7.2c5.9,1.4,7.7,5.6,6.9,11.5c-0.6,4.5-0.6,9.1-0.9,13.7c0,0,0,0,0,0c4.4,1,8.2-1.1,12.2-2.3
  143. c3.7-1.1,9.5-2.2,10.5,1.2c4.4,13.6,15.3,8.5,23.6,8.4c9.1-0.2,14.2,3.1,16.9,11.3c0.5,1.6,1.3,3.1,2.2,4.5
  144. c3.7,5.7,4.8,16.6,12.2,15.5c7-1,11.5-10.1,16-16.9c7.6-11.4,9.9-23.7,8.1-37c-0.7-5.4,0.2-10.7,7.1-11c6.5-0.3,11.1,2.7,12.9,9.6
  145. c1,3.9-2,10,5,11.3c0,0,0,0,0,0c7.8-9.7,17.1-3.1,25.9-2.3c0,0,0,0,0,0c9.3-10.9,18.8-4,28.3-1.1c0.9,0,2,0.4,3.1,0.8
  146. c10.6-0.9,20.1,8.8,31.2,3.3c15.2-9,12.5-28.7,24.3-40.1c5.4-5.2,11.4-9.6,16.9-14.7c5.9-5.6,10.6,1.1,13.3,6.4
  147. c4.9,9.6,10.1,7.4,12.2-0.6c4.4-16.9,14.8-26.4,31.2-30.2c1.5-3.4,3.2-6.9,1.2-10.6c-6-11.1-1.7-19.8,6.2-27.7c0,0,0,0,0,0
  148. c-3.8-3.3-7.7-6.5-11.2-10.1c-3.6-3.6-5.9-9.1-1.6-12.4c10.9-8.4,9.7-18.2,6-29.2c-1.3-3.9,1.5-7.3,3.7-10.4
  149. c2.5-3.5,4.2-7.3,3.4-11.8c-1.1-6.5,1.8-11.4,6.7-15.5c2.9-2.4,6.2-4.9,6.9-8.9c2.2-12.1,8.6-17.9,24.1-13.2
  150. c-4.2-8.1-7.4-14.8-3.2-20.1c12.5-15.7,0.6-26.4-7.1-37.8c-5.6-8.2-13-10.7-23.1-5.7c-9.3,4.6-20.1,5.9-28.9-0.9
  151. c-10.7-8.2-17.2-19.4-18.1-33.4c-0.4-6.2-1.4-12,7.1-13.5c4.7-0.8,6.7-3.9,4-8.3c-2.6-4.2-1.9-7.1,2.2-9.4c1.8-1,3.6-1.8,3.3-4.6
  152. c-1.7-15.9-19.5-28.8-35.8-25.6c-3.4,0.7-6.5,1.3-10,0.6c-21.3-4.2-39.7-13-51.6-32.3c-2.2-3.6-5.3-7-9.6-7.8
  153. c-5.9-1.2-10.9-10.1-16.8-4.9c-5.9,5.2-2.8,13.2-0.6,20.2c1.5,4.6,4.9,10,0.1,14.1c-4.1,3.5-10.8,3.2-14.5,0.9
  154. c-10.1-6.3-14.5-0.7-20.1,6.4c-8.4,10.4-13.2,10.3-23,1.2c-2.5-2.3-4.6-5-6.9-7.4c-7.6-7.9-33.2-11.8-42.8-6.8
  155. c-3.7,1.9-2.3,4.5-2.2,7.4c0.2,12.7-10,19.1-17.9,26c-6.4,5.5-13.4-0.5-19.5-4.2c-13.3-8-23.5-3.9-28.1,11c0,0,0,0,0,0
  156. C414.2,86.1,420.9,98.6,431.5,110.2z" />
  157. </a>
  158. </g>
  159. </svg>
  160. </div>
  161. </div>
  162. <div id="pembangun_plot" class="content-div">
  163. <div class="text-center pt-5"
  164. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  165. <h6>Pembangunan</h6><br>
  166. </div>
  167. <div class="text-center pt-2 text-nowrap"
  168. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  169. <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
  170. role="button">HSD 23453</a>
  171. <a href="detail.html" class="button-23 mb-2 mr-2"
  172. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  173. <a href="detail.html" class="button-23 mb-2 mr-2"
  174. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  175. <a href="detail.html" class="button-23 mb-2 mr-2"
  176. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  177. <a href="detail.html" class="button-23 mb-2 mr-2"
  178. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  179. <a href="detail.html" class="button-23 mb-2 mr-2"
  180. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  181. <a href="detail.html" class="button-23 mb-2 mr-2"
  182. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  183. <a href="detail.html" class="button-23 mb-2 mr-2"
  184. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  185. <a href="detail.html" class="button-23 mb-2 mr-2"
  186. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  187. <a href="detail.html" class="button-23 mb-2"
  188. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  189. </div>
  190. </div>
  191. <div id="penternakan_plot" class="hidden content-div">
  192. <div class="text-center pt-5"
  193. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  194. <h6>Penternakan</h6><br>
  195. </div>
  196. <div class="text-center pt-2 text-nowrap"
  197. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  198. <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
  199. role="button">HSD 23453</a>
  200. <a href="detail.html" class="button-23 mb-2 mr-2"
  201. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  202. <a href="detail.html" class="button-23 mb-2 mr-2"
  203. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  204. <a href="detail.html" class="button-23 mb-2 mr-2"
  205. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  206. <a href="detail.html" class="button-23 mb-2 mr-2"
  207. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  208. <a href="detail.html" class="button-23 mb-2 mr-2"
  209. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  210. <a href="detail.html" class="button-23 mb-2 mr-2"
  211. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  212. <a href="detail.html" class="button-23 mb-2 mr-2"
  213. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  214. <a href="detail.html" class="button-23 mb-2 mr-2"
  215. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  216. <a href="detail.html" class="button-23 mb-2"
  217. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  218. </div>
  219. </div>
  220. <div id="industri_plot" class="hidden content-div">
  221. <div class="text-center pt-5"
  222. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  223. <h6>Industri</h6><br>
  224. </div>
  225. <div class="text-center pt-2 text-nowrap"
  226. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  227. <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
  228. role="button">HSD 23453</a>
  229. <a href="detail.html" class="button-23 mb-2 mr-2"
  230. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  231. <a href="detail.html" class="button-23 mb-2 mr-2"
  232. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  233. <a href="detail.html" class="button-23 mb-2 mr-2"
  234. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  235. <a href="detail.html" class="button-23 mb-2 mr-2"
  236. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  237. <a href="detail.html" class="button-23 mb-2 mr-2"
  238. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  239. <a href="detail.html" class="button-23 mb-2 mr-2"
  240. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  241. <a href="detail.html" class="button-23 mb-2 mr-2"
  242. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  243. <a href="detail.html" class="button-23 mb-2 mr-2"
  244. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  245. <a href="detail.html" class="button-23 mb-2"
  246. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  247. </div>
  248. </div>
  249. <div id="pertanian_plot" class="hidden content-div">
  250. <div class="text-center pt-5"
  251. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  252. <h6>Pertanian</h6><br>
  253. </div>
  254. <div class="text-center pt-2 text-nowrap"
  255. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  256. <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
  257. role="button">HSD 23453</a>
  258. <a href="detail.html" class="button-23 mb-2 mr-2"
  259. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  260. <a href="detail.html" class="button-23 mb-2 mr-2"
  261. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  262. <a href="detail.html" class="button-23 mb-2 mr-2"
  263. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  264. <a href="detail.html" class="button-23 mb-2 mr-2"
  265. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  266. <a href="detail.html" class="button-23 mb-2 mr-2"
  267. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  268. <a href="detail.html" class="button-23 mb-2 mr-2"
  269. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  270. <a href="detail.html" class="button-23 mb-2 mr-2"
  271. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  272. <a href="detail.html" class="button-23 mb-2 mr-2"
  273. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  274. <a href="detail.html" class="button-23 mb-2"
  275. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
  276. </div>
  277. </div>
  278. </section>
  279. <script>
  280. document.getElementById('pembangun_btn').addEventListener('click', function () {
  281. showDiv('pembangun_plot');
  282. });
  283. document.getElementById('penternakan_btn').addEventListener('click', function () {
  284. showDiv('penternakan_plot');
  285. });
  286. document.getElementById('pertanian_btn').addEventListener('click', function () {
  287. showDiv('pertanian_plot');
  288. });
  289. document.getElementById('industri_btn').addEventListener('click', function () {
  290. showDiv('industri_plot');
  291. });
  292. function showDiv(divId) {
  293. var divs = document.getElementsByClassName('content-div');
  294. for (var i = 0; i < divs.length; i++) {
  295. divs[i].classList.add('hidden');
  296. }
  297. document.getElementById(divId).classList.remove('hidden');
  298. }
  299. </script>
  300. <script defer src="/ruta relativa a mi archivo .js"></script>
  301. </body>
  302. </html>