Make iframe src relative

This commit is contained in:
Skylar Ittner 2018-07-25 17:24:43 -06:00
parent 6c12179b49
commit 288d6aaf44
1 changed files with 2 additions and 2 deletions

View File

@ -59,10 +59,10 @@
<div class="col-12 col-md-6">
<div class="card">
<div class="card-header bg-primary text-light">
<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>
<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>
</div>
<div class="card-body">
<iframe style="border: 0px solid white; width: 100%; height: 100%; height: 200px;" src="https://captcheck.netsyms.com/test.html" id="demoframe"></iframe>
<iframe style="border: 0px solid white; width: 100%; height: 100%; height: 200px;" src="test.html" id="demoframe"></iframe>
</div>
</div>
</div>