您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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" integrity="sha512-abc123..." crossorigin="anonymous" />
  11. <link rel="stylesheet" href="../css/app.css">
  12. <link rel="stylesheet" href="../css/animate.css">
  13. </head>
  14. <body>
  15. <section class="section animate__animated animate__fadeIn" style="max-height: 100vh;">
  16. <div class=""
  17. style="z-index: 3;background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
  18. <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="../index.html"><i
  19. class="fas fa-chevron-left"></i></a></h6>
  20. <h6 style="color: white;">Bentong</h6>
  21. </div>
  22. <div class="text-center pt-5"
  23. style="z-index: 3;background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
  24. <button id="penternakan_btn" type="button" class="p-1"
  25. 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>
  26. </div>
  27. <div class="text-center pt-1"
  28. style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 325px;">
  29. <div class="pt-5 position-relative" style="width: 600px;height: 100px;margin-top: -450px;">
  30. <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
  31. xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="200 250 650 650"
  32. style="enable-background: new 0 0 1080 1080" xml:space="preserve">
  33. <g>
  34. <a href="#" data-area="bentong">
  35. <path id="bentong" class="pahang-barat" d="M442.5,743.9c-7.8-2.7-7.4-11.3-4.9-12.5c14.5-7.3,7-22,11.8-32.4c2.1-4.5,1.4-8.7,7.8-10.3
  36. c5.5-1.4,9.2-6.8,7.6-12.6c-1.3-4.6-5.4-5.9-10-2.5c-0.8,0.6-4-0.2-4.3-1.1c-5.3-13.5-22.2-9.5-29.6-19.6c-1.8-2.5-3.7-1.4-5.4-0.1
  37. c-10.7,7.6-23.6,8.6-35.6,12.2c0,0,0,0,0,0c-12.3,7.4-15.5-1-18-10.4c-9.7-10.7-3.6-22.8-1.8-33.8c1.8-10.7-1.8-15.4-11.1-17.1
  38. c-8.3-1.5-12.3-5.1-12.4-14.2c-0.1-12.6-7.7-18.9-20.4-19c0,0,0,0,0,0c-0.8-0.3-1.6-0.6-2.4-0.8c-5.7-1-10.3-2-14-3.3
  39. c0.4,0.2,0.8,0.4,1.3,0.6c-1.5-0.2-2.9-0.8-4.2-1.7c-9.3-4.3-11.8-11.8-14.1-29.2c-0.3-2-1.4-4-2.1-5.9c0,0,0,0,0,0
  40. c-3.5-8.3-11.4-6.4-17.9-7.7c0,0,0,0,0,0c0,0,0,0,0,0c-1,0.1-2,0.1-3,0.2c-1.2,8.2-9,9.4-14.1,9.6c-8.8,0.3-13.6,5.3-18.8,10.5
  41. c0,0,0,0,0,0c0.1,1.7,0.5,3.5,0.1,5.1c-2.9,10.8,1.6,24-13.7,30.8c-9.7,4.3-10.3,17.9-5.6,28c4.6,9.8,12.9,22,4.5,30.7
  42. c-10.8,11.1-9.7,18.2-0.4,27.9c3.5,3.6,6.3,8,8.6,12.5c5.8,11.3,16.2,17.2,26.7,22.5c8.6,4.3,18.9,5.9,27.4,1.8
  43. c13.6-6.6,23-4.5,29.3,9.7c2.5,5.8,6.4,9.3,12.6,8.6c15-1.9,21.6,4.7,23.2,19.4c0.8,7.7,4.4,12.6,13,4.3
  44. c11.7-11.4,22.6-11,34.6-0.8c3.4,2.9,7.3,4.2,11.4,5.4c12.6,3.8,25.2,7.3,37.7,11.3c4.3,1.4,8.2,2,12-0.9
  45. C454.9,750.5,448.9,746.1,442.5,743.9z" />
  46. </a>
  47. </g>
  48. </svg>
  49. <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:478px;left:165px"></div>
  50. </div>
  51. </div>
  52. <div id="penternakan_plot" class="content-div">
  53. <div class="text-center pt-5"
  54. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
  55. <h6>Penternakan</h6><br>
  56. </div>
  57. <div class="text-center pt-2 text-nowrap flex-wrap"
  58. style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
  59. <a href="../details/detail_hsd19372.html" class="button-23 mb-2 mr-2"
  60. style="background-color: #1F9027; color: white; border: none;" role="button">HSD 19372</a>
  61. </div>
  62. </div>
  63. </section>
  64. <script>
  65. let bentong = document.querySelector("#bentong");
  66. addLabelText(bentong, "Bentong");
  67. function addLabelText(bgPath, labelText) {
  68. let bbox = bgPath.getBBox();
  69. let x = bbox.x + bbox.width / 2;
  70. let y = bbox.y + bbox.height / 2;
  71. // Create a <text> element
  72. let textElem = document.createElementNS(bgPath.namespaceURI, "text");
  73. // X axis
  74. if (labelText == "Bentong") {
  75. textElem.setAttribute("x", 286);
  76. } else if (labelText == "Pekan") {
  77. textElem.setAttribute("x", 870);
  78. } else if (labelText == "Cameron") {
  79. textElem.setAttribute("x", 75);
  80. } else {
  81. textElem.setAttribute("x", x);
  82. }
  83. // Y axis
  84. if (labelText == "Rompin") {
  85. textElem.setAttribute("y", 935);
  86. } else if (labelText == "Pekan") {
  87. textElem.setAttribute("y", 650);
  88. } else if (labelText == "Kuantan") {
  89. textElem.setAttribute("y", 440);
  90. } else if (labelText == "Cameron") {
  91. textElem.setAttribute("y", 130);
  92. } else if (labelText == "Highland") {
  93. textElem.setAttribute("y", 155);
  94. } else {
  95. textElem.setAttribute("y", y);
  96. }
  97. // Centre text horizontally at x,y
  98. textElem.setAttribute("text-anchor", "middle");
  99. // Give it a class that will determine the text size, colour, etc
  100. if (labelText == "Cameron" || labelText == "Highland") {
  101. textElem.classList.add("label-text-cameron");
  102. } else {
  103. textElem.classList.add("label-text");
  104. }
  105. // Set the text
  106. textElem.textContent = labelText;
  107. // Add this text element directly after the label background path
  108. bgPath.after(textElem);
  109. }
  110. </script>
  111. </body>
  112. </html>