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.

pembangunan.html 13KB

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