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.

rompin.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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>SIBS 2024</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" integrity="sha512-abc123..." crossorigin="anonymous" />
  13. <link rel="stylesheet" href="../css/app.css">
  14. <link rel="stylesheet" href="../css/animate.css">
  15. </head>
  16. <body>
  17. <section class="section" style="max-height: 100vh;">
  18. <div class=""
  19. style="z-index: 3;background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
  20. <h6 style="z-index:3; color: white;margin-right: 1em;" class=""><a style="color: white;" href="../index.html"><i
  21. class="fas fa-chevron-left"></i></a></h6>
  22. <h6 style="color: white;">Rompin</h6>
  23. </div>
  24. <div class="text-center pt-5"
  25. style="z-index: 2; position: relative;background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 0px;">
  26. <button id="pembangun_btn" type="button" class="p-1"
  27. 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>
  28. <button id="penternakan_btn" type="button" class="p-1"
  29. 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>
  30. </div>
  31. <div class="text-center pt-1"
  32. style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: -0px;">
  33. <div class="pt-5 position-relative" style="width: 650px;height: 100px;margin-top: -700px;margin-left: -300px;">
  34. <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
  35. xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="150 150 950 950"
  36. style="enable-background: new 0 0 1080 1080" xml:space="preserve">
  37. <g>
  38. <a href="#" data-area="jerantut">
  39. <path id="rompin" class="pahang-timur" d="M1065.4,1052.3c-13.9,1-8.9-8.3-7.4-14.1c1.6-6.6,3.2-13.2,7.8-19.2c3.4-4.5,5.4-12-4.6-14.6
  40. c-6-1.6-6.5-7.6-5.6-12.6c0.9-5.4,5.4-7.1,10.6-7c2.4,0,4.7,2.4,7.2,0c0.4-2.4-1.3-3.8-2.9-5.1c-22.7-19.1-43.4-39.9-61.8-63.3
  41. c-12.4-15.7-22.8-31.6-26-51.3c-1.3-8.2-4.8-12.1-12.7-12.8c-33.5-2.8-66.9-6.7-100.5-1.2c-4.8,0.8-9.8,3.6-14.4-0.6c0,0,0,0,0,0
  42. c-2.8-6.1-5.7-11.3-13.2-13.8c-10.4-3.4-12.1-15.5-18.9-22.9c-6-6.6-9.4-16.1-14.8-24c-5.1-7.3,0.6-13.1,8.4-16.3
  43. c13.6-5.5,20.7-31.1,13.3-44c-7.5-13.2-20.4-24.2-18.2-41.6c0,0,0,0,0,0c-5.4-1.7-9.9,1.8-12,5.1c-6.3,9.8-17.1,8.4-25.8,11.6
  44. c-5.5,2-10.3-1.8-13.7-6.5c-2-2.8-1.5-8.3-7-7.2c-4.9,1-4,5.6-4.9,9.1c-0.5,1.9-1.6,3.7-2.4,5.6c0,0,0,0,0,0
  45. c-6.7,6.5-13.1,1-16.7-2.7c-11.2-11.2-25.1-20.1-32-35.2c0,0,0,0,0,0c-2.3-2.2-2.5-5.1-2.3-8c-9.6-4.8-21.3,2.6-30.4-5.3
  46. c0,0,0,0,0,0c-5.9-0.1-5.7,5.2-7.5,8.6c-3.6,6.9-5,15.3-12.6,19.6c0,0,0,0,0,0c-1,5.1-2.1,10.1-3.1,15.2c0,0,0,0,0,0
  47. c15.3,14.5,27.9,32,46,43.6c7.3,4.7,6.3,9.8-1.1,12.9c-7.1,3-11.7,10.4-21.4,9.5c-3.9-0.4,1.8,6.6-0.3,10.1l0,0c0,0,0,0,0,0
  48. c-1.6,12,0.3,22.3,11.9,29.1c5.1,3,5.5,7.6,2.8,12.9c-4.2,8.1-7.9,16.4-11.8,24.7c0,0,0,0,0,0c5.2,13,1.9,26.5-1.6,38.5
  49. c-3.6,12.5,2.1,19.3,8.3,27.4c2.3,3,4,6.3,6,9.5c0,0,0,0,0,0c25.9,25.7,47.6,55.1,71.6,82.3c7,7.9,12.8,16.9,23.2,21.2
  50. c22.2,9.4,44.4,19,66.5,28.8c6.7,3,12.6,2.7,19.4-0.1c24.3-9.9,48.1-21.1,74.1-26.5c8.9-1.8,16.4-1.4,24.4,3
  51. c8.8,4.8,17,11.6,27.6,12.4c6.1,0.4,9.7,3.8,13.7,7.9c15.9,16.7,37.8,23.5,57.8,33.3c4.1,2,12.7,3,16.9-3.3
  52. C1077.3,1071.6,1068.9,1052.1,1065.4,1052.3z" />
  53. </a>
  54. </g>
  55. </svg>
  56. <!--Pembangunan-->
  57. <div class="plot animate__animated animate__bounceIn pembangunan-point position-absolute" style="background-color: #BF3030; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 600px;top:545px;left:559px"></div>
  58. <div class="plot animate__animated animate__bounceIn pembangunan-point position-absolute" style="background-color: #BF3030; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 600px;top:601px;left:607px"></div>
  59. <!-- Penternakan -->
  60. <div class="plot animate__animated animate__bounceIn penternakan-point position-absolute hidden" style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 600px;top:527px;left:501px"></div>
  61. <div class="plot animate__animated animate__bounceIn penternakan-point position-absolute hidden" style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 600px;top:538px;left:504px"></div>
  62. <div class="plot animate__animated animate__bounceIn penternakan-point position-absolute hidden" style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 541px;top:538px;left:542px"></div>
  63. <div class="plot animate__animated animate__bounceIn penternakan-point position-absolute hidden" style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 541px;top:563px;left:507px"></div>
  64. <div class="plot animate__animated animate__bounceIn penternakan-point position-absolute hidden" style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 541px;top:634px;left:476px"></div>
  65. </div>
  66. </div>
  67. <div id="pembangun_plot" class="content-div">
  68. <div class="text-center pt-5"
  69. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  70. <h6>Pembangunan</h6><br>
  71. </div>
  72. <div class="text-center pt-2 text-nowrap flex-wrap"
  73. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  74. <a href="../details/detail_hsd5715.html" class="button-23 mb-2 mr-2"
  75. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5715</a>
  76. <a href="../details/detail_hsd5734.html" class="button-23 mb-2 mr-2"
  77. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5734</a>
  78. <a href="../details/detail_hsd5738.html" class="button-23 mb-2 mr-2"
  79. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5738</a>
  80. </div>
  81. </div>
  82. <div id="penternakan_plot" class="hidden content-div">
  83. <div class="text-center pt-5"
  84. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  85. <h6>Penternakan</h6><br>
  86. </div>
  87. <div class="text-center pt-2 text-nowrap flex-wrap"
  88. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  89. <a href="../details/detail_hsd4638.html" class="button-23 mb-2 mr-2"
  90. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 4638</a>
  91. <a href="../details/detail_hsd5714.html" class="button-23 mb-2 mr-2"
  92. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5714</a>
  93. <a href="../details/detail_hsd5745.html" class="button-23 mb-2 mr-2"
  94. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5745</a>
  95. <a href="../details/detail_hsd5749.html" class="button-23 mb-2 mr-2"
  96. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5749</a>
  97. <a href="../details/detail_hsd5761.html" class="button-23 mb-2 mr-2"
  98. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5761</a>
  99. <a href="../details/detail_hsd5762.html" class="button-23 mb-2 mr-2"
  100. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5762</a>
  101. <a href="../details/detail_hsd5763.html" class="button-23 mb-2 mr-2"
  102. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5763</a>
  103. <a href="../details/detail_hsd5764.html" class="button-23 mb-2 mr-2"
  104. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5764</a>
  105. <a href="../details/detail_pn28612.html" class="button-23 mb-2"
  106. style="background-color: #1F9027; color: white; border: none;" role="button">PN 28612</a>
  107. </div>
  108. </div>
  109. </section>
  110. <script>
  111. document.getElementById('pembangun_btn').addEventListener('click', function () {
  112. showDiv('pembangun_plot');
  113. showPoint('pembangunan-point');
  114. });
  115. document.getElementById('penternakan_btn').addEventListener('click', function () {
  116. showDiv('penternakan_plot');
  117. showPoint('penternakan-point');
  118. });
  119. function showDiv(divId) {
  120. var divs = document.getElementsByClassName('content-div');
  121. for (var i = 0; i < divs.length; i++) {
  122. divs[i].classList.add('hidden');
  123. }
  124. document.getElementById(divId).classList.remove('hidden');
  125. }
  126. function showPoint(plotClass) {
  127. var divs = document.getElementsByClassName('plot');
  128. for (var i = 0; i < divs.length; i++) {
  129. divs[i].classList.add('hidden');
  130. }
  131. var plots = document.getElementsByClassName(plotClass);
  132. for (var i = 0; i < divs.length; i++) {
  133. plots[i].classList.remove('hidden');
  134. }
  135. }
  136. </script>
  137. <script>
  138. let rompin = document.querySelector("#rompin");
  139. addLabelText(rompin, "Rompin");
  140. function addLabelText(bgPath, labelText) {
  141. let bbox = bgPath.getBBox();
  142. let x = bbox.x + bbox.width / 2;
  143. let y = bbox.y + bbox.height / 2;
  144. // Create a <text> element
  145. let textElem = document.createElementNS(bgPath.namespaceURI, "text");
  146. // X axis
  147. if (labelText == "Bentong") {
  148. textElem.setAttribute("x", 286);
  149. } else if (labelText == "Pekan") {
  150. textElem.setAttribute("x", 870);
  151. } else if (labelText == "Cameron") {
  152. textElem.setAttribute("x", 75);
  153. } else {
  154. textElem.setAttribute("x", x);
  155. }
  156. // Y axis
  157. if (labelText == "Rompin") {
  158. textElem.setAttribute("y", 935);
  159. } else if (labelText == "Pekan") {
  160. textElem.setAttribute("y", 650);
  161. } else if (labelText == "Kuantan") {
  162. textElem.setAttribute("y", 440);
  163. } else if (labelText == "Cameron") {
  164. textElem.setAttribute("y", 130);
  165. } else if (labelText == "Highland") {
  166. textElem.setAttribute("y", 155);
  167. } else {
  168. textElem.setAttribute("y", y);
  169. }
  170. // Centre text horizontally at x,y
  171. textElem.setAttribute("text-anchor", "middle");
  172. // Give it a class that will determine the text size, colour, etc
  173. if (labelText == "Cameron" || labelText == "Highland") {
  174. textElem.classList.add("label-text-cameron");
  175. } else {
  176. textElem.classList.add("label-text");
  177. }
  178. // Set the text
  179. textElem.textContent = labelText;
  180. // Add this text element directly after the label background path
  181. bgPath.after(textElem);
  182. }
  183. </script>
  184. <script defer src="/ruta relativa a mi archivo .js"></script>
  185. </body>
  186. </html>