Skip to content

Commit

Permalink
fix typo in js
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSand committed Dec 6, 2023
1 parent 69d589f commit 7e097c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,17 @@ function changeSize(){
$('#row_1_cake').width(width)
$('#row_1_keyboard').height(height)
$('#row_1_keyboard').width(width)

if(height/width>1.5){
window.location.reload()
}
}
changeSize()
window.addEventListener('resize', function(event) {
changeSize()
if(height/width>1.5){
window.location.reload()
}
// if(height/width>1.5){
// window.location.reload()
// }
}, false);

// $(window).resize(function() {
Expand Down

0 comments on commit 7e097c5

Please sign in to comment.