Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pembangunan.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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">
  11. <link rel="stylesheet" href="./css/app.css">
  12. <script>
  13. // window.addEventListener('load', (event) => {
  14. // document.querySelector(".hello").textContent = "Hello from Electron with bulma css!";
  15. // });
  16. </script>
  17. </head>
  18. <body>
  19. <section class="section " style="max-height: 120vh;">
  20. <div
  21. style="background-image: url(Mask_Group_2.png); min-height: 175px; display: flex; flex-direction: column; justify-content: center; padding-left: 100px;padding-right: 100px;">
  22. <img class="pb-2" src="Group_49433x.png" style="height: auto;width: 8%" alt="">
  23. <h6 style="color: white; margin-bottom: 2px;">Pelan Kawasan Tanah Milik Perbadanan</h6>
  24. <h6 style="color: white; margin-bottom: 10px;font-weight: 400;">Setiausaha Kerajaan (PSK) Pahang Tanpa Skala
  25. </h6>
  26. <form id="fileForm" style="display: flex; align-items: center;">
  27. <input id="fileNumber" type="text" class="p-1"
  28. style="border-radius: 21px; border: none; padding-left: 20px !important; flex: 1;"
  29. placeholder="Search Here">
  30. <button class="btn btn-primary" type="submit" style="margin-left: 10px;">Search</button>
  31. </form>
  32. </div>
  33. <div class="text-center pt-1"
  34. style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 0px;">
  35. <div class="pt-4" style="width: 600px;height: 100px;">
  36. <h3> <a href="./index.html" class="btn btn-primary" type="submit" style="margin-left: 10px;">Home</a></h3>
  37. </div>
  38. </div>
  39. <div class="text-left pt-1 container">
  40. <div class="pt-4 mb-0 pb-0">
  41. <h4>Senarai Hakmilik <b>Pembangunan</b></h4>
  42. </div>
  43. </div>
  44. <div class="text-left pt-1 container text-nowrap flex-wrap">
  45. <div class="pt-4 text-nowrap flex-wrap">
  46. <h6>Raub</h6>
  47. <a href="./details/detail_hsd11863.html" class="button-23 mb-2 mr-2"
  48. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 11863</a>
  49. </div>
  50. </div>
  51. <div class="text-left pt-1 container text-nowrap flex-wrap" style="display: flex;">
  52. <div class="pt-4 flex-wrap" style="display: flex; flex-wrap: wrap;gap: 10px;">
  53. <h6 style="width: 100%;">Kuantan</h6>
  54. <a href="./details/detail_hsd62438.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62438</a>
  55. <a href="./details/detail_hsd62441.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62441</a>
  56. <a href="./details/detail_hsd62442.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62442</a>
  57. <a href="./details/detail_hsd62443.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62443</a>
  58. <a href="./details/detail_hsd62495.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62495</a>
  59. <a href="./details/detail_hsd62497.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62497</a>
  60. <a href="./details/detail_hsd62503.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62503</a>
  61. <a href="./details/detail_hsd62504.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62504</a>
  62. <a href="./details/detail_hsd62520.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62520</a>
  63. <a href="./details/detail_hsm1225.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSM 1225</a>
  64. <a href="./details/detail_hsm1909.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSM 1909</a>
  65. <a href="./details/detail_hsm90298.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSM 90298</a>
  66. <a href="./details/detail_pm32006.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">PM 32006</a>
  67. </div>
  68. </div>
  69. <div class="text-left pt-1 pb-5 container text-nowrap flex-wrap" style="display: flex;">
  70. <div class="pt-4 text-nowrap flex-wrap">
  71. <h6>Rompin</h6>
  72. <a href="./details/detail_hsd5715.html" class="button-23 mb-2 mr-2"
  73. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5715</a>
  74. <a href="./details/detail_hsd5734.html" class="button-23 mb-2 mr-2"
  75. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5734</a>
  76. <a href="./details/detail_hsd5738.html" class="button-23 mb-2 mr-2"
  77. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5738</a>
  78. </div>
  79. </div>
  80. </section>
  81. <script>
  82. document.getElementById('fileForm').addEventListener('submit', function (event) {
  83. event.preventDefault(); // Prevent the form from submitting the traditional way
  84. var fileInput = document.getElementById('fileNumber').value;
  85. var numberRegex = /\d/; // Regular expression to check for any digit
  86. var matchedFile;
  87. var keywordMapping = {
  88. 'industri': 'industri.html',
  89. 'pembangunan': 'pembangunan.html',
  90. 'penternakan': 'penternakan.html',
  91. 'pertanian': 'pertanian.html'
  92. };
  93. if (keywordMapping[fileInput]) {
  94. // If the input matches one of the keywords, redirect to the corresponding file
  95. window.location.href = keywordMapping[fileInput];
  96. return;
  97. }
  98. if (numberRegex.test(fileInput)) {
  99. // Hardcoded list of files containing numbers
  100. var numberFiles = [
  101. 'details_search/detail_hsd2384.html',
  102. 'details_search/detail_hsd4638.html',
  103. 'details_search/detail_hsd5621.html',
  104. 'details_search/detail_hsd5625.html',
  105. 'details_search/detail_hsd5627.html',
  106. 'details_search/detail_hsd5714.html',
  107. 'details_search/detail_hsd5715.html',
  108. 'details_search/detail_hsd5734.html',
  109. 'details_search/detail_hsd5738.html',
  110. 'details_search/detail_hsd5745.html',
  111. 'details_search/detail_hsd5749.html',
  112. 'details_search/detail_hsd5761.html',
  113. 'details_search/detail_hsd5762.html',
  114. 'details_search/detail_hsd5763.html',
  115. 'details_search/detail_hsd5764.html',
  116. 'details_search/detail_hsd10006.html',
  117. 'details_search/detail_hsd11863.html',
  118. 'details_search/detail_hsd11991.html',
  119. 'details_search/detail_hsd19372.html',
  120. 'details_search/detail_hsd35309.html',
  121. 'details_search/detail_hsd41862.html',
  122. 'details_search/detail_hsd54735.html',
  123. 'details_search/detail_hsd54736.html',
  124. 'details_search/detail_hsd54737.html',
  125. 'details_search/detail_hsd62437.html',
  126. 'details_search/detail_hsd62438.html',
  127. 'details_search/detail_hsd62441.html',
  128. 'details_search/detail_hsd62442.html',
  129. 'details_search/detail_hsd62443.html',
  130. 'details_search/detail_hsd62495.html',
  131. 'details_search/detail_hsd62497.html',
  132. 'details_search/detail_hsd62503.html',
  133. 'details_search/detail_hsd62504.html',
  134. 'details_search/detail_hsd62510.html',
  135. 'details_search/detail_hsd62520.html',
  136. 'details_search/detail_hsm1225.html',
  137. 'details_search/detail_hsm1909.html',
  138. 'details_search/detail_hsm90298.html',
  139. 'details_search/detail_pm32006.html',
  140. 'details_search/detail_pn16507.html',
  141. 'details_search/detail_pn17421_hsd1950.html',
  142. 'details_search/detail_pn17427_hsd1949.html',
  143. 'details_search/detail_pn28612.html'
  144. ];
  145. var regex = new RegExp(fileInput);
  146. matchedFile = numberFiles.find(file => regex.test(file));
  147. } else {
  148. // Hardcoded list of files containing names
  149. var nameFiles = [
  150. 'lists/bentong.html',
  151. 'lists/bera.html',
  152. 'lists/kuantan.html',
  153. 'lists/lipis.html',
  154. 'lists/maran.html',
  155. 'lists/pekan.html',
  156. 'lists/raub.html',
  157. 'lists/rompin.html',
  158. 'lists/temerloh.html'
  159. ];
  160. var nameRegex = new RegExp(fileInput, 'i'); // Case-insensitive search
  161. matchedFile = nameFiles.find(file => nameRegex.test(file));
  162. }
  163. if (matchedFile) {
  164. // File found, redirect to it
  165. window.location.href = matchedFile;
  166. } else {
  167. // alert('No file containing the input ' + fileInput + ' was found.');
  168. }
  169. });
  170. </script>
  171. <script>
  172. let maran = document.querySelector("#maran");
  173. let cameronHighland = document.querySelector("#cameron-highland");
  174. let bentong = document.querySelector("#bentong");
  175. let lipis = document.querySelector("#lipis");
  176. let raub = document.querySelector("#raub");
  177. let jerantut = document.querySelector("#jerantut");
  178. let kuantan = document.querySelector("#kuantan");
  179. let temerloh = document.querySelector("#temerloh");
  180. let rompin = document.querySelector("#rompin");
  181. let bera = document.querySelector("#bera");
  182. let pekan = document.querySelector("#pekan");
  183. addLabelText(maran, "Maran");
  184. addLabelText(cameronHighland, "Cameron");
  185. addLabelText(cameronHighland, "Highland");
  186. addLabelText(bentong, "Bentong");
  187. addLabelText(lipis, "Lipis");
  188. addLabelText(raub, "Raub");
  189. addLabelText(jerantut, "Jerantut");
  190. addLabelText(kuantan, "Kuantan");
  191. addLabelText(temerloh, "Temerloh");
  192. addLabelText(rompin, "Rompin");
  193. addLabelText(bera, "Bera");
  194. addLabelText(pekan, "Pekan");
  195. function addLabelText(bgPath, labelText) {
  196. let bbox = bgPath.getBBox();
  197. let x = bbox.x + bbox.width / 2;
  198. let y = bbox.y + bbox.height / 2;
  199. // Create a <text> element
  200. let textElem = document.createElementNS(bgPath.namespaceURI, "text");
  201. // X axis
  202. if (labelText == "Bentong") {
  203. textElem.setAttribute("x", 286);
  204. } else if (labelText == "Pekan") {
  205. textElem.setAttribute("x", 870);
  206. } else if (labelText == "Cameron") {
  207. textElem.setAttribute("x", 75);
  208. } else {
  209. textElem.setAttribute("x", x);
  210. }
  211. // Y axis
  212. if (labelText == "Rompin") {
  213. textElem.setAttribute("y", 935);
  214. } else if (labelText == "Pekan") {
  215. textElem.setAttribute("y", 650);
  216. } else if (labelText == "Kuantan") {
  217. textElem.setAttribute("y", 440);
  218. } else if (labelText == "Cameron") {
  219. textElem.setAttribute("y", 130);
  220. } else if (labelText == "Highland") {
  221. textElem.setAttribute("y", 155);
  222. } else {
  223. textElem.setAttribute("y", y);
  224. }
  225. // Centre text horizontally at x,y
  226. textElem.setAttribute("text-anchor", "middle");
  227. // Give it a class that will determine the text size, colour, etc
  228. if (labelText == "Cameron" || labelText == "Highland") {
  229. textElem.classList.add("label-text-cameron");
  230. } else {
  231. textElem.classList.add("label-text");
  232. }
  233. // Set the text
  234. textElem.textContent = labelText;
  235. // Add this text element directly after the label background path
  236. bgPath.after(textElem);
  237. }
  238. </script>
  239. </body>
  240. </html>