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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. <title>SIBS 2024</title>
  9. <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-abc123..." crossorigin="anonymous" />
  11. <link rel="stylesheet" href="../css/app.css">
  12. <link rel="stylesheet" href="../css/animate.css">
  13. </head>
  14. <body>
  15. <section class="section animate__animated animate__fadeIn" style="max-height: 100vh;">
  16. <div class=""
  17. style="z-index: 3;background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
  18. <h6 style="z-index:3; color: white;margin-right: 1em;" class=""><a style="color: white;" href="../index.html"><i
  19. class="fas fa-chevron-left"></i></a></h6>
  20. <h6 style="color: white;">Rompin</h6>
  21. </div>
  22. <div class="text-center pt-5"
  23. style="z-index: 2; position: relative;background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 0px;">
  24. <button id="pembangun_btn" type="button" class="p-1"
  25. 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>
  26. <button id="penternakan_btn" type="button" class="p-1"
  27. 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>
  28. </div>
  29. <div class="text-center pt-1"
  30. style="min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: -0px;">
  31. <div class="pt-5 position-relative" style="width: 650px;height: 100px;margin-top: -700px;margin-left: -300px;">
  32. <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
  33. xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="150 150 950 950"
  34. style="enable-background: new 0 0 1080 1080" xml:space="preserve">
  35. <g>
  36. <a href="#" data-area="jerantut">
  37. <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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. C1077.3,1071.6,1068.9,1052.1,1065.4,1052.3z" />
  51. </a>
  52. </g>
  53. </svg>
  54. <!--Pembangunan-->
  55. <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>
  56. <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>
  57. <!-- Penternakan -->
  58. <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>
  59. <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>
  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: 541px;top:538px;left:542px"></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: 541px;top:563px;left:507px"></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:634px;left:476px"></div>
  63. </div>
  64. </div>
  65. <div id="pembangun_plot" class="position-relative content-div animate__animated animate__fadeIn" style="z-index: 3;background-color: rgb(0, 0, 0, 0);">
  66. <div class="text-center pt-5"style="display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  67. <h6>Pembangunan</h6><br>
  68. </div>
  69. <div class="text-center pt-2 text-nowrap flex-wrap"
  70. style="display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  71. <a href="../details/detail_hsd5715.html" class="button-23 mb-2 mr-2"
  72. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5715</a>
  73. <a href="../details/detail_hsd5734.html" class="button-23 mb-2 mr-2"
  74. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5734</a>
  75. <a href="../details/detail_hsd5738.html" class="button-23 mb-2 mr-2"
  76. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5738</a>
  77. </div>
  78. </div>
  79. <div id="penternakan_plot" class="hidden position-relative content-div animate__animated animate__fadeIn" style="z-index: 3;background-color: rgb(0, 0, 0, 0);">
  80. <div class="text-center pt-5"
  81. style="display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  82. <h6>Penternakan</h6><br>
  83. </div>
  84. <div class="text-center pt-2 text-nowrap flex-wrap"
  85. style="display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  86. <a href="../details/detail_hsd4638.html" class="button-23 mb-2 mr-2"
  87. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 4638</a>
  88. <a href="../details/detail_hsd5714.html" class="button-23 mb-2 mr-2"
  89. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5714</a>
  90. <a href="../details/detail_hsd5745.html" class="button-23 mb-2 mr-2"
  91. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5745</a>
  92. <a href="../details/detail_hsd5749.html" class="button-23 mb-2 mr-2"
  93. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5749</a>
  94. <a href="../details/detail_hsd5761.html" class="button-23 mb-2 mr-2"
  95. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5761</a>
  96. <a href="../details/detail_hsd5762.html" class="button-23 mb-2 mr-2"
  97. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5762</a>
  98. <a href="../details/detail_hsd5763.html" class="button-23 mb-2 mr-2"
  99. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5763</a>
  100. <a href="../details/detail_hsd5764.html" class="button-23 mb-2 mr-2"
  101. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5764</a>
  102. <a href="../details/detail_pn28612.html" class="button-23 mb-2"
  103. style="background-color: #1F9027; color: white; border: none;" role="button">PN 28612</a>
  104. </div>
  105. </div>
  106. </section>
  107. <script>
  108. document.getElementById('pembangun_btn').addEventListener('click', function () {
  109. showDiv('pembangun_plot');
  110. sessionStorage.setItem("prev-btn", 'pembangun_btn');
  111. showPoint('pembangunan-point');
  112. });
  113. document.getElementById('penternakan_btn').addEventListener('click', function () {
  114. showDiv('penternakan_plot');
  115. sessionStorage.setItem("prev-btn", 'penternakan_btn');
  116. showPoint('penternakan-point');
  117. });
  118. function showDiv(divId) {
  119. var divs = document.getElementsByClassName('content-div');
  120. for (var i = 0; i < divs.length; i++) {
  121. divs[i].classList.add('hidden');
  122. }
  123. document.getElementById(divId).classList.remove('hidden');
  124. }
  125. function showPoint(plotClass) {
  126. var divs = document.getElementsByClassName('plot');
  127. for (var i = 0; i < divs.length; i++) {
  128. divs[i].classList.add('hidden');
  129. }
  130. var plots = document.getElementsByClassName(plotClass);
  131. for (var i = 0; i < plots.length; i++) {
  132. plots[i].classList.remove('hidden');
  133. }
  134. }
  135. if(sessionStorage.getItem("prev-btn")){
  136. let prev_btn = sessionStorage.getItem("prev-btn");
  137. let targetButton = document.getElementById(prev_btn);
  138. targetButton.click();
  139. }
  140. </script>
  141. <script>
  142. let rompin = document.querySelector("#rompin");
  143. addLabelText(rompin, "Rompin");
  144. function addLabelText(bgPath, labelText) {
  145. let bbox = bgPath.getBBox();
  146. let x = bbox.x + bbox.width / 2;
  147. let y = bbox.y + bbox.height / 2;
  148. // Create a <text> element
  149. let textElem = document.createElementNS(bgPath.namespaceURI, "text");
  150. // X axis
  151. if (labelText == "Bentong") {
  152. textElem.setAttribute("x", 286);
  153. } else if (labelText == "Pekan") {
  154. textElem.setAttribute("x", 870);
  155. } else if (labelText == "Cameron") {
  156. textElem.setAttribute("x", 75);
  157. } else {
  158. textElem.setAttribute("x", x);
  159. }
  160. // Y axis
  161. if (labelText == "Rompin") {
  162. textElem.setAttribute("y", 935);
  163. } else if (labelText == "Pekan") {
  164. textElem.setAttribute("y", 650);
  165. } else if (labelText == "Kuantan") {
  166. textElem.setAttribute("y", 440);
  167. } else if (labelText == "Cameron") {
  168. textElem.setAttribute("y", 130);
  169. } else if (labelText == "Highland") {
  170. textElem.setAttribute("y", 155);
  171. } else {
  172. textElem.setAttribute("y", y);
  173. }
  174. // Centre text horizontally at x,y
  175. textElem.setAttribute("text-anchor", "middle");
  176. // Give it a class that will determine the text size, colour, etc
  177. if (labelText == "Cameron" || labelText == "Highland") {
  178. textElem.classList.add("label-text-cameron");
  179. } else {
  180. textElem.classList.add("label-text");
  181. }
  182. // Set the text
  183. textElem.textContent = labelText;
  184. // Add this text element directly after the label background path
  185. bgPath.after(textElem);
  186. }
  187. </script>
  188. </body>
  189. </html>