slider.html
última modificação
09/09/2024 07h53
slider.html — 7 KB
Conteúdo do arquivo
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Slider</title> <script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=pUj-GoH-UPN7oQoVEOom4wmHccHMaeuvBcObzAInBvmdZtgfdAXUYjuy-m3ia_tmQ3tSRy3hUhKA8ILKcWp1mGIg1pMC0ej3olgtI6yDeOoJs7rX9HlhpmSRk-SVI16XgDRVU_6QnmrtrgzPaYXDHeoifBnFpOAKTN8uUNN4h-Y" charset="UTF-8"></script><link rel="stylesheet" crossorigin="anonymous" href="https://gc.kis.v2.scr.kaspersky-labs.com/E3E8934C-235A-4B0E-825A-35A08381A191/abn/main.css?attr=aHR0cHM6Ly91Zm9iLmVkdS5ici9hLXVmb2IvZXN0cnV0dXJhL3Byby1yZWl0b3JpYXMvcHJvZ2VwL3NsaWRlci5odG1sL0BAZG93bmxvYWQvZmlsZS9zbGlkZXIuaHRtbA"/><script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=aq1EwqPmFEkdZMOfOdrJVWcot4cD3xhPqWSAoM_aDpRf8GdXunoi8Yc4kqTY0bLzLXLEwxHO9-zuPzmA4d64DG60fb-WDnzuMT69ZHMH2PomMmgpQCwxgAw2WiONft-FjV-7WxJi4M9gP8fOoSIvsjeGRrNuF26VFkO6eakpNlQ" charset="UTF-8"></script><link rel="stylesheet" crossorigin="anonymous" href="https://gc.kis.v2.scr.kaspersky-labs.com/E3E8934C-235A-4B0E-825A-35A08381A191/abn/main.css?attr=aHR0cHM6Ly91Zm9iLmVkdS5ici9hLXVmb2IvZXN0cnV0dXJhL3Byby1yZWl0b3JpYXMvcHJvZ2VwL3NsaWRlci5odG1sL0BAZG93bmxvYWQvZmlsZS9zbGlkZXIuaHRtbA"/><script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=Eb8M0thR5s77VI7CleOWaEYTmWMdC0v2zDp4Th5ZWMZiDTI7tx1osk_IUjx0B1PBs29Nx-qa9GH21CG2Y5GqvKmsTgHSap6t-F7cJJ8AqbmtzqLGnSK76KAIBT0lLRDV__xhVg1Q1-XodFPjqkZgHw4aW_YCqdMhz0h2pcs6oEg" charset="UTF-8"></script><link rel="stylesheet" crossorigin="anonymous" href="https://gc.kis.v2.scr.kaspersky-labs.com/E3E8934C-235A-4B0E-825A-35A08381A191/abn/main.css?attr=aHR0cHM6Ly91Zm9iLmVkdS5ici9hLXVmb2IvZXN0cnV0dXJhL3Byby1yZWl0b3JpYXMvcHJvZ2VwL3NsaWRlci5odG1sL0BAZG93bmxvYWQvZmlsZS9zbGlkZXIuaHRtbA"/><script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=ylaVqnG4_u76bJDixNsYxXiG5TYvikscIW9qIbvUu6MmE4kn_wH0d0Nv5MRI-SBTH_Jl4Q5w1XsqszdzRvHOV_jxEI2ZBFrMkBlgoCaquye8RyqNA6ZBZBC-hbsBvGUx53HtsohN8nFzy_HVROV6KFTljNjDjvV0xH64Pcz7yKA" charset="UTF-8"></script><link rel="stylesheet" crossorigin="anonymous" href="https://gc.kis.v2.scr.kaspersky-labs.com/E3E8934C-235A-4B0E-825A-35A08381A191/abn/main.css?attr=aHR0cHM6Ly91Zm9iLmVkdS5ici9hLXVmb2IvZXN0cnV0dXJhL3Byby1yZWl0b3JpYXMvcHJvZ2VwL3NsaWRlci5odG1sL0BAZG93bmxvYWQvZmlsZS9zbGlkZXIuaHRtbA"/><style type="text/css"> section.slider{ margin: 0 auto; width: 100%; height: auto; padding: 0 !important; overflow: hidden; } .slider-content{ width: 400%; height: auto; display: flex; } .slider-content input, .img-mobile { display:none; } .slide-box { width: 25%; height: auto; position: relative; text-align: center; transition: 0.9s; } .slide-box img { width: 100%; } .nav-manual, .nav-auto { position: absolute; width: 100%; margin-top: 35%; display: flex; justify-content: center; } .nav-manual .manual-btn, .nav-auto div{ border: 1px solid #004837; padding: 10px; border-radius: 50%; cursor: pointer; transition: 1s; } .nav-manual .manual-btn:not(:last-child), .nav-auto div:not(:last-child) { margin-right: 10px; } .nav-manual .manual-btn:hover { background-color: #004837; } #radio1:checked ~ .nav-auto .auto-btn1 { background-color: #004837; } #radio2:checked ~ .nav-auto .auto-btn2 { background-color: #004837; } #radio3:checked ~ .nav-auto .auto-btn3 { background-color: #004837; } #radio4:checked ~ .nav-auto .auto-btn4 { background-color: #004837; } #radio1:checked ~ .primeiro{ margin-left: 0%; } #radio2:checked ~ .primeiro{ margin-left: -25%; } #radio3:checked ~ .primeiro{ margin-left: -50%; } #radio4:checked ~ .primeiro{ margin-left: -75%; } @media screen and (max-width: 900px) { .img-desktop { display: none; } .img-mobile { display: block; max-height: 80% } .nav-auto, .nav-manual{ margin-top: 30%; } } </style> </head> <body> <section class="slider"> <div class="slider-content"> <input type="radio" name="radio-btn" id="radio1"> <input type="radio" name="radio-btn" id="radio2"> <input type="radio" name="radio-btn" id="radio3"> <!--<input type="radio" name="radio-btn" id="radio4"> --> <div class="slide-box primeiro" > <!-- COLOCAR O LINK DEPOS DE "href="LINKAQUI" --> <a href="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/editais/editais-em-andamento/edital-no-05-2024-progep/" target="_blank" rel="noopener noreferrer"> <img class="img-desktop" src="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/editaltae2024.png"> <img class="img-mobile" src="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/editaltae2024b.png" alt="slide 1"> </a> </div> <div class="slide-box" > <a href="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/editais/editais-em-andamento/edital-no-03-2024-progep" target="_blank" rel="noopener noreferrer"> <img class="img-desktop" src="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/editalafastamento.png"> <img class="img-mobile" src="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/editalafastamento-b.png" alt="slide 1"> </a> </div> <div class="slide-box"> <a href="https://ufob.edu.br/jasouufob/servidores/desenvolvimentodepessoas/plano-de-desenvolvimento-de-pessoas-pdp-ufob-2024" target="_blank" rel="noopener noreferrer"> <img class="img-desktop" src="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/c-1.png"> <img class="img-mobile" src="https://ufob.edu.br/a-ufob/estrutura/pro-reitorias/progep/pdp2024b.png" alt="slide 1"> </a> </div> <div class="slide-box"> <a href="" target="_blank" rel="noopener noreferrer"> <img class="img-desktop" src="D1.png"> <img class="img-mobile" src="D2.png" alt="slide 1"> </a> </div> <div class="nav-auto"> <div class="auto-btn1"></div> <div class="auto-btn2"></div> <div class="auto-btn3"></div> <!-- <div class="auto-btn4"></div> --> </div> <div class="nav-manual"> <label for="radio1" class="manual-btn"></label> <label for="radio2" class="manual-btn"></label> <label for="radio3" class="manual-btn"></label> <!-- <label for="radio4" class="manual-btn"></label> --> </div> </div> </section> <script> var radio = document.querySelector('.manual-btn') var cont = 1 document.getElementById('radio1').checked = true setInterval(() => { proximaImg() }, 5000) function proximaImg() { cont++ if (cont > 4){ cont=1 } document.getElementById('radio'+cont).checked = true } </script> </body> </html>
Todo o conteúdo deste site está publicado sob a licença Creative Commons Atribuição-SemDerivações 3.0 Não Adaptada.