Explorar el Código

add selection

master
Muqriz hace 4 meses
padre
commit
8f8590baac
Se han modificado 1 ficheros con 162 adiciones y 66 borrados
  1. 162
    66
      testing.html

+ 162
- 66
testing.html Ver fichero

@@ -11,10 +11,13 @@
11 11
     <title>My Test App</title>
12 12
     <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
13 13
     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
14
-    integrity="sha512-abc123..." crossorigin="anonymous" />
14
+        integrity="sha512-abc123..." crossorigin="anonymous" />
15 15
 
16 16
     <style>
17
-        /* CSS */
17
+        .hidden {
18
+            display: none;
19
+        }
20
+
18 21
         .button-23 {
19 22
             background-color: #FFFFFF;
20 23
             border: 1px solid #222222;
@@ -111,6 +114,8 @@
111 114
                         3px);
112 115
                 /* adjust vertical position to centre text */
113 116
             }
117
+
118
+
114 119
         }
115 120
     </style>
116 121
     <script>
@@ -123,19 +128,27 @@
123 128
 <body>
124 129
     <section class="section" style="max-height: 100vh;">
125 130
 
126
-        <div class="" style="background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
127
-            <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="index.html"><i class="fas fa-chevron-left"></i></a></h6>
131
+        <div class=""
132
+            style="background-color: #1F3F6D; min-height: 50px; display: flex; align-items: center;padding-left: 100px;">
133
+            <h6 style="color: white;margin-right: 1em;" class=""><a style="color: white;" href="index.html"><i
134
+                        class="fas fa-chevron-left"></i></a></h6>
128 135
             <h6 style="color: white;">Jerantut</h6>
129 136
         </div>
130 137
 
131
-        <div class="text-center pt-5" style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
132
-            <button type="button" class="p-1" 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>
133
-            <button 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;">&emsp;&emsp;Penternakan&emsp;&emsp;</button>
134
-            <button type="button" class="p-1" style="font-weight: 500;border-top: 4px solid #E2E236; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Pertanian&emsp;&emsp;</button>
135
-            <button type="button" class="p-1" 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>
138
+        <div class="text-center pt-5"
139
+            style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
140
+            <button id="pembangun_btn" type="button" class="p-1"
141
+                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>
142
+            <button id="penternakan_btn" type="button" class="p-1"
143
+                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>
144
+            <button id="pertanian_btn" type="button" class="p-1"
145
+                style="font-weight: 500; border-top: 4px solid #E2E236; border-right: none; border-bottom: none; border-left: none; margin: 0; background-color: transparent;">&emsp;&emsp;Pertanian&emsp;&emsp;</button>
146
+            <button id="industri_btn" type="button" class="p-1"
147
+                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>
136 148
         </div>
137 149
 
138
-        <div class="text-center pt-1" style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
150
+        <div class="text-center pt-1"
151
+            style="background-color: white; min-height: 50px; display: flex; justify-content: center; align-items: center; padding-left: 100px;">
139 152
             <div class="pt-5" style="width: 600px;height: 100px;">
140 153
                 <svg class="map-svg" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
141 154
                     xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-30 -30 1150 1150"
@@ -167,80 +180,163 @@
167 180
                     </g>
168 181
                 </svg>
169 182
 
170
-                
183
+
171 184
             </div>
172 185
         </div>
173 186
 
174
-        
175
-        <div class="text-center pt-5" style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
176
-           <h6>Pembangunan</h6><br>
177 187
 
188
+        <div id="pembangun_plot" class="content-div">
189
+            <div class="text-center pt-5"
190
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
191
+                <h6>Pembangunan</h6><br>
192
+
193
+            </div>
194
+            <div class="text-center pt-2 text-nowrap"
195
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
196
+                <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
197
+                    role="button">HSD 23453</a>
198
+                <a href="detail.html" class="button-23 mb-2 mr-2"
199
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
200
+                <a href="detail.html" class="button-23 mb-2 mr-2"
201
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
202
+                <a href="detail.html" class="button-23 mb-2 mr-2"
203
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
204
+                <a href="detail.html" class="button-23 mb-2 mr-2"
205
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
206
+                <a href="detail.html" class="button-23 mb-2 mr-2"
207
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
208
+                <a href="detail.html" class="button-23 mb-2 mr-2"
209
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
210
+                <a href="detail.html" class="button-23 mb-2 mr-2"
211
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
212
+                <a href="detail.html" class="button-23 mb-2 mr-2"
213
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
214
+                <a href="detail.html" class="button-23 mb-2"
215
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
216
+            </div>
178 217
         </div>
179
-        <div class="text-center pt-2 text-nowrap" style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
180
-            <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2" role="button">HSD 23453</a>
181
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
182
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
183
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
184
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
185
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
186
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
187
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
188
-            <a href="detail.html" class="button-23 mb-2 mr-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
189
-            <a href="detail.html" class="button-23 mb-2" style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
190
-        </div>
191
-        
192
-        
193
-        <!-- <div class="row justify-content-center">
194
-            <div class="col-lg-6 text-right">
195
-                
218
+
219
+        <div id="penternakan_plot" class="hidden content-div">
220
+            <div class="text-center pt-5"
221
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
222
+                <h6>Penternakan</h6><br>
223
+
196 224
             </div>
