Nouvelle vidéo et bouton de volume
This commit is contained in:
parent
91646d43c8
commit
401650e7f5
@ -180,6 +180,8 @@ header.masthead {
|
|||||||
header.masthead a {
|
header.masthead a {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 2rem; }
|
bottom: 2rem; }
|
||||||
|
header.masthead .video-sound {
|
||||||
|
right: 1rem; }
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
header.masthead {
|
header.masthead {
|
||||||
height: 100%; }
|
height: 100%; }
|
||||||
|
File diff suppressed because one or more lines are too long
24
index.html
24
index.html
@ -65,13 +65,17 @@
|
|||||||
|
|
||||||
<header class="masthead">
|
<header class="masthead">
|
||||||
<video autoplay loop muted>
|
<video autoplay loop muted>
|
||||||
<source src="video/intro.webm" type="video/webm">
|
<source src="video/1_Compilation_Graphique.webm" type="video/webm">
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
<a class="btn btn-default btn-xl" href="#about">
|
<a class="btn btn-default btn-xl" href="#about">
|
||||||
<i class="fa fa-angle-down" aria-hidden="true"></i>
|
<i class="fa fa-angle-down" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<a class="btn btn-default video-sound">
|
||||||
|
<i class="fa fa-volume-off" aria-hidden="true"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="bg-primary" id="about">
|
<section class="bg-primary" id="about">
|
||||||
@ -215,6 +219,24 @@
|
|||||||
<!-- Custom scripts for this template -->
|
<!-- Custom scripts for this template -->
|
||||||
<script src="js/creative.min.js"></script>
|
<script src="js/creative.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$("video").prop('muted', true);
|
||||||
|
|
||||||
|
$(".video-sound").click(function () {
|
||||||
|
if ($("video").prop('muted')) {
|
||||||
|
$("video").prop('muted', false);
|
||||||
|
$(this) > $(".fa").addClass('fa-volume-up');
|
||||||
|
$(this) > $(".fa").removeClass('fa-volume-off');
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$("video").prop('muted', true);
|
||||||
|
$(this) > $(".fa").removeClass('fa-volume-up');
|
||||||
|
$(this) > $(".fa").addClass('fa-volume-off');
|
||||||
|
}
|
||||||
|
console.log($("video").prop('muted'))
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -43,6 +43,9 @@ header.masthead {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 2rem;
|
bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
.video-sound {
|
||||||
|
right: 1rem;
|
||||||
|
}
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.header-content {
|
.header-content {
|
||||||
|
BIN
video/1_Compilation_Graphique.webm
Normal file
BIN
video/1_Compilation_Graphique.webm
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user