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.

industri.html 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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>Industri</b></h4>
  42. </div>
  43. </div>
  44. <div class="text-left pt-1 container">
  45. <div class="pt-4" >
  46. <h6>Temerloh</h6>
  47. <a href="./details/detail_pn16507.html" class="button-23 mb-2"
  48. style="background-color: #1F9027; color: white; border: none;" role="button">PN 16507</a>
  49. </div>
  50. </div>
  51. <div class="text-left pt-1 container">
  52. <div class="pt-4">
  53. <h6>Kuantan</h6>
  54. <a href="./details/detail_hsd62437.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62437</a>
  55. <a href="./details/detail_hsd62510.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62510</a>
  56. </div>
  57. </div>
  58. </section>
  59. <script>
  60. document.getElementById('fileForm').addEventListener('submit', function (event) {
  61. event.preventDefault(); // Prevent the form from submitting the traditional way
  62. var fileInput = document.getElementById('fileNumber').value;
  63. var numberRegex = /\d/; // Regular expression to check for any digit
  64. var matchedFile;
  65. if (numberRegex.test(fileInput)) {
  66. // Hardcoded list of files containing numbers
  67. var numberFiles = [
  68. 'details/detail_hsd2384.html',
  69. 'details/detail_hsd4638.html',
  70. 'details/detail_hsd5621.html',
  71. 'details/detail_hsd5625.html',
  72. 'details/detail_hsd5627.html',
  73. 'details/detail_hsd5714.html',
  74. 'details/detail_hsd5715.html',
  75. 'details/detail_hsd5734.html',
  76. 'details/detail_hsd5738.html',
  77. 'details/detail_hsd5745.html',
  78. 'details/detail_hsd5749.html',
  79. 'details/detail_hsd5761.html',
  80. 'details/detail_hsd5762.html',
  81. 'details/detail_hsd5763.html',
  82. 'details/detail_hsd5764.html',
  83. 'details/detail_hsd11863.html',
  84. 'details/detail_hsd11991.html',
  85. 'details/detail_hsd35309.html',
  86. 'details/detail_hsd41862.html',
  87. 'details/detail_hsd54735.html',
  88. 'details/detail_hsd54736.html',
  89. 'details/detail_hsd54737.html',
  90. 'details/detail_hsd62438.html',
  91. 'details/detail_hsd62441.html',
  92. 'details/detail_hsd62442.html',
  93. 'details/detail_hsd62443.html',
  94. 'details/detail_hsd62495.html',
  95. 'details/detail_hsd62503.html',
  96. 'details/detail_hsd62504.html',
  97. 'details/detail_hsd62520.html',
  98. 'details/detail_hsm1225.html',
  99. 'details/detail_hsm1909.html',
  100. 'details/detail_hsm90298.html',
  101. 'details/detail_pm32006.html',
  102. 'details/detail_pn16507.html',
  103. 'details/detail_pn28612.html',
  104. 'details/penternakan_hsd_10006.html',
  105. 'details/penternakan_hsd_19372.html',
  106. 'details/penternakan_pn_17421_hsd_1950.html',
  107. 'details/penternakan_pn_17427_hsd_1949.html'
  108. ];
  109. var regex = new RegExp(fileInput);
  110. matchedFile = numberFiles.find(file => regex.test(file));
  111. } else {
  112. // Hardcoded list of files containing names
  113. var nameFiles = [
  114. 'lists/bentong.html',
  115. 'lists/bera.html',
  116. 'lists/kuantan.html',
  117. 'lists/lipis.html',
  118. 'lists/maran.html',
  119. 'lists/pekan.html',
  120. 'lists/raub.html',
  121. 'lists/rompin.html',
  122. 'lists/temerloh.html'
  123. ];
  124. var nameRegex = new RegExp(fileInput, 'i'); // Case-insensitive search
  125. matchedFile = nameFiles.find(file => nameRegex.test(file));
  126. }
  127. if (matchedFile) {
  128. // File found, redirect to it
  129. window.location.href = matchedFile;
  130. } else {
  131. alert('No file containing the input ' + fileInput + ' was found.');
  132. }
  133. });
  134. </script>
  135. <script>
  136. let maran = document.querySelector("#maran");
  137. let cameronHighland = document.querySelector("#cameron-highland");
  138. let bentong = document.querySelector("#bentong");
  139. let lipis = document.querySelector("#lipis");
  140. let raub = document.querySelector("#raub");
  141. let jerantut = document.querySelector("#jerantut");
  142. let kuantan = document.querySelector("#kuantan");
  143. let temerloh = document.querySelector("#temerloh");
  144. let rompin = document.querySelector("#rompin");
  145. let bera = document.querySelector("#bera");
  146. let pekan = document.querySelector("#pekan");
  147. addLabelText(maran, "Maran");
  148. addLabelText(cameronHighland, "Cameron");
  149. addLabelText(cameronHighland, "Highland");
  150. addLabelText(bentong, "Bentong");
  151. addLabelText(lipis, "Lipis");
  152. addLabelText(raub, "Raub");
  153. addLabelText(jerantut, "Jerantut");
  154. addLabelText(kuantan, "Kuantan");
  155. addLabelText(temerloh, "Temerloh");
  156. addLabelText(rompin, "Rompin");
  157. addLabelText(bera, "Bera");
  158. addLabelText(pekan, "Pekan");
  159. function addLabelText(bgPath, labelText) {
  160. let bbox = bgPath.getBBox();
  161. let x = bbox.x + bbox.width / 2;
  162. let y = bbox.y + bbox.height / 2;
  163. // Create a <text> element
  164. let textElem = document.createElementNS(bgPath.namespaceURI, "text");
  165. // X axis
  166. if (labelText == "Bentong") {
  167. textElem.setAttribute("x", 286);
  168. } else if (labelText == "Pekan") {
  169. textElem.setAttribute("x", 870);
  170. } else if (labelText == "Cameron") {
  171. textElem.setAttribute("x", 75);
  172. } else {
  173. textElem.setAttribute("x", x);
  174. }
  175. // Y axis
  176. if (labelText == "Rompin") {
  177. textElem.setAttribute("y", 935);
  178. } else if (labelText == "Pekan") {
  179. textElem.setAttribute("y", 650);
  180. } else if (labelText == "Kuantan") {
  181. textElem.setAttribute("y", 440);
  182. } else if (labelText == "Cameron") {
  183. textElem.setAttribute("y", 130);
  184. } else if (labelText == "Highland") {
  185. textElem.setAttribute("y", 155);
  186. } else {
  187. textElem.setAttribute("y", y);
  188. }
  189. // Centre text horizontally at x,y
  190. textElem.setAttribute("text-anchor", "middle");
  191. // Give it a class that will determine the text size, colour, etc
  192. if (labelText == "Cameron" || labelText == "Highland") {
  193. textElem.classList.add("label-text-cameron");
  194. } else {
  195. textElem.classList.add("label-text");
  196. }
  197. // Set the text
  198. textElem.textContent = labelText;
  199. // Add this text element directly after the label background path
  200. bgPath.after(textElem);
  201. }
  202. </script>
  203. </body>
  204. </html>