Difference between revisions of "Desktop"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
| Line 22: | Line 22: | ||
<div id="container-desktop-menu" style="margin-top:-9px; width:200px; margin-top: -70px; margin-bottom:80px"> | <div id="container-desktop-menu" style="margin-top:-9px; width:200px; margin-top: -70px; margin-bottom:80px"> | ||
| − | <button id="button-Uno" class="button izquierda | + | <button id="button-Uno" class="button izquierda tablinkDesktop bottom-selected" onclick="selectDesktop(event,'Uno')" > <i class="uno">1</i> </button> |
| − | <button id="button-Dos" class="button izquierda | + | <button id="button-Dos" class="button izquierda tablinkDesktop" onclick="selectDesktop(event,'Dos')" > <i class="dos">2</i> </button> |
| − | <button id="button-Tres" class="button izquierda | + | <button id="button-Tres" class="button izquierda tablinkDesktop" onclick="selectDesktop(event,'Tres')"> <i class="tres">3</i> </button> |
| − | <button id="button-All" class="button izquierda | + | <button id="button-All" class="button izquierda tablinkDesktop" onclick="selectDesktop(event,'All')" > <i class="fas fa-eye"></i> </button> |
</div> | </div> | ||
| Line 48: | Line 48: | ||
<script> | <script> | ||
function selectDesktop(evt, cityName) { | function selectDesktop(evt, cityName) { | ||
| − | var i, x, | + | var i, x, tablinkDesktops; |
x = document.getElementsByClassName("city"); | x = document.getElementsByClassName("city"); | ||
for (i = 0; i < x.length; i++) { | for (i = 0; i < x.length; i++) { | ||
x[i].style.display = "none"; | x[i].style.display = "none"; | ||
} | } | ||
| − | + | tablinkDesktops = document.getElementsByClassName("tablinkDesktop"); | |
for (i = 0; i < x.length; i++) { | for (i = 0; i < x.length; i++) { | ||
| − | + | tablinkDesktops[i].className = tablinkDesktops[i].className.replace(" bottom-selected", ""); | |
} | } | ||
document.getElementById(cityName).style.display = "block"; | document.getElementById(cityName).style.display = "block"; | ||
Revision as of 17:13, 21 March 2021
This is a protected page.
|
Estudio actual |
Level1 |
Level1 |
|
|
|