Преглед изворни кода

Merge remote-tracking branch 'origin/master'

master
Muqriz пре 4 месеци
родитељ
комит
d83a0ca17e
17 измењених фајлова са 405 додато и 1 уклоњено
  1. BIN
      HSD_62438.pdf
  2. BIN
      HSD_62441.pdf
  3. BIN
      HSD_62442.pdf
  4. BIN
      HSD_62443.pdf
  5. BIN
      HSD_62495.pdf
  6. BIN
      HSD_62497.pdf
  7. BIN
      HSD_62503.pdf
  8. BIN
      HSD_62504.pdf
  9. BIN
      HSD_62520.pdf
  10. BIN
      HSM 1225.pdf
  11. BIN
      HSM 1909.pdf
  12. BIN
      HSM 90298.pdf
  13. BIN
      PM 32006.pdf
  14. 127
    0
      details/detail_hsd62438.html
  15. 1
    1
      index.html
  16. 166
    0
      lists/kuantan.html
  17. 111
    0
      pdf_pages/view_pdf_hsd62438.html













+ 127
- 0
details/detail_hsd62438.html Прегледај датотеку

@@ -0,0 +1,127 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
6
+    <meta charset="utf-8">
7
+    <title>KML Click Capture Sample</title>
8
+    <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
9
+    <script src="../node_modules/bootstrap/dist/js/bootstrap.min.js" defer></script>
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
+
13
+</head>
14
+
15
+<body>
16
+
17
+    <section class="section" style="max-height: 100vh;">
18
+
19
+        <div class=""
20
+            style="background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
21
+            <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="../lists/lipis.html"><i
22
+                        class="fas fa-chevron-left"></i></a></h6>
23
+            <h6 style="color: white;">HSD 62438</h6>
24
+        </div>
25
+
26
+        <div class="text-center pt-5"
27
+            style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
28
+            <h5 style="font-weight: 500;">Perbadanan Setiausaha Kerajaan Pahang</h5>
29
+
30
+        </div>
31
+
32
+        <div class="text-center pt-1 pb-5"
33
+            style="background-color: white;display: flex; justify-content: center; align-items: center;margin-left: -150px;">
34
+            <div class="pt-5 pb-5" style="width: 600px;height: 100px;">
35
+                <!-- <img style="border-radius: 20px;" src="image.png" alt=""> -->
36
+
37
+                <div id="map" style="width: 800px;"></div>
38
+                <!-- <div id="capture"></div> -->
39
+
40
+            </div>
41
+        </div>
42
+
43
+
44
+        <div class="text-center pt-5"
45
+            style="background-color: white; display: flex; justify-content: center; align-items: left; padding-left: 100px; margin-top: 250px;">
46
+            <div style="display: flex; flex-direction: row;">
47
+                <div>
48
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Lokasi :</span> <span
49
+                            style="color: #ACACAC;">Gambang</span></h6>
50
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Mukim :</span> <span
51
+                            style="color: #ACACAC;">Ulu Lepar</span></h6>
52
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Daerah :</span> <span
53
+                            style="color: #ACACAC;">Kuantan</span></h6>
54
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Negeri :</span> <span
55
+                            style="color: #ACACAC;">Pahang Darul Makmum</span></h6>
56
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Skala :</span> <span
57
+                            style="color: #ACACAC;">Tanpa Skala</span></h6>
58
+                </div>
59
+                <div style="margin-left: 100px;">
60
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">No. Hak Milik :</span>
61
+                        <span style="color: #ACACAC;">HSD 62438</span>
62
+                    </h6>
63
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Keluasan (Ha) :</span>
64
+                        <span style="color: #ACACAC;">607280</span>
65
+                    </h6>
66
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Kegunaan :</span> <span
67
+                            style="color: #ACACAC;">Bangunan</span></h6>
68
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;">Syarat Nyata :</span>
69
+                        <span style="color: #ACACAC;">Pembangunan Bercampur</span>
70
+                    </h6>
71
+                    <h6 class="pt-1" style="text-align: left;"><span style="font-weight: bold;"></span> <span
72
+                            style="color: #ACACAC;"></span></h6>
73
+                </div>
74
+            </div>
75
+        </div>
76
+
77
+        <div class="text-center pt-5 pb-5"
78
+            style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
79
+            <a href="../pdf_pages/view_pdf_hsd62438.html" class="button-23 mb-2 mr-2"
80
+                style="background-color: #1F9027; color: white; border: none;width: 200px;" role="button"
81
+                data-toggle="modal" data-target="#exampleModal">View
82
+                PDF</a>
83
+
84
+        </div>
85
+
86
+        <script src="js/jquery-3.7.1.js" defer></script>
87
+
88
+        <script src="js/pdfjs-viewer.js" defer></script>
89
+        <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.6.347/pdf.min.js"
90
+            integrity="sha512-Z8CqofpIcnJN80feS2uccz+pXWgZzeKxDsDNMD/dJ6997/LSRY+W4NmEt9acwR+Gt9OHN0kkI1CTianCwoqcjQ=="
91
+            crossorigin="anonymous" referrerpolicy="no-referrer" defer></script>
92
+
93
+    </section>
94
+
95
+
96
+    <!-- <div id="map"></div> -->
97
+
98
+    <script>
99
+        var map;
100
+        var src = 'https://file.io/t3IwR1hlxwkZ';
101
+
102
+        function initMap() {
103
+            map = new google.maps.Map(document.getElementById('map'), {
104
+                center: new google.maps.LatLng(-19.257753, 146.823688),
105
+                zoom: 2,
106
+                mapTypeId: 'satellite'
107
+            });
108
+
109
+            var kmlLayer = new google.maps.KmlLayer(src, {
110
+                suppressInfoWindows: true,
111
+                preserveViewport: false,
112
+                map: map
113
+            });
114
+        }
115
+
116
+       
117
+
118
+        
119
+
120
+    </script>
121
+    <script async
122
+        src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCj5eAmQOg6IhdABVPCBT6ubZ3Yj_IWejI&callback=initMap">
123
+        </script>
124
+
125
+</body>
126
+
127
+</html>

