Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 303: | Line 303: | ||
<script src="https://kit.fontawesome.com/423f4585a2.js" crossorigin="anonymous"></script> | <script src="https://kit.fontawesome.com/423f4585a2.js" crossorigin="anonymous"></script> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<nav id="MySidebar" role="navigation" style="position: fixed; z-index: 1"> <!-- class="oculto" --> | <nav id="MySidebar" role="navigation" style="position: fixed; z-index: 1"> <!-- class="oculto" --> | ||
<div id="menuToggle"> | <div id="menuToggle"> | ||
Line 402: | Line 372: | ||
</nav> | </nav> | ||
− | |||
<script> | <script> | ||
+ | |||
+ | function openCity(evt, cityName) { | ||
+ | var i, x, tablinks; | ||
+ | x = document.getElementsByClassName("city"); | ||
+ | for (i = 0; i < x.length; i++) { | ||
+ | x[i].style.display = "none"; | ||
+ | } | ||
+ | tablinks = document.getElementsByClassName("tablink"); | ||
+ | for (i = 0; i < x.length; i++) { | ||
+ | tablinks[i].className = tablinks[i].className.replace(" bottom-selected", ""); | ||
+ | } | ||
+ | document.getElementById(cityName).style.display = "block"; | ||
+ | evt.currentTarget.className += " bottom-selected"; | ||
+ | |||
+ | if (cityName == "PE") { | ||
+ | $(".fa-atom").css('font-size', '21px') | ||
+ | $(".fa-info").css('font-size', '18px') | ||
+ | $(".fa-tools").css('font-size','17px') | ||
+ | }else if (cityName == "Others") { | ||
+ | $(".fa-atom").css('font-size', '19px') | ||
+ | $(".fa-info").css('font-size', '20px') | ||
+ | $(".fa-tools").css('font-size','17px') | ||
+ | }else { | ||
+ | $(".fa-atom").css('font-size', '19px') | ||
+ | $(".fa-info").css('font-size', '18px') | ||
+ | $(".fa-tools").css('font-size','19px') | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
function myFunction() { | function myFunction() { | ||
var checkBox = document.getElementById("inputButton"); | var checkBox = document.getElementById("inputButton"); | ||
Line 581: | Line 580: | ||
− | |||
$(document).ready( function() { | $(document).ready( function() { | ||
$('#totalItems, #enteredItems').keyup(function(){ | $('#totalItems, #enteredItems').keyup(function(){ |
Revision as of 15:24, 14 March 2021