This commit is contained in:
SBD
2024-02-20 17:35:01 +03:00
parent c623d69767
commit fafee63a64
4 changed files with 35 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ function getTypeOfData (data) {
}
function getInfoAboutUser (){
function getInfoAboutUser (screen_width){
let user_type = ''
if (screen.width <= 700){
user_type = 'mobile'
@@ -141,7 +141,11 @@ function getInfoAboutUser (){
} else if (screen.width > 700 && screen.width <= 1180) {
user_type = 'laptop'
}
return user_type
if (screen_width){
return screen.width
} else {
return user_type
}
}
document.addEventListener('DOMContentLoaded', function() {