clarify comment numbers

This commit is contained in:
O-01-67 2022-07-24 17:40:26 -04:00 committed by GitHub
parent 3babbfb0e4
commit c85d8fefc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,8 @@ urlParams = new URLSearchParams(window.location.search);
if(urlParams.get('pixelSize') != null) { //null check
pixelSize = urlParams.get('pixelSize')
if(isNaN(pixelSize) || pixelSize === "" || pixelSize === null) { //NaN check
// Vanilla code: If the screen size is under 768px, set pixelSize to 5, otherwise 6
//Vanilla code
//[Vanilla comment] If the screen size is under 768px, set pixelSize to 5, otherwise 6
if (window.innerWidth < 700) {
pixelSize = 5;
} else {
@ -17,7 +18,8 @@ if(urlParams.get('pixelSize') != null) { //null check
pixelSize = parseFloat(pixelSize)
pixelSize = Math.min(194.73749999999999,Math.max(pixelSize,0.05))
} else {
// Vanilla code: If the screen size is under 768px, set pixelSize to 5, otherwise 6
//Vanilla code
//[Vanilla comment] If the screen size is under 768px, set pixelSize to 5, otherwise 6
if (window.innerWidth < 700) {
pixelSize = 5;
} else {