Spaces:
Running
Running
Rakesh commited on
Update index.html
Browse files- index.html +2 -12
index.html
CHANGED
|
@@ -1130,7 +1130,7 @@
|
|
| 1130 |
|
| 1131 |
// Function to show a subcomponent modal
|
| 1132 |
function showSubcomponentModal(componentId, subcomponentId) {
|
| 1133 |
-
|
| 1134 |
if (!component) return;
|
| 1135 |
|
| 1136 |
const subcomponent = component.subcomponents.find(s => s.id === subcomponentId);
|
|
@@ -1187,8 +1187,7 @@
|
|
| 1187 |
<div class="tab">
|
| 1188 |
<button class="tablinks active" onclick="openTab(event, '${subcomponentId}-tech')">Technologies</button>
|
| 1189 |
<button class="tablinks" onclick="openTab(event, '${subcomponentId}-examples')">Examples</button>
|
| 1190 |
-
|
| 1191 |
-
`<button class="tablinks" onclick="openTab(event, '${subcomponentId}-arch')">Architecture</button>` : ''}
|
| 1192 |
</div>
|
| 1193 |
|
| 1194 |
<div id="${subcomponentId}-tech" class="tabcontent" style="display: block;">
|
|
@@ -1287,12 +1286,3 @@
|
|
| 1287 |
</body>
|
| 1288 |
</html>// ... existing code ...
|
| 1289 |
|
| 1290 |
-
|
| 1291 |
-
|
| 1292 |
-
|
| 1293 |
-
|
| 1294 |
-
// ... rest of the code remains unchanged ...// ... existing code ...
|
| 1295 |
-
|
| 1296 |
-
|
| 1297 |
-
|
| 1298 |
-
// ... rest of the code remains unchanged ...
|
|
|
|
| 1130 |
|
| 1131 |
// Function to show a subcomponent modal
|
| 1132 |
function showSubcomponentModal(componentId, subcomponentId) {
|
| 1133 |
+
const component = components.find(c => c.id === componentId);
|
| 1134 |
if (!component) return;
|
| 1135 |
|
| 1136 |
const subcomponent = component.subcomponents.find(s => s.id === subcomponentId);
|
|
|
|
| 1187 |
<div class="tab">
|
| 1188 |
<button class="tablinks active" onclick="openTab(event, '${subcomponentId}-tech')">Technologies</button>
|
| 1189 |
<button class="tablinks" onclick="openTab(event, '${subcomponentId}-examples')">Examples</button>
|
| 1190 |
+
<button class="tablinks" onclick="openTab(event, '${subcomponentId}-arch')">Architecture</button>
|
|
|
|
| 1191 |
</div>
|
| 1192 |
|
| 1193 |
<div id="${subcomponentId}-tech" class="tabcontent" style="display: block;">
|
|
|
|
| 1286 |
</body>
|
| 1287 |
</html>// ... existing code ...
|
| 1288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|