123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <!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;">Maran</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; z-index: 2; position: relative;">
-
- <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: 0px; z-index: 1; position: relative;">
- <div class="pt-5 position-relative" style="width: 600px;height: 100px;margin-top: -300px;">
- <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="300 200 650 650"
- style="enable-background: new 0 0 1080 1080" xml:space="preserve">
- <g>
- <a href="#" data-area="jerantut">
- <path id="maran" class="pahang-tengah"
- d="M690,649.3l0.1,0.1c-0.8,3.2-4.3,2.9-6.1,4.7c0,0,0,0,0,0c-5.5-0.8-10.9-1.6-16.4-2.5
- c-7.2-4.7-11.8-3-13.8,5.5c-0.5,2-1.6,3.9-2.4,5.8c-6.2,13.7-6.2,12.9-18.7,5.4c-10.8-6.4-15.7-20.3-29.5-22.6
- c-1-0.2-2.1-3.6-2.1-5.4v-0.2c0-9.2-5.8-14.2-13-18.4c-5.1-3.8-10.7-6.3-16.9-7.5c-4-0.8-8.2,0-12.3,0c-3.2,0-6.4-0.5-9.4-2.7
- c0.5-10.4-10.9-17.3-8.5-28c5.2-23-2.2-45.5-2.2-68.2c0-8-3.6-16-6-24c0.2-0.5,0.4-1,0.5-1.6c-0.6-5.2-5.2-6.1-8.9-7.8
- c-4.8-2.1-4.9-4.7-2.1-8.7c9.7-13.6,21.4-26.5,17-45.7c8.1,12.1,8.7,12.4,18.8,8.2c8.8,2.4,17.6,7.2,25.9-1.3c0-0.1,0-0.2,0-0.3
- c7.3,1.3,14.6,3.1,21.7-0.7c1.5,3.7,4.9,5.3,8.3,5.8c14.1,2,24.6,9.1,33.2,20.3c3.3,4.3,6.9,8.4,8.9,13.5c1.7,4.5,4.8,9.3,9.7,8.7
- c10.7-1.3,19.7,3.4,29.2,6.1c0.6,5.6-1.6,11.6,2.7,16.6c0.8,1.1,1.7,1.5,2.5,1.5c0.9,0,1.8-0.4,2.7-1.2c4.7-1.7,5.1-6.8,7.9-10
- c1.4,0.1,2.7,0.1,4.1,0.2c5,5.1,9.6,10.9,15.2,15.2c10,7.7,13.3,17.7,10,29.1c-4.6,15.7-5.6,33.5-22.1,43.5
- c-2.4,1.5-3.6,5.6-4.6,8.8c-1.4,4.7-3.5,8.8-6.7,12.1l0,0c-0.8,0.9-1.7,1.7-2.7,2.5l-2.1,1.6h0c-6.7,0.6-12,6.4-18.9,6.4
- c-1,0-2-0.1-3-0.4c-8,2.6-9.1,8.4-5.4,14.7C678.7,636.1,682.7,644,690,649.3z" />
- <text x="50" y="30" font-family="Poppins" font-size="17px" fill="black">Cameron Highlands</text>
-
-
- </a>
-
- </g>
- </svg>
-
- <div class="plot animate__animated animate__bounceIn pembangunan-point position-absolute" style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 600px;top:335px;left:355px"></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_hsd2384.html" style="" class="button-23 mb-2"
- role="button">HSD 2384</a>
- </div>
- </div>
-
-
-
- </section>
-
- <script>
-
- document.getElementById('pembangun_btn').addEventListener('click', function () {
- showDiv('pembangun_plot');
- });
-
- document.getElementById('penternakan_btn').addEventListener('click', function () {
- showDiv('penternakan_plot');
- });
-
- document.getElementById('pertanian_btn').addEventListener('click', function () {
- showDiv('pertanian_plot');
- });
-
- document.getElementById('industri_btn').addEventListener('click', function () {
- showDiv('industri_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 maran = document.querySelector("#maran");
-
- addLabelText(maran, "Maran");
-
- 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>
|