123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <!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="">
- <!-- include bulma css -->
- <link rel="stylesheet" href="bulma/css/bulma.min.css">
- <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"
- integrity="sha512-abc123..." crossorigin="anonymous" />
- <link rel="stylesheet" href="../css/app.css">
-
- </head>
-
- <body>
- <section class="section" style="max-height: 100vh;">
-
- <div class=""
- style="z-index: 3;background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
- <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="../index.html"><i
- class="fas fa-chevron-left"></i></a></h6>
- <h6 style="color: white;">Lipis</h6>
- </div>
-
- <div class="text-center pt-5"
- style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
- <button id="penternakan_btn" type="button" class="p-1"
- style="font-weight: 500; border-top: 4px solid #3B47E0; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">  Penternakan  </button>
- </div>
-
- <div class="text-center pt-1"
- style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 250px;">
- <div class="pt-5 position-relative" style="width: 600px;height: 100px;">
- <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="10 10 750 750"
- style="enable-background: new 0 0 1080 1080" xml:space="preserve">
- <g>
- <a href="#" data-area="lipis">
- <path id="lipis" class="pahang-barat" d="M450.8,329.1c-5.7,4.5-13.3,9.2-20.1,9.3c-11.2,0.2-13.3,7.3-15.4,13.6c-13.1-3.3-21.3-13.5-31.4-20.9
- c-5.5-4-13.6-15.1-22.9-5.8c-6.2,6.2-3.1,13.6-0.7,20.7c0.2,1.3,0.9,2.7,1.3,4c0.2,3.5,3,4.9,5.3,6.6c5.6,4,4.5,8.3-0.9,10.5
- c-10.5,4.2-21.5,9.5-32.8,3.1c-6.8-3.8-11.3-1.5-15.3,3.5c-4.5,5.6-8.3,11.7-12.7,17.3c-2.4,3.1-6.5,5.8-9.9,3.8
- c-4.6-2.6-9.5-6.4-11.7-11c-2.3-4.8,4.5-4.4,7.2-6.6c6.6-5.5,13.2-10.3,4.1-20.1c-6-6.5-8.9-15.8-3-24.5c7.2-10.6-1-12.1-7.9-14.3
- c-13.9-4.4-22.6,4.1-31,12.9c-3.6,3.7-9.9,5.7-8.6,12.8c-1.4,1.7-3.4,3.2-4,5.4l-6.8,0.4c-5.5-4.8-9.1-10.5-8.5-18.9
- c0.3-3.4-2.9-6.7-6.6-6.5c-10.1,0.4-15.1-5.6-19.5-13.3c-1.7-2.9-4.7-5.1-8.5-3.5c-2.9,1.2-3,3.8-2.2,6.4c2.3,7.6-3.3,8.7-8.2,9.5
- c-5.4,0.9-11.4,2.3-16.2,0.7c-15.5-5-30.7-4.7-46-0.1c0,0,0,0,0,0c-4.5-11.8-15.8-16.2-25.7-21.2c-11-5.6-15.7-12.4-12.3-24.9
- c4.2-15.4,4.2-15.3-10.6-17c-9-1-15.2-4.2-9.2-14.6c2.6-4.5-0.5-7-2.4-10.1c-1.9-3.2-2.9-6.4-2.9-9.4c0-5.6,3.2-10.6,9.2-14.2
- c12.7,2.5,23.7-2.5,34.9-7.4c6.1-2.7,10.3-12.1,19.3-5.7c0.5,0.4,3.9-1.4,3.9-2.2c0.3-11.1,8.7-20.6,8.7-31.8c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,9.3c4,3.8,9.5,3.2,14.2,4.8C458.6,315.3,460.3,321.5,450.8,329.1z" />
- </a>
- </g>
- </svg>
- <div class="position-absolute"
- style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 600px;top:270px;left:260px">
- </div>
-
- </div>
- </div>
-
- <div id="penternakan_plot" class="content-div">
- <div class="text-center pt-5"
- style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
- <h6>Penternakan</h6><br>
-
- </div>
- <div class="text-center pt-2 text-nowrap flex-wrap"
- style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
- <a href="../details/detail_pn17421_hsd1950.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/detail_pn17427_hsd1949.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>
-
-
- </section>
-
- <script>
-
-
- document.getElementById('penternakan_btn').addEventListener('click', function () {
- showDiv('penternakan_plot');
- });
-
- function showDiv(divId) {
- var divs = document.getElementsByClassName('content-div');
- for (var i = 0; i < divs.length; i++) {
- divs[i].classList.add('hidden');
- }
- document.getElementById(divId).classList.remove('hidden');
- }
-
- </script>
-
- <script>
- let lipis = document.querySelector("#lipis");
-
- addLabelText(lipis, "Lipis");
-
- 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>
-
- <script defer src="/ruta relativa a mi archivo .js"></script>
-
- </body>
-
- </html>
|