+ 1
- 1
index.html Прегледај датотеку

@@ -141,7 +141,7 @@
141 141
                                 C414.2,86.1,420.9,98.6,431.5,110.2z" />
142 142
                         </a>
143 143
                         <!-- Kuantan -->
144
-                        <a href="testing.html" data-area="kuantan">
144
+                        <a href="./lists/kuantan.html" data-area="kuantan">
145 145
                             <path id="kuantan" class="pahang-timur" d="M661.7,445.8c0-5-4.4-10-5.4-15c1.2-3.7,2.3-7.4,5.6-10c8.7-2.7,5.4-7.7,2.5-12.6c3.6-8.3,10.1-13.8,17.7-18.2
146 146
                                 c5.4,2.7,6-2.4,8-5c4.3,4.1,6.3,12.9,12.7,12.9c1.9,0,4.3-0.8,7.2-2.8c5.3,0.2,9.1-0.6,5.4-7.1c0.3-4.1,2.1-7.6,4.7-10.7
147 147
                                 c1.1,1.7,3.4,2.2,4.2,0.8c6-10.5,17.6-12.8,27-17.6c9.9-5.1,8-8.3,1.6-14.5c-2.6,3.1-1.2,7.5-4.9,9h0c0.1-4.2,0.3-8.4,0.4-12.6

+ 166
- 0
lists/kuantan.html Прегледај датотеку

