Skip to content

Commit e7466ca

Browse files
committed
Fix safari not working
1 parent a362df4 commit e7466ca

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

css/style.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ h2{
9898

9999
.center-wrapper{
100100
width: 100vw;
101-
height: 100vh;;
101+
height: 100vh;
102102
display: flex;
103103
justify-content: center;
104104
align-items: center;
@@ -181,7 +181,7 @@ h2{
181181
overflow: hidden;
182182
}
183183

184-
#character{
184+
#character1{
185185
width: 90px;
186186
position: absolute;
187187
bottom: 300px;
@@ -395,7 +395,6 @@ h2{
395395
top: -170px;
396396
width: 1400px;
397397
height: 55px;
398-
border: 1px solid red;
399398
}
400399

401400
[data-info="vscode"]{

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<body>
1515
<div class="center-wrapper">
1616
<div class="wrapper">
17-
<img src="links/character/notMoving@2x.png" alt="character" id="character">
17+
<img src="links/character/notMoving@2x.png" alt="character" id="character1">
1818
<div id="music-switch" onclick="backgroundMusicSwitch()"></div>
1919
<a href="https://github.com/yannick1691/jquaryGame" target="_blank" class="github"><img src="links/icons/Octocat.png" height="55" alt="github"></a>
2020
<div class="guide">
@@ -116,7 +116,7 @@ <h3 data-info="digitaloceanh3">server</h3>
116116
<audio src="links/music/denied.wav" css="hidden" data-music="denied"></audio>
117117
<script>
118118
const noAcces = document.querySelector('audio[data-music="denied"]'); // select's the no acces mp3
119-
const character = document.querySelector('#character'); // pretty straight forward selects the character
119+
const character = document.querySelector('#character1'); // pretty straight forward selects the character
120120
const musicSwitch = document.querySelector('#music-switch'); // defines the music switch button to change music on click
121121
const container = document.querySelector('body'); // sets the variable container to absolute body
122122
const scene = document.querySelector('.wrapper'); // define's the wrapper (basicly the canvas)

0 commit comments

Comments
 (0)