-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atualizações javaScript no site do ror
- Loading branch information
Showing
6 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$(function() { | ||
var delay = 7; | ||
var currentBackground = 0; | ||
var maxBackground = $('.background').length - 1; | ||
|
||
initBackground(); | ||
changeBackground(); | ||
|
||
function initBackground() { | ||
$('.background').hide(); | ||
$('.background').eq(currentBackground).show(); | ||
} | ||
|
||
function changeBackground() { | ||
setInterval(function() { | ||
$('.background').eq(currentBackground).fadeOut(3000); | ||
currentBackground++; | ||
if (currentBackground > maxBackground) { | ||
currentBackground = 0; | ||
} | ||
$('.background').eq(currentBackground).fadeIn(3000) | ||
}, delay * 1000) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$(function() { | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
|
||
<body> | ||
<!--Background da página--> | ||
<img src="assets/img/backgrounds/background3.jpg" alt="background-image" class="background"> | ||
<img src="assets/img/backgrounds/background2.jpg" alt="background-image" class="background"> | ||
<img src="assets/img/backgrounds/background.jpg" alt="background-image" class="background"> | ||
|
||
<!--Header com uso do Bootstrap--> | ||
|
@@ -120,31 +122,31 @@ <h2 class="titulo bg-fosco">Sobreviventes</h2> | |
<!--Seleção dos sobreviventes--> | ||
<div class="container-seletor"> | ||
<a href="#arti"> | ||
<div class="seletor hover-scale bg-fosco"> | ||
<div class="seletor hover-scale-survivor bg-fosco"> | ||
<img src="assets/img/sobreviventes/arti.webp" alt="Artífice"> | ||
<h4>Artífice</h4> | ||
</div> | ||
</a> | ||
</div> | ||
<div class="container-seletor"> | ||
<a href="#caca"> | ||
<div class="seletor hover-scale bg-fosco"> | ||
<div class="seletor hover-scale-survivor bg-fosco"> | ||
<img src="assets/img/sobreviventes/caca.webp" alt="Caçadora"> | ||
<h4>Caçadora</h4> | ||
</div> | ||
</a> | ||
</div> | ||
<div class="container-seletor"> | ||
<a href="#coma"> | ||
<div class="seletor hover-scale bg-fosco"> | ||
<div class="seletor hover-scale-survivor bg-fosco"> | ||
<img src="assets/img/sobreviventes/coma.webp" alt="Comando"> | ||
<h4>Comando</h4> | ||
</div> | ||
</a> | ||
</div> | ||
<div class="container-seletor"> | ||
<a href="#enge"> | ||
<div class="seletor hover-scale bg-fosco"> | ||
<div class="seletor hover-scale-survivor bg-fosco"> | ||
<img src="assets/img/sobreviventes/enge.webp" alt="Engenheiro"> | ||
<h4>Engenheiro</h4> | ||
</div> | ||
|
@@ -422,6 +424,12 @@ <h6 class="footer-texto">© Copyright 2012 - 2023 Hopoo Games, LLC</h6> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" | ||
crossorigin="anonymous"></script> | ||
<!--Link do jQuery--> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" | ||
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<!--Link do meu script--> | ||
<script src="assets/js/scripts.js"></script> | ||
</body> | ||
|
||
</html> |