197
-            <div class="col-lg-6 text-left">
198
-                <div class="pt-5" style="width: 500px;height: auto;">
199
-                    <h3 class="pb-2">Pembangunan</h3>
200
-
201
-                    <a href="detail.html" class="button-23 mb-2" role="button">HSD 23453</a>
202
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
203
-                        role="button">HSD 23453</button>
204
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
205
-                        role="button">HSD 23453</button>
206
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
207
-                        role="button">HSD 23453</button>
208
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
209
-                        role="button">HSD 23453</button>
210
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
211
-                        role="button">HSD 23453</button>
212
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
213
-                        role="button">HSD 23453</button>
214
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
215
-                        role="button">HSD 23453</button>
216
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
217
-                        role="button">HSD 23453</button>
218
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
219
-                        role="button">HSD 23453</button>
220
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
221
-                        role="button">HSD 23453</button>
222
-                    <button class="button-23 mb-2" style="background-color: #1F9027;color: white;border: none;"
223
-                        role="button">HSD 23453</button>
224
-
225
-
226
-                </div>
225
+            <div class="text-center pt-2 text-nowrap"
226
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
227
+                <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
228
+                    role="button">HSD 23453</a>
229
+                <a href="detail.html" class="button-23 mb-2 mr-2"
230
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
231
+                <a href="detail.html" class="button-23 mb-2 mr-2"
232
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
233
+                <a href="detail.html" class="button-23 mb-2 mr-2"
234
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
235
+                <a href="detail.html" class="button-23 mb-2 mr-2"
236
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
237
+                <a href="detail.html" class="button-23 mb-2 mr-2"
238
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
239
+                <a href="detail.html" class="button-23 mb-2 mr-2"
240
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
241
+                <a href="detail.html" class="button-23 mb-2 mr-2"
242
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
243
+                <a href="detail.html" class="button-23 mb-2 mr-2"
244
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
245
+                <a href="detail.html" class="button-23 mb-2"
246
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
227 247
             </div>
228
-        </div> -->
248
+        </div>
229 249
 
250
+        <div id="industri_plot" class="hidden content-div">
251
+            <div class="text-center pt-5"
252
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
253
+                <h6>Industri</h6><br>
230 254
 
231
-        <div class="container justify-content-center">
255
+            </div>
256
+            <div class="text-center pt-2 text-nowrap"
257
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
258
+                <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
259
+                    role="button">HSD 23453</a>
260
+                <a href="detail.html" class="button-23 mb-2 mr-2"
261
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
262
+                <a href="detail.html" class="button-23 mb-2 mr-2"
263
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
264
+                <a href="detail.html" class="button-23 mb-2 mr-2"
265
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
266
+                <a href="detail.html" class="button-23 mb-2 mr-2"
267
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
268
+                <a href="detail.html" class="button-23 mb-2 mr-2"
269
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
270
+                <a href="detail.html" class="button-23 mb-2 mr-2"
271
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
272
+                <a href="detail.html" class="button-23 mb-2 mr-2"
273
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
274
+                <a href="detail.html" class="button-23 mb-2 mr-2"
275
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
276
+                <a href="detail.html" class="button-23 mb-2"
277
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
278
+            </div>
279
+        </div>
232 280
 
281
+        <div id="pertanian_plot" class="hidden content-div">
282
+            <div class="text-center pt-5"
283
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px;margin-top: 250px;">
284
+                <h6>Pertanian</h6><br>
233 285
 
234
-            
286
+            </div>
287
+            <div class="text-center pt-2 text-nowrap"
288
+                style="background-color: white; display: flex; justify-content: left; align-items: left; padding-left: 100px; margin-top: 0;gap: 10px;padding-right: 100px;">
289
+                <a href="detail.html" style="border: 1px solid #209028; color: #209028;" class="button-23 mb-2"
290
+                    role="button">HSD 23453</a>
291
+                <a href="detail.html" class="button-23 mb-2 mr-2"
292
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
293
+                <a href="detail.html" class="button-23 mb-2 mr-2"
294
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
295
+                <a href="detail.html" class="button-23 mb-2 mr-2"
296
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
297
+                <a href="detail.html" class="button-23 mb-2 mr-2"
298
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
299
+                <a href="detail.html" class="button-23 mb-2 mr-2"
300
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
301
+                <a href="detail.html" class="button-23 mb-2 mr-2"
302
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
303
+                <a href="detail.html" class="button-23 mb-2 mr-2"
304
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
305
+                <a href="detail.html" class="button-23 mb-2 mr-2"
306
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
307
+                <a href="detail.html" class="button-23 mb-2"
308
+                    style="background-color: #1F9027; color: white; border: none;" role="button">HSD 23453</a>
309
+            </div>
310
+        </div>
235 311
 
312
+    </section>
236 313
 
314
+    <script>
237 315
 
316
+        document.getElementById('pembangun_btn').addEventListener('click', function () {
317
+            showDiv('pembangun_plot');
318
+        });
238 319
 
320
+        document.getElementById('penternakan_btn').addEventListener('click', function () {
321
+            showDiv('penternakan_plot');
322
+        });
239 323
 
324
+        document.getElementById('pertanian_btn').addEventListener('click', function () {
325
+            showDiv('pertanian_plot');
326
+        });
240 327
 
241
-        </div>
242
-    </section>
328
+        document.getElementById('industri_btn').addEventListener('click', function () {
329
+            showDiv('industri_plot');
330
+        });
243 331
 
332
+        function showDiv(divId) {
333
+            var divs = document.getElementsByClassName('content-div');
334
+            for (var i = 0; i < divs.length; i++) {
335
+                divs[i].classList.add('hidden');
336
+            }
337
+            document.getElementById(divId).classList.remove('hidden');
338
+        }
339
+    </script>
244 340
     <script defer src="/ruta relativa a mi archivo .js"></script>
245 341
 
246 342
 </body>

Loading…
Cancelar
Guardar