Skip to content

Commit

Permalink
change bakhground img
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubmamouni committed Nov 26, 2021
1 parent baa59b6 commit b8aa5cc
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
Binary file removed public/images/site-pics/img.jpg
Binary file not shown.
Binary file added public/images/site-pics/marrakech.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion public/styles/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/styles/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion public/styles/sass/page/_play.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ body {
overflow: hidden;
user-select: none;
}
body:-webkit-full-screen {
width: 100%;
height: 100%;
}

.clicks-couner-card {
@extend %flexbox;
Expand Down Expand Up @@ -79,7 +83,7 @@ body {
position: absolute;
width: 100%;
height: 100%;
background-image: url(../../../images/site-pics/img.jpg);
background-image: url(../../../images/site-pics/marrakech.jpg);
background-size: cover;
background-repeat: no-repeat;
}
Expand Down
13 changes: 10 additions & 3 deletions views/play.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" id="player3">

<head>
<%- include('./partials/__head.ejs') %>
Expand All @@ -12,7 +12,7 @@
</script>
</head>

<body>
<body onload="goFullscreen('player');">

<div class="clicks-couner-card">
<div class="user-click-counter">
Expand Down Expand Up @@ -130,7 +130,14 @@
})
document.documentElement.requestFullscreen()
function goFullscreen() {
var element = document.getElementById("player3");
if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
</script>
</body>

Expand Down

0 comments on commit b8aa5cc

Please sign in to comment.