123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="UTF-8">
- <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
- <!-- CSP is a PITA ;). Disabled, don't try this at home!-->
- <meta http-equiv="Content-Security-Policy" content="">
-
-
- <title>SIBS 2024</title>
- <link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
- <link rel="stylesheet" href="./css/app.css">
-
-
-
- <script>
- // window.addEventListener('load', (event) => {
- // document.querySelector(".hello").textContent = "Hello from Electron with bulma css!";
- // });
- </script>
- </head>
-
- <body>
- <section class="section " style="max-height: 120vh;">
-
- <div
- 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;">
- <img class="pb-2" src="Group_49433x.png" style="height: auto;width: 8%" alt="">
- <h6 style="color: white; margin-bottom: 2px;">Pelan Kawasan Tanah Milik Perbadanan</h6>
- <h6 style="color: white; margin-bottom: 10px;font-weight: 400;">Setiausaha Kerajaan (PSK) Pahang Tanpa Skala
- </h6>
-
- <form id="fileForm" style="display: flex; align-items: center;">
- <input id="fileNumber" type="text" class="p-1"
- style="border-radius: 21px; border: none; padding-left: 20px !important; flex: 1;"
- placeholder="Search Here">
- <button class="btn btn-primary" type="submit" style="margin-left: 10px;">Search</button>
- </form>
-
-
- </div>
-
- <div class="text-center pt-1"
- style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 0px;">
- <div class="pt-4" style="width: 600px;height: 100px;">
- <h3> <a href="./index.html" class="btn btn-primary" type="submit" style="margin-left: 10px;">Home</a></h3>
-
-
- </div>
- </div>
-
-
- <div class="text-left pt-1 container">
- <div class="pt-4 mb-0 pb-0">
- <h4>Senarai Hakmilik <b>Penternakan</b></h4>
- </div>
- </div>
-
- <div class="text-left pt-1 container">
- <div class="pt-4 text-nowrap flex-wrap">
-
- <h6>Lipis</h6>
- <a href="./details/penternakan_pn_17421_hsd_1950.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">PN 17421 (HSD 1950)</a>
-
- <a href="./details/penternakan_pn_17427_hsd_1949.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">PN 17427 (HSD 1949)</a>
-
- </div>
- </div>
-
- <div class="text-left pt-1 container">
- <div class="pt-4 text-nowrap flex-wrap">
- <h6>Kuantan</h6>
- <a href="./details/detail_hsd35309.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 35309</a>
- <a href="./details/detail_hsd4162.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 41862</a>
- <a href="./details/detail_hsd54735.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54735</a>
- <a href="./details/detail_hsd54736.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54736</a>
- <a href="./details/detail_hsd54737.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54737</a>
-
-
- </div>
- </div>
-
- <div class="text-left pt-1 container">
- <div class="pt-4 text-nowrap flex-wrap">
- <h6>Maran</h6>
- <a href="./details/detail_hsd2384.html" style="" class="button-23 mb-2" role="button">HSD 2384</a>
-
- </div>
- </div>
-
- <div class="text-left pt-1 container">
- <div class="pt-4 text-nowrap flex-wrap">
- <h6>Bentong</h6>
- <a href="./details/penternakan_hsd_19372.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 19372</a>
-
- </div>
- </div>
-
- <div class="text-left pt-1 container">
- <div class="pt-4 text-nowrap flex-wrap">
- <h6>Bera</h6>
- <a href="./details/penternakan_hsd_10006.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 10006</a>
-
- </div>
- </div>
-
- <div class="text-left pt-1 container">
- <div class="pt-4 text-nowrap flex-wrap">
- <h6>Pekan</h6>
- <a href="./details/detail_hsd5621.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5621</a>
- <a href="./details/detail_hsd5627.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5627</a>
- <a href="./details/detail_hsd5625.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5625</a>
-
- </div>
- </div>
-
- <!-- <div class="text-left pt-1 pb-5 container text-nowrap flex-wrap" style="display: flex;">
- <div class="pt-4 text-nowrap flex-wrap" style="gap: 10px;">
- <h6>Rompin</h6>
- <a href="./details/detail_hsd4638.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 4638</a>
- <a href="./details/detail_hsd5714.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5714</a>
- <a href="./details/detail_hsd5745.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5745</a>
- <a href="./details/detail_hsd5749.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5749</a>
- <a href="./details/detail_hsd5761.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5761</a>
- <a href="./details/detail_hsd5762.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5762</a>
- <a href="./details/detail_hsd5763.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5763</a>
- <a href="./details/detail_hsd5764.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5764</a>
- <a href="./details/detail_pn28612.html" class="button-23 mb-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">PN 28612</a>
- </div>
- </div> -->
-
- <div class="text-left pt-1 container text-nowrap flex-wrap pb-5" style="display: flex;">
- <div class="pt-4 flex-wrap" style="display: flex; flex-wrap: wrap;gap: 10px;">
- <h6 style="width: 100%;">Rompin</h6>
- <a href="./details/detail_hsd4638.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 4638</a>
- <a href="./details/detail_hsd5714.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5714</a>
- <a href="./details/detail_hsd5745.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5745</a>
- <a href="./details/detail_hsd5749.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5749</a>
- <a href="./details/detail_hsd5761.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5761</a>
- <a href="./details/detail_hsd5762.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5762</a>
- <a href="./details/detail_hsd5763.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5763</a>
- <a href="./details/detail_hsd5764.html" class="button-23 mb-2 mr-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">HSD 5764</a>
- <a href="./details/detail_pn28612.html" class="button-23 mb-2"
- style="background-color: #1F9027; color: white; border: none;" role="button">PN 28612</a></div>
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </section>
-
-
-
- <script>
-
- document.getElementById('fileForm').addEventListener('submit', function (event) {
- event.preventDefault(); // Prevent the form from submitting the traditional way
-
- var fileInput = document.getElementById('fileNumber').value;
- var numberRegex = /\d/; // Regular expression to check for any digit
- var matchedFile;
-
- var keywordMapping = {
- 'industri': 'industri.html',
- 'pembangunan': 'pembangunan.html',
- 'penternakan': 'penternakan.html',
- 'pertanian': 'pertanian.html'
- };
-
- if (keywordMapping[fileInput]) {
- // If the input matches one of the keywords, redirect to the corresponding file
- window.location.href = keywordMapping[fileInput];
- return;
- }
-
- if (numberRegex.test(fileInput)) {
- // Hardcoded list of files containing numbers
- var numberFiles = [
- 'details_search/detail_hsd2384.html',
- 'details_search/detail_hsd4638.html',
- 'details_search/detail_hsd5621.html',
- 'details_search/detail_hsd5625.html',
- 'details_search/detail_hsd5627.html',
- 'details_search/detail_hsd5714.html',
- 'details_search/detail_hsd5715.html',
- 'details_search/detail_hsd5734.html',
- 'details_search/detail_hsd5738.html',
- 'details_search/detail_hsd5745.html',
- 'details_search/detail_hsd5749.html',
- 'details_search/detail_hsd5761.html',
- 'details_search/detail_hsd5762.html',
- 'details_search/detail_hsd5763.html',
- 'details_search/detail_hsd5764.html',
- 'details_search/detail_hsd10006.html',
- 'details_search/detail_hsd11863.html',
- 'details_search/detail_hsd11991.html',
- 'details_search/detail_hsd19372.html',
- 'details_search/detail_hsd35309.html',
- 'details_search/detail_hsd41862.html',
- 'details_search/detail_hsd54735.html',
- 'details_search/detail_hsd54736.html',
- 'details_search/detail_hsd54737.html',
- 'details_search/detail_hsd62437.html',
- 'details_search/detail_hsd62438.html',
- 'details_search/detail_hsd62441.html',
- 'details_search/detail_hsd62442.html',
- 'details_search/detail_hsd62443.html',
- 'details_search/detail_hsd62495.html',
- 'details_search/detail_hsd62497.html',
- 'details_search/detail_hsd62503.html',
- 'details_search/detail_hsd62504.html',
- 'details_search/detail_hsd62510.html',
- 'details_search/detail_hsd62520.html',
- 'details_search/detail_hsm1225.html',
- 'details_search/detail_hsm1909.html',
- 'details_search/detail_hsm90298.html',
- 'details_search/detail_pm32006.html',
- 'details_search/detail_pn16507.html',
- 'details_search/detail_pn17421_hsd1950.html',
- 'details_search/detail_pn17427_hsd1949.html',
- 'details_search/detail_pn28612.html'
- ];
-
-
- var regex = new RegExp(fileInput);
- matchedFile = numberFiles.find(file => regex.test(file));
- } else {
- // Hardcoded list of files containing names
- var nameFiles = [
- 'lists/bentong.html',
- 'lists/bera.html',
- 'lists/kuantan.html',
- 'lists/lipis.html',
- 'lists/maran.html',
- 'lists/pekan.html',
- 'lists/raub.html',
- 'lists/rompin.html',
- 'lists/temerloh.html'
- ];
-
-
- var nameRegex = new RegExp(fileInput, 'i'); // Case-insensitive search
- matchedFile = nameFiles.find(file => nameRegex.test(file));
- }
-
- if (matchedFile) {
- // File found, redirect to it
- window.location.href = matchedFile;
- } else {
- // alert('No file containing the input ' + fileInput + ' was found.');
- }
- });
- </script>
-
- <script>
- let maran = document.querySelector("#maran");
- let cameronHighland = document.querySelector("#cameron-highland");
- let bentong = document.querySelector("#bentong");
- let lipis = document.querySelector("#lipis");
- let raub = document.querySelector("#raub");
- let jerantut = document.querySelector("#jerantut");
- let kuantan = document.querySelector("#kuantan");
- let temerloh = document.querySelector("#temerloh");
- let rompin = document.querySelector("#rompin");
- let bera = document.querySelector("#bera");
- let pekan = document.querySelector("#pekan");
-
- addLabelText(maran, "Maran");
- addLabelText(cameronHighland, "Cameron");
- addLabelText(cameronHighland, "Highland");
- addLabelText(bentong, "Bentong");
- addLabelText(lipis, "Lipis");
- addLabelText(raub, "Raub");
- addLabelText(jerantut, "Jerantut");
- addLabelText(kuantan, "Kuantan");
- addLabelText(temerloh, "Temerloh");
- addLabelText(rompin, "Rompin");
- addLabelText(bera, "Bera");
- addLabelText(pekan, "Pekan");
-
- function addLabelText(bgPath, labelText) {
- let bbox = bgPath.getBBox();
- let x = bbox.x + bbox.width / 2;
- let y = bbox.y + bbox.height / 2;
-
- // Create a <text> element
- let textElem = document.createElementNS(bgPath.namespaceURI, "text");
- // X axis
- if (labelText == "Bentong") {
- textElem.setAttribute("x", 286);
- } else if (labelText == "Pekan") {
- textElem.setAttribute("x", 870);
- } else if (labelText == "Cameron") {
- textElem.setAttribute("x", 75);
- } else {
- textElem.setAttribute("x", x);
- }
- // Y axis
- if (labelText == "Rompin") {
- textElem.setAttribute("y", 935);
- } else if (labelText == "Pekan") {
- textElem.setAttribute("y", 650);
- } else if (labelText == "Kuantan") {
- textElem.setAttribute("y", 440);
- } else if (labelText == "Cameron") {
- textElem.setAttribute("y", 130);
- } else if (labelText == "Highland") {
- textElem.setAttribute("y", 155);
- } else {
- textElem.setAttribute("y", y);
- }
- // Centre text horizontally at x,y
- textElem.setAttribute("text-anchor", "middle");
- // Give it a class that will determine the text size, colour, etc
- if (labelText == "Cameron" || labelText == "Highland") {
- textElem.classList.add("label-text-cameron");
- } else {
- textElem.classList.add("label-text");
- }
- // Set the text
- textElem.textContent = labelText;
- // Add this text element directly after the label background path
- bgPath.after(textElem);
- }
- </script>
- </body>
-
- </html>
|