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.

penternakan.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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>Penternakan</b></h4>
  44. </div>
  45. </div>
  46. <div class="text-left pt-1 container">
  47. <div class="pt-4 text-nowrap flex-wrap">
  48. <h6>Lipis</h6>
  49. <a href="./details/penternakan_pn_17421_hsd_1950.html" class="button-23 mb-2 mr-2"
  50. style="background-color: #1F9027; color: white; border: none;" role="button">PN 17421 (HSD 1950)</a>
  51. <a href="./details/penternakan_pn_17427_hsd_1949.html" class="button-23 mb-2 mr-2"
  52. style="background-color: #1F9027; color: white; border: none;" role="button">PN 17427 (HSD 1949)</a>
  53. </div>
  54. </div>
  55. <div class="text-left pt-1 container">
  56. <div class="pt-4 text-nowrap flex-wrap">
  57. <h6>Kuantan</h6>
  58. <a href="./details/detail_hsd35309.html" class="button-23 mb-2 mr-2"
  59. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 35309</a>
  60. <a href="./details/detail_hsd4162.html" class="button-23 mb-2 mr-2"
  61. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 41862</a>
  62. <a href="./details/detail_hsd54735.html" class="button-23 mb-2 mr-2"
  63. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54735</a>
  64. <a href="./details/detail_hsd54736.html" class="button-23 mb-2 mr-2"
  65. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54736</a>
  66. <a href="./details/detail_hsd54737.html" class="button-23 mb-2 mr-2"
  67. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54737</a>
  68. </div>
  69. </div>
  70. <div class="text-left pt-1 container">
  71. <div class="pt-4 text-nowrap flex-wrap">
  72. <h6>Maran</h6>
  73. <a href="./details/detail_hsd2384.html" style="" class="button-23 mb-2" role="button">HSD 2384</a>
  74. </div>
  75. </div>
  76. <div class="text-left pt-1 container">
  77. <div class="pt-4 text-nowrap flex-wrap">
  78. <h6>Bentong</h6>
  79. <a href="./details/penternakan_hsd_19372.html" class="button-23 mb-2 mr-2"
  80. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 19372</a>
  81. </div>
  82. </div>
  83. <div class="text-left pt-1 container">
  84. <div class="pt-4 text-nowrap flex-wrap">
  85. <h6>Bera</h6>
  86. <a href="./details/penternakan_hsd_10006.html" class="button-23 mb-2 mr-2"
  87. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 10006</a>
  88. </div>
  89. </div>
  90. <div class="text-left pt-1 container">
  91. <div class="pt-4 text-nowrap flex-wrap">
  92. <h6>Pekan</h6>
  93. <a href="./details/detail_hsd5621.html" class="button-23 mb-2 mr-2"
  94. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5621</a>
  95. <a href="./details/detail_hsd5627.html" class="button-23 mb-2 mr-2"
  96. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5627</a>
  97. <a href="./details/detail_hsd5625.html" class="button-23 mb-2 mr-2"
  98. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5625</a>
  99. </div>
  100. </div>
  101. <div class="text-left pt-1 pb-5 container">
  102. <div class="pt-4 text-nowrap flex-wrap">
  103. <h6>Rompin</h6>
  104. <a href="./details/detail_hsd4638.html" class="button-23 mb-2 mr-2"
  105. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 4638</a>
  106. <a href="./details/detail_hsd5714.html" class="button-23 mb-2 mr-2"
  107. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5714</a>
  108. <a href="./details/detail_hsd5745.html" class="button-23 mb-2 mr-2"
  109. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5745</a>
  110. <a href="./details/detail_hsd5749.html" class="button-23 mb-2 mr-2"
  111. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5749</a>
  112. <a href="./details/detail_hsd5761.html" class="button-23 mb-2 mr-2"
  113. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5761</a>
  114. <a href="./details/detail_hsd5762.html" class="button-23 mb-2 mr-2"
  115. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5762</a>
  116. <a href="./details/detail_hsd5763.html" class="button-23 mb-2 mr-2"
  117. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5763</a>
  118. <a href="./details/detail_hsd5764.html" class="button-23 mb-2 mr-2"
  119. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5764</a>
  120. <a href="./details/detail_pn28612.html" class="button-23 mb-2"
  121. style="background-color: #1F9027; color: white; border: none;" role="button">PN 28612</a>
  122. </div>
  123. </div>
  124. </section>
  125. <script defer src="/ruta relativa a mi archivo .js"></script>
  126. <script>
  127. document.getElementById('fileForm').addEventListener('submit', function (event) {
  128. event.preventDefault(); // Prevent the form from submitting the traditional way
  129. var fileInput = document.getElementById('fileNumber').value;
  130. var numberRegex = /\d/; // Regular expression to check for any digit
  131. var matchedFile;
  132. if (numberRegex.test(fileInput)) {
  133. // Hardcoded list of files containing numbers
  134. var numberFiles = [
  135. 'details/detail_hsd2384.html',
  136. 'details/detail_hsd4638.html',
  137. 'details/detail_hsd5621.html',
  138. 'details/detail_hsd5625.html',
  139. 'details/detail_hsd5627.html',
  140. 'details/detail_hsd5714.html',
  141. 'details/detail_hsd5715.html',
  142. 'details/detail_hsd5734.html',
  143. 'details/detail_hsd5738.html',
  144. 'details/detail_hsd5745.html',
  145. 'details/detail_hsd5749.html',
  146. 'details/detail_hsd5761.html',
  147. 'details/detail_hsd5762.html',
  148. 'details/detail_hsd5763.html',
  149. 'details/detail_hsd5764.html',
  150. 'details/detail_hsd11863.html',
  151. 'details/detail_hsd11991.html',
  152. 'details/detail_hsd35309.html',
  153. 'details/detail_hsd41862.html',
  154. 'details/detail_hsd54735.html',
  155. 'details/detail_hsd54736.html',
  156. 'details/detail_hsd54737.html',
  157. 'details/detail_hsd62438.html',
  158. 'details/detail_hsd62441.html',
  159. 'details/detail_hsd62442.html',
  160. 'details/detail_hsd62443.html',
  161. 'details/detail_hsd62495.html',
  162. 'details/detail_hsd62503.html',
  163. 'details/detail_hsd62504.html',
  164. 'details/detail_hsd62520.html',
  165. 'details/detail_hsm1225.html',
  166. 'details/detail_hsm1909.html',
  167. 'details/detail_hsm90298.html',
  168. 'details/detail_pm32006.html',
  169. 'details/detail_pn16507.html',
  170. 'details/detail_pn28612.html',
  171. 'details/penternakan_hsd_10006.html',
  172. 'details/penternakan_hsd_19372.html',
  173. 'details/penternakan_pn_17421_hsd_1950.html',
  174. 'details/penternakan_pn_17427_hsd_1949.html'
  175. ];
  176. var regex = new RegExp(fileInput);
  177. matchedFile = numberFiles.find(file => regex.test(file));
  178. } else {
  179. // Hardcoded list of files containing names
  180. var nameFiles = [
  181. 'lists/bentong.html',
  182. 'lists/bera.html',
  183. 'lists/kuantan.html',
  184. 'lists/lipis.html',
  185. 'lists/maran.html',
  186. 'lists/pekan.html',
  187. 'lists/raub.html',
  188. 'lists/rompin.html',
  189. 'lists/temerloh.html'
  190. ];
  191. var nameRegex = new RegExp(fileInput, 'i'); // Case-insensitive search
  192. matchedFile = nameFiles.find(file => nameRegex.test(file));
  193. }
  194. if (matchedFile) {
  195. // File found, redirect to it
  196. window.location.href = matchedFile;
  197. } else {
  198. alert('No file containing the input ' + fileInput + ' was found.');
  199. }
  200. });
  201. </script>
  202. <script>
  203. let maran = document.querySelector("#maran");
  204. let cameronHighland = document.querySelector("#cameron-highland");
  205. let bentong = document.querySelector("#bentong");
  206. let lipis = document.querySelector("#lipis");
  207. let raub = document.querySelector("#raub");
  208. let jerantut = document.querySelector("#jerantut");
  209. let kuantan = document.querySelector("#kuantan");
  210. let temerloh = document.querySelector("#temerloh");
  211. let rompin = document.querySelector("#rompin");
  212. let bera = document.querySelector("#bera");
  213. let pekan = document.querySelector("#pekan");
  214. addLabelText(maran, "Maran");
  215. addLabelText(cameronHighland, "Cameron");
  216. addLabelText(cameronHighland, "Highland");
  217. addLabelText(bentong, "Bentong");
  218. addLabelText(lipis, "Lipis");
  219. addLabelText(raub, "Raub");
  220. addLabelText(jerantut, "Jerantut");
  221. addLabelText(kuantan, "Kuantan");
  222. addLabelText(temerloh, "Temerloh");
  223. addLabelText(rompin, "Rompin");
  224. addLabelText(bera, "Bera");
  225. addLabelText(pekan, "Pekan");
  226. function addLabelText(bgPath, labelText) {
  227. let bbox = bgPath.getBBox();
  228. let x = bbox.x + bbox.width / 2;
  229. let y = bbox.y + bbox.height / 2;
  230. // Create a <text> element
  231. let textElem = document.createElementNS(bgPath.namespaceURI, "text");
  232. // X axis
  233. if (labelText == "Bentong") {
  234. textElem.setAttribute("x", 286);
  235. } else if (labelText == "Pekan") {
  236. textElem.setAttribute("x", 870);
  237. } else if (labelText == "Cameron") {
  238. textElem.setAttribute("x", 75);
  239. } else {
  240. textElem.setAttribute("x", x);
  241. }
  242. // Y axis
  243. if (labelText == "Rompin") {
  244. textElem.setAttribute("y", 935);
  245. } else if (labelText == "Pekan") {
  246. textElem.setAttribute("y", 650);
  247. } else if (labelText == "Kuantan") {
  248. textElem.setAttribute("y", 440);
  249. } else if (labelText == "Cameron") {
  250. textElem.setAttribute("y", 130);
  251. } else if (labelText == "Highland") {
  252. textElem.setAttribute("y", 155);
  253. } else {
  254. textElem.setAttribute("y", y);
  255. }
  256. // Centre text horizontally at x,y
  257. textElem.setAttribute("text-anchor", "middle");
  258. // Give it a class that will determine the text size, colour, etc
  259. if (labelText == "Cameron" || labelText == "Highland") {
  260. textElem.classList.add("label-text-cameron");
  261. } else {
  262. textElem.classList.add("label-text");
  263. }
  264. // Set the text
  265. textElem.textContent = labelText;
  266. // Add this text element directly after the label background path
  267. bgPath.after(textElem);
  268. }
  269. </script>
  270. </body>
  271. </html>