|
@@ -68,8 +68,8 @@
|
68
|
68
|
</div>
|
69
|
69
|
</div>
|
70
|
70
|
|
71
|
|
- <div class="text-left pt-1 container text-nowrap flex-wrap">
|
72
|
|
- <div class="pt-4 flex-wrap" style="display: flex; flex-wrap: wrap;width: 100px;">
|
|
71
|
+ <div class="text-left pt-1 container text-nowrap flex-wrap" style="display: flex;">
|
|
72
|
+ <div class="pt-4 flex-wrap" style="display: flex; flex-wrap: wrap;gap: 10px;">
|
73
|
73
|
<h6 style="width: 100%;">Kuantan</h6>
|
74
|
74
|
<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>
|
75
|
75
|
<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>
|
|
@@ -89,7 +89,7 @@
|
89
|
89
|
|
90
|
90
|
|
91
|
91
|
|
92
|
|
- <div class="text-left pt-1 pb-5 container text-nowrap flex-wrap">
|
|
92
|
+ <div class="text-left pt-1 pb-5 container text-nowrap flex-wrap" style="display: flex;">
|
93
|
93
|
<div class="pt-4 text-nowrap flex-wrap">
|
94
|
94
|
<h6>Rompin</h6>
|
95
|
95
|
<a href="./details/detail_hsd5715.html" class="button-23 mb-2 mr-2"
|
|
@@ -132,6 +132,19 @@
|
132
|
132
|
var numberRegex = /\d/; // Regular expression to check for any digit
|
133
|
133
|
var matchedFile;
|
134
|
134
|
|
|
135
|
+ var keywordMapping = {
|
|
136
|
+ 'industri': 'industri.html',
|
|
137
|
+ 'pembangunan': 'pembangunan.html',
|
|
138
|
+ 'penternakan': 'penternakan.html',
|
|
139
|
+ 'pertanian': 'pertanian.html'
|
|
140
|
+ };
|
|
141
|
+
|
|
142
|
+ if (keywordMapping[fileInput]) {
|
|
143
|
+ // If the input matches one of the keywords, redirect to the corresponding file
|
|
144
|
+ window.location.href = keywordMapping[fileInput];
|
|
145
|
+ return;
|
|
146
|
+ }
|
|
147
|
+
|
135
|
148
|
if (numberRegex.test(fileInput)) {
|
136
|
149
|
// Hardcoded list of files containing numbers
|
137
|
150
|
var numberFiles = [
|
|
@@ -203,7 +216,7 @@
|
203
|
216
|
// File found, redirect to it
|
204
|
217
|
window.location.href = matchedFile;
|
205
|
218
|
} else {
|
206
|
|
- alert('No file containing the input ' + fileInput + ' was found.');
|
|
219
|
+ // alert('No file containing the input ' + fileInput + ' was found.');
|
207
|
220
|
}
|
208
|
221
|
});
|
209
|
222
|
</script>
|