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.8KB

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