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.

lipis.html 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. integrity="sha512-abc123..." crossorigin="anonymous" />
  12. <link rel="stylesheet" href="../css/app.css">
  13. <link rel="stylesheet" href="../css/animate.css">
  14. </head>
  15. <body>
  16. <section class="section animate__animated animate__fadeIn" style="max-height: 100vh;">
  17. <div class=""
  18. style="z-index: 3;background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
  19. <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="../index.html"><i
  20. class="fas fa-chevron-left"></i></a></h6>
  21. <h6 style="color: white;">Lipis</h6>
  22. </div>
  23. <div class="text-center pt-5"
  24. style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
  25. <button id="penternakan_btn" type="button" class="p-1"
  26. style="font-weight: 500; border-top: 4px solid #3B47E0; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Penternakan&emsp;&emsp;</button>
  27. </div>
  28. <div class="text-center pt-1"
  29. style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 250px;">
  30. <div class="pt-5 position-relative" style="width: 600px;height: 100px;">
  31. <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
  32. xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="10 10 750 750"
  33. style="enable-background: new 0 0 1080 1080" xml:space="preserve">
  34. <g>
  35. <a href="#" data-area="lipis">
  36. <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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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.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-3.7,6.9-9.2,14.6-5.4,22
  53. c6,11.9,9.1,24,9.8,37.1l0,0c3.7,3.5,6.9,7,6.6,12.8c-0.2,4.1,0,8.9,2,12.2c7.8,12.4,7.6,24.7,2.9,38.2c-0.9,2.6-1.7,5.5-1.7,8.4
  54. c0,3.2,0.9,6.5,3.6,9.3c4,3.8,9.5,3.2,14.2,4.8C458.6,315.3,460.3,321.5,450.8,329.1z" />
  55. </a>
  56. </g>
  57. </svg>
  58. <div class="position-absolute"
  59. style="background-color: #3B47E0; width: 0.8rem; height: 0.8rem;border: 2px solid white;border-radius: 600px;top:270px;left:260px">
  60. </div>
  61. </div>
  62. </div>
  63. <div id="penternakan_plot" class="content-div">
  64. <div class="text-center pt-5"
  65. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  66. <h6>Penternakan</h6><br>
  67. </div>
  68. <div class="text-center pt-2 text-nowrap flex-wrap"
  69. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  70. <a href="../details/detail_pn17421_hsd1950.html" class="button-23 mb-2 mr-2"
  71. style="background-color: #1F9027; color: white; border: none;" role="button">PN 17421 (HSD 1950)</a>
  72. <a href="../details/detail_pn17427_hsd1949.html" class="button-23 mb-2 mr-2"
  73. style="background-color: #1F9027; color: white; border: none;" role="button">PN 17427 (HSD 1949)</a>
  74. </div>
  75. </div>
  76. </section>
  77. <script>
  78. document.getElementById('penternakan_btn').addEventListener('click', function () {
  79. showDiv('penternakan_plot');
  80. });
  81. function showDiv(divId) {
  82. var divs = document.getElementsByClassName('content-div');
  83. for (var i = 0; i < divs.length; i++) {
  84. divs[i].classList.add('hidden');
  85. }
  86. document.getElementById(divId).classList.remove('hidden');
  87. }
  88. </script>
  89. <script>
  90. let lipis = document.querySelector("#lipis");
  91. addLabelText(lipis, "Lipis");
  92. function addLabelText(bgPath, labelText) {
  93. let bbox = bgPath.getBBox();
  94. let x = bbox.x + bbox.width / 2;
  95. let y = bbox.y + bbox.height / 2;
  96. // Create a <text> element
  97. let textElem = document.createElementNS(bgPath.namespaceURI, "text");
  98. // X axis
  99. if (labelText == "Bentong") {
  100. textElem.setAttribute("x", 286);
  101. } else if (labelText == "Pekan") {
  102. textElem.setAttribute("x", 870);
  103. } else if (labelText == "Cameron") {
  104. textElem.setAttribute("x", 75);
  105. } else {
  106. textElem.setAttribute("x", x);
  107. }
  108. // Y axis
  109. if (labelText == "Rompin") {
  110. textElem.setAttribute("y", 935);
  111. } else if (labelText == "Pekan") {
  112. textElem.setAttribute("y", 650);
  113. } else if (labelText == "Kuantan") {
  114. textElem.setAttribute("y", 440);
  115. } else if (labelText == "Cameron") {
  116. textElem.setAttribute("y", 130);
  117. } else if (labelText == "Highland") {
  118. textElem.setAttribute("y", 155);
  119. } else {
  120. textElem.setAttribute("y", y);
  121. }
  122. // Centre text horizontally at x,y
  123. textElem.setAttribute("text-anchor", "middle");
  124. // Give it a class that will determine the text size, colour, etc
  125. if (labelText == "Cameron" || labelText == "Highland") {
  126. textElem.classList.add("label-text-cameron");
  127. } else {
  128. textElem.classList.add("label-text");
  129. }
  130. // Set the text
  131. textElem.textContent = labelText;
  132. // Add this text element directly after the label background path
  133. bgPath.after(textElem);
  134. }
  135. </script>
  136. </body>
  137. </html>