Browse Source

Make iframe src relative

Skylar Ittner 7 months ago
parent
commit
288d6aaf44
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      index.html

+ 2
- 2
index.html View File

@@ -59,10 +59,10 @@
59 59
         <div class="col-12 col-md-6">
60 60
             <div class="card">
61 61
                 <div class="card-header bg-primary text-light">
62
-                    <h4 class="card-heading d-flex"><span class="mr-auto">Demo</span> <a onclick="document.getElementById('demoframe').src = 'https://captcheck.netsyms.com/test.html'" title="Reset demo"><i class="fas fa-sync-alt"></i></a></h4>
62
+                    <h4 class="card-heading d-flex"><span class="mr-auto">Demo</span> <a onclick="document.getElementById('demoframe').src = document.getElementById('demoframe').src" title="Reset demo"><i class="fas fa-sync-alt"></i></a></h4>
63 63
                 </div>
64 64
                 <div class="card-body">
65
-                    <iframe style="border: 0px solid white; width: 100%; height: 100%; height: 200px;" src="https://captcheck.netsyms.com/test.html" id="demoframe"></iframe>
65
+                    <iframe style="border: 0px solid white; width: 100%; height: 100%; height: 200px;" src="test.html" id="demoframe"></iframe>
66 66
                 </div>
67 67
             </div>
68 68
         </div>

Loading…
Cancel
Save