diff --git a/_media/js/game.js b/_media/js/game.js index 3fdc4eb..40d6a96 100644 --- a/_media/js/game.js +++ b/_media/js/game.js @@ -35,7 +35,7 @@ function generateKeyboard(layout) layout.split('').forEach(function(letter) { - keyboardHtmlStr = keyboardHtmlStr + ''; }) @@ -123,4 +123,11 @@ window.onload = function() // fix load empty word // if (gameWord === 0) { document.location.reload(true); } + + if (window.screen.availWidth <= 599) + { + document.querySelector('#lives').classList.remove('error'); + document.querySelector('#lives').classList.add('dark'); + alert(599); + } } diff --git a/index.html b/index.html index cad2ec9..10a3299 100644 --- a/index.html +++ b/index.html @@ -25,11 +25,11 @@