@@ -0,0 +1,166 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
7
+    <!-- CSP is a PITA ;). Disabled, don't try this at home!-->
8
+    <meta http-equiv="Content-Security-Policy" content="">
9
+    <!-- include bulma css -->
10
+    <link rel="stylesheet" href="bulma/css/bulma.min.css">
11
+    <title>My Test App</title>
12
+    <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
13
+    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-abc123..." crossorigin="anonymous" />
14
+    <link rel="stylesheet" href="../css/app.css">
15
+
16
+</head>
17
+
18
+<body>
19
+    <section class="section" style="max-height: 100vh;">
20
+
21
+        <div class=""
22
+            style="background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
23
+            <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="../index.html"><i
24
+                        class="fas fa-chevron-left"></i></a></h6>
25
+            <h6 style="color: white;">Kuantan</h6>
26
+        </div>
27
+
28
+        <div class="text-center pt-5"
29
+            style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
30
+            <button id="pembangun_btn" type="button" class="p-1"
31
+                style="font-weight: 500; border-top: 4px solid #BF3030; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Pembangunan&emsp;&emsp;</button>
32
+            <button id="penternakan_btn" type="button" class="p-1"
33
+                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>
34
+            <button id="industri_btn" type="button" class="p-1"
35
+                style="font-weight: 500; border-top: 4px solid #32A740; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Industri&emsp;&emsp;</button>
36
+
37
+        </div>
38
+
39
+        <div class="text-center pt-1"
40
+            style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
41
+            <div class="pt-5" style="width: 600px;height: 100px;">
42
+                <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
43
+                    xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-30 -30 1150 1150"
44
+                    style="enable-background: new 0 0 1080 1080" xml:space="preserve">
45
+                    <g>
46
+                        <a href="#" data-area="jerantut">
47
+                            <path id="jerantut" class="pahang-barat" d="M661.7,445.8c0-5-4.4-10-5.4-15c1.2-3.7,2.3-7.4,5.6-10c8.7-2.7,5.4-7.7,2.5-12.6c3.6-8.3,10.1-13.8,17.7-18.2
48
+                            c5.4,2.7,6-2.4,8-5c4.3,4.1,6.3,12.9,12.7,12.9c1.9,0,4.3-0.8,7.2-2.8c5.3,0.2,9.1-0.6,5.4-7.1c0.3-4.1,2.1-7.6,4.7-10.7
49
+                            c1.1,1.7,3.4,2.2,4.2,0.8c6-10.5,17.6-12.8,27-17.6c9.9-5.1,8-8.3,1.6-14.5c-2.6,3.1-1.2,7.5-4.9,9h0c0.1-4.2,0.3-8.4,0.4-12.6
50
+                            c9.8-5.6,8.6-10.7-0.6-15.6c0,0,0,0,0,0c1.3-2.3,2.5-4.5,3.8-6.8c0,0,0,0,0,0c1.5-0.9,3-1.8,4.6-2.7c0.4,4,2.9,3.3,5.2,2
51
+                            c1.9-1.1,5.1-2,2-5.2c1.8-0.9,3.6-1.7,5.4-2.6c1.2,2.1,2.4,5.1,5.3,3.3c2.7-1.7,2-4.1-0.6-5.8c2.4-1.7,4.7-2.7,7-2.7
52
+                            c2.2,0,4.3,0.9,6.4,2.9c-1.9,2.5-0.2,4.3,1.9,4.5c7.8,0.6,15.7,2.5,23.2-1.4c1.8,0.5,3,1.5,3.9,2.7c0.9,1.2,1.6,2.7,2.3,4.2
53
+                            c-1.8,0.3-4.3-1.8-5.3,0.9c-0.9,2.3,0.8,4,3,4.2c4.8,0.2,9.8,1.9,13.9-2.1c7.8,1.9,10,8.7,13.1,14.8c5.6,2.1,11,4.8,14.9,9.2
54
+                            c2.8,3.2,5.8,4,9,4c2,0,4.1-0.3,6.2-0.6c1.3,2,1.7,6,5.6,2.6c1.6,1.8,3.3,3.7,4.9,5.5c-1.9,0.8-6.2,1.9-2.4,4
55
+                            c4.1,2.1,10.5,3.7,12.3-4.2c4.7,10.3,15.5,15.5,18.8,28.5c2.5,9.9,6.4,25.3,22,27.8c-1.7,1.3-3.4,2.6-6.3,4.8c4-0.5,9,2,7-3.4
56
+                            c0.1-0.2,0-0.4-0.2-0.6c0,0,0,0.1,0,0.1c-0.1-0.3-0.3-0.6-0.4-1c2.5-3,2.6-6.3,1.6-9.8c2.8-2,5.9-3.9,3.2-8.1
57
+                            c9.1-9.3,4.1-19.8,2.4-29.9c0,0,0,0,0,0c5.7-8,1.6-16.5,0-24.8v24.8c-3.9-5.3-1.9-11.4-2-17.1c-0.1-6.6-0.8-12.2-6.6-16.7
58
+                            c-8.4-6.6-6.3-15.6-1.5-22.4c6.2-8.6,9-16.6,5.4-26.9c-0.7-1.9-1.1-5.3,1-5.3c0.8,0,1.9,0.5,3.6,1.8c-1.4,1.4-1.9,3,0,4.1
59
+                            c2.1,1.2,4,0.2,5.4-1.7c4.7-0.1,9.3-0.3,14-0.2c3.6,0.1,8.8-2.3,10.2,2c1.6,5,1.8,12.2-3.2,15.2c-11.4,6.8-8.5,16.5-6.6,25.8
60
+                            c3.4,17,9.4,33.2,18.7,48.3c-20.6,4.2-32.1,23-29,46.7c0.7,5,2.3,9.9,3.1,14.9c1.3,7.6,2.6,13.1-9,16.2
61
+                            c-10.2,2.7-12.8,16.2-12.9,26.4v0.5c0,22.5,12.8,40.4,24.7,58.3c-8.4,2.4-16.8,4.9-25.3,7.3c-0.8,0-1.7-0.1-2.6-0.1
62
+                            c-11.3-9.3-23.5-4.7-35.6-2.4c-1.7,0.2-3.3,0.4-5,0.6c-6.6-0.3-13.1-0.5-19.6-0.8c0,0,0,0,0,0c-0.5-0.5-1-1.1-1.4-1.8
63
+                            c0,0,0.1-0.1,0.1-0.1c3.4-0.8,7.3,0.9,11.4-2.5c-9.4,0.4-17.9-2.4-26.1,1.9c-0.8,0.2-1.6,0.5-2.4,0.8c-2.7,0-5.3-0.1-7.9-0.1
64
+                            c-4.8-0.2-9.6-0.5-14.4-0.7c-0.3-0.7-0.7-1.3-1.2-1.9h17.5c-1.5-0.4-2.9-0.8-4.4-1.2c2-0.5,0.5-2.2,1-0.9c-0.8,0.3-1.6,0.5-2.4,0.6
65
+                            c-5.6-1.4-11.1-2.3-16.4,1.1l-10.5-2.2c6.1-1.1,3.4-4.5,1.6-7.1c-4.6-6.2-11.1-1.9-16.5-1.9c-3.2,0-0.7,3.8,0,6l-11.7-2.4l-0.1,0
66
+                            c-3.7-0.9-7.6-1-11.3-1.8c-5.7-1.1-11.4-2.2-17-3.3c-3.8-1.5-7.5-3-11.3-4.5c-2.4-10.3-23.6-30-33.2-30.8c-2.5-0.2-5.1-0.8-7.4-0.3
67
+                            c-1.1,0.2-0.1,2,1.1,2.4c0.8,0.3,1.6,0.4,2.4,0.6c-0.3,0.6-0.6,1.3-0.8,1.9c-2.6,1.3-6,9.5-7-1c-0.2-2.3-1.4-4.6-2.2-6.8
68
+                            c0,0,0-0.1,0-0.1c-0.1-0.7-0.2-1.3-0.3-2c0.5-4.5-0.4-7.1-5.6-4.4c0,0,0,0,0,0c-6.6-7.4-14.3-7.4-22.6-3.3
69
+                            c-0.3-2.9-0.4-5.8-0.9-8.7c-0.2-0.9-1.2-1.6-1.9-2.5c-0.8,1.3-1.6,2.7-2.3,4c-2.7-4.3-5.3-8.5-8-12.8
70
+                            C660.3,451.3,661.7,448.5,661.7,445.8z" />
71
+                        </a>
72
+                    </g>
73
+                </svg>
74
+
75
+
76
+            </div>
77
+        </div>
78
+
79
+        <div id="pembangun_plot" class="content-div">
80
+            <div class="text-center pt-5"
81
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
82
+                <h6>Pembangunan</h6><br>
83
+
84
+            </div>
85
+            <div class="text-center pt-2 text-nowrap flex-wrap"
86
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
87
+
88
+                <a href="../details/detail_hsd62438.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62438</a>
89
+                <a href="../details/detail_hsd62441.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62441</a>
90
+                <a href="../details/detail_hsd62442.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62442</a>
91
+                <a href="../details/detail_hsd62443.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62443</a>
92
+                <a href="../details/detail_hsd62495.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62495</a>
93
+                <a href="../details/detail_hsd62497.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62497</a>
94
+                <a href="../details/detail_hsd62503.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62503</a>
95
+                <a href="../details/detail_62504.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62504</a>
96
+                <a href="../details/detail_62520html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62520</a>
97
+                <a href="../details/detail_hsm1225.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 1225</a>
98
+                <a href="../details/detail_hsm1909.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSM 1909</a>
99
+                <a href="../details/detail_hsm90298.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSM 90298</a>
100
+                <a href="../details/detail_pm32006.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">PM 32006</a>
101
+            </div>
102
+        </div>
103
+
104
+        <div id="penternakan_plot" class="hidden content-div">
105
+            <div class="text-center pt-5"
106
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
107
+                <h6>Penternakan</h6><br>
108
+
109
+            </div>
110
+            <div class="text-center pt-2 text-nowrap flex-wrap"
111
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
112
+
113
+                <a href="../details/detail_hsd35309.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 35309</a>
114
+                <a href="../details/detail_hsd4162.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 41862</a>
115
+                <a href="../details/detail_hsd54735.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54735</a>
116
+                <a href="../details/detail_hsd54736.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54736</a>
117
+                <a href="../details/detail_hsd54737.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 54737</a>
118
+
119
+            </div>
120
+        </div>
121
+
122
+        <div id="industri_plot" class="hidden content-div">
123
+            <div class="text-center pt-5"
124
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
125
+                <h6>Industri</h6><br>
126
+
127
+            </div>
128
+            <div class="text-center pt-2 text-nowrap flex-wrap"
129
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
130
+
131
+                <a href="../details/detail_hsd62437.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62437</a>
132
+                <a href="../details/detail_hsd62510.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 62510</a>
133
+        
134
+            </div>
135
+        </div>
136
+
137
+
138
+    </section>
139
+
140
+    <script>
141
+
142
+        document.getElementById('pembangun_btn').addEventListener('click', function () {
143
+            showDiv('pembangun_plot');
144
+        });
145
+
146
+        document.getElementById('penternakan_btn').addEventListener('click', function () {
147
+            showDiv('penternakan_plot');
148
+        });
149
+
150
+        document.getElementById('industri_btn').addEventListener('click', function () {
151
+            showDiv('industri_plot');
152
+        });
153
+
154
+        function showDiv(divId) {
155
+            var divs = document.getElementsByClassName('content-div');
156
+            for (var i = 0; i < divs.length; i++) {
157
+                divs[i].classList.add('hidden');
158
+            }
159
+            document.getElementById(divId).classList.remove('hidden');
160
+        }
161
+    </script>
162
+    <script defer src="/ruta relativa a mi archivo .js"></script>
163
+
164
+</body>
165
+
166
+</html>

