mirror of
https://github.com/ivabus/www
synced 2024-11-26 18:55:06 +03:00
JS to change src of iframe
This commit is contained in:
parent
e23b42b903
commit
49d4def90a
1 changed files with 13 additions and 7 deletions
|
@ -80,18 +80,24 @@
|
||||||
Choose a Language
|
Choose a Language
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a class="dropdown-item" href="#">English</a></li>
|
<li><a class="dropdown-item" onclick="go('')">English</a></li>
|
||||||
<li><a class="dropdown-item" href="#">Belarusian</a></li>
|
<li><a class="dropdown-item" onclick="go('')">Belarusian</a></li>
|
||||||
<li><a class="dropdown-item" href="#">German</a></li>
|
<li><a class="dropdown-item" onclick="go('')">German</a></li>
|
||||||
<li><a class="dropdown-item" href="#">Indonesian</a></li>
|
<li><a class="dropdown-item" onclick="go('')">Indonesian</a></li>
|
||||||
<li><a class="dropdown-item" href="#">Korean</a></li>
|
<li><a class="dropdown-item" onclick="go('')">Korean</a></li>
|
||||||
<li><a class="dropdown-item" href="#">Spanish</a></li>
|
<li><a class="dropdown-item" onclick="go('')">Spanish</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function go(loc) {
|
||||||
|
document.getElementById('wp-iframe').src = loc;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.languages{
|
.languages{
|
||||||
|
@ -129,7 +135,7 @@
|
||||||
|
|
||||||
<div class="container pdf-iframe"
|
<div class="container pdf-iframe"
|
||||||
style="margin-bottom:100px; overflow:auto; -webkit-overflow-scrolling:touch; z-index:2;">
|
style="margin-bottom:100px; overflow:auto; -webkit-overflow-scrolling:touch; z-index:2;">
|
||||||
<iframe src="https://tea.xyz/tea.white-paper.pdf#toolbar=0&navpanes=0&view=fitH" width="100%" height="800px">
|
<iframe id="wp-iframe"src="https://tea.xyz/tea.white-paper.pdf#toolbar=0&navpanes=0&view=fitH" width="100%" height="800px">
|
||||||
</iframe>
|
</iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue