mirror of
https://github.com/ivabus/www
synced 2024-11-23 04:45:05 +03:00
JS now changes "src" in iframe and "href" in mobile download btn.
This commit is contained in:
parent
49d4def90a
commit
941315f7a8
1 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,7 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div class="col mb-4 mt-3">
|
<div class="col mb-4 mt-3">
|
||||||
<h4>Our white paper is available in multiple languages</h4>
|
<h4>Our white paper is available in multiple languages</h4>
|
||||||
<p>Thanks to the tea community's generosity and time, our white paper is available in several world languages.</p>
|
<p>Thanks to the tea community's generosity and time, our white paper is available in several world languages. Select your preferred language from the dropdown menu.</p>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-secondary dropdown-toggle languages" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
<button class="btn btn-secondary dropdown-toggle languages" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
Choose a Language
|
Choose a Language
|
||||||
|
@ -95,6 +95,7 @@
|
||||||
<script>
|
<script>
|
||||||
function go(loc) {
|
function go(loc) {
|
||||||
document.getElementById('wp-iframe').src = loc;
|
document.getElementById('wp-iframe').src = loc;
|
||||||
|
document.getElementById('mobile-wp-download').href = loc;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -149,7 +150,7 @@
|
||||||
<div style="margin-top:auto; margin-bottom:auto;">
|
<div style="margin-top:auto; margin-bottom:auto;">
|
||||||
<p class="text-center">Mobile browsers can be finicky, so please view our white paper via the button
|
<p class="text-center">Mobile browsers can be finicky, so please view our white paper via the button
|
||||||
below.</p>
|
below.</p>
|
||||||
<a style="display:block; margin-left:auto; margin-right:auto;" class="btn btn-primary mb-3"
|
<a id="mobile-wp-download" style="display:block; margin-left:auto; margin-right:auto;" class="btn btn-primary mb-3"
|
||||||
href="https://tea.xyz/tea.white-paper.pdf" role="button">Download our White Paper</a>
|
href="https://tea.xyz/tea.white-paper.pdf" role="button">Download our White Paper</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue