add support for js

Amolith created

Change summary

cards.py   | 2 +-
index.html | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)

Detailed changes

cards.py 🔗

@@ -19,6 +19,6 @@ for i in x["cards"]:
 with open('_site/index.html') as f:
     y = f.read()
 
-y = y.replace('<!-- JS cards here -->', text)
+y = y.replace('<!-- Static cards -->', text)
 with open('_site/index.html', 'w') as f:
     f.write(y)

index.html 🔗

@@ -22,7 +22,10 @@ priority: 0.9
 <br/>
 <div class="flex-wrapper">
     <div class="flex-cards">
-    <!-- JS cards here -->    
+    <!-- JS cards -->
+    <noscript>
+        <!-- Static cards -->
+    </noscript>
     </div>
 </div>
 <center><h1><u><a href="https://git.nixnet.xyz/NixNet/" target="_blank">Technical information about NixNet</a></u></h1></center>