From b9e8284334773aa6ff54c9f0c12bb985c81a7de8 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 25 Feb 2021 04:29:23 +0300 Subject: [PATCH] fix small devices view --- _media/js/game.js | 9 ++++++++- index.html | 10 +++++----- 2 files changed, 13 insertions(+), 6 deletions(-) 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 @@