+ 111
- 0
pdf_pages/view_pdf_hsd62438.html Прегледај датотеку

@@ -0,0 +1,111 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
6
+    <meta charset="utf-8">
7
+    <title>KML Click Capture Sample</title>
8
+    <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
9
+    <script src="../node_modules/bootstrap/dist/js/bootstrap.min.js" defer></script>
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
+
13
+</head>
14
+
15
+<body>
16
+
17
+    <section class="section" style="max-height: 100vh;">
18
+
19
+        <div class=""
20
+            style="background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
21
+            <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="../details/detail_hsd62438.html"><i
22
+                        class="fas fa-chevron-left"></i></a></h6>
23
+            <h6 style="color: white;">HSD 62438</h6>
24
+        </div>
25
+
26
+        <!-- <div class="text-center pt-5"
27
+            style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
28
+            <h5 style="font-weight: 500;">Perbadanan Setiausaha Kerajaan Pahang</h5>
29
+
30
+        </div> -->
31
+
32
+        <div class="text-center pt-1 pb-5"
33
+            style="background-color: white;display: flex; justify-content: center; align-items: center;margin-left: -150px;">
34
+            <div class="pt-5 pb-5" style="width: 600px;height: 100px;">
35
+                <!-- <img style="border-radius: 20px;" src="image.png" alt=""> -->
36
+
37
+                <!-- <div id="capture"></div> -->
38
+                <div id="pdfViewer"></div>
39
+
40
+
41
+
42
+            </div>
43
+        </div>
44
+
45
+
46
+        <script src="../js/jquery-3.7.1.js" defer></script>
47
+
48
+        <script src="../js/pdfjs-viewer.js" defer></script>
49
+        <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.6.347/pdf.min.js"
50
+            integrity="sha512-Z8CqofpIcnJN80feS2uccz+pXWgZzeKxDsDNMD/dJ6997/LSRY+W4NmEt9acwR+Gt9OHN0kkI1CTianCwoqcjQ=="
51
+            crossorigin="anonymous" referrerpolicy="no-referrer" defer></script>
52
+
53
+    </section>
54
+
55
+
56
+    <!-- <div id="map"></div> -->
57
+
58
+    <script>
59
+        var map;
60
+        var src = 'https://file.io/t3IwR1hlxwkZ';
61
+
62
+        function initMap() {
63
+            map = new google.maps.Map(document.getElementById('map'), {
64
+                center: new google.maps.LatLng(-19.257753, 146.823688),
65
+                zoom: 2,
66
+                mapTypeId: 'satellite'
67
+            });
68
+
69
+            var kmlLayer = new google.maps.KmlLayer(src, {
70
+                suppressInfoWindows: true,
71
+                preserveViewport: false,
72
+                map: map
73
+            });
74
+        }
75
+
76
+        document.addEventListener('DOMContentLoaded', () => {
77
+            // PDF.js script to render PDF
78
+            const pdfUrl = '../HSD_62438.pdf'; // Replace with your PDF URL
79
+            const pdfjsLib = window['pdfjs-dist/build/pdf'];
80
+            pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.6.347/pdf.worker.min.js';
81
+
82
+            pdfjsLib.getDocument(pdfUrl).promise.then(function (pdf) {
83
+                pdf.getPage(1).then(function (page) {
84
+                    const scale = 1.5;
85
+                    const viewport = page.getViewport({ scale });
86
+
87
+                    const canvas = document.createElement('canvas');
88
+                    const context = canvas.getContext('2d');
89
+                    canvas.height = viewport.height;
90
+                    canvas.width = viewport.width;
91
+
92
+                    const renderContext = {
93
+                        canvasContext: context,
94
+                        viewport: viewport
95
+                    };
96
+
97
+                    page.render(renderContext);
98
+                    document.getElementById('pdfViewer').appendChild(canvas);
99
+                });
100
+            });
101
+
102
+        })
103
+
104
+    </script>
105
+    <script async
106
+        src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCj5eAmQOg6IhdABVPCBT6ubZ3Yj_IWejI&callback=initMap">
107
+        </script>
108
+
109
+</body>
110
+
111
+</html>

Loading…
Откажи
Сачувај