From 88fa024583c50cd371e335876f0b72beb054e123 Mon Sep 17 00:00:00 2001 From: amit712singhal Date: Thu, 31 Oct 2024 17:07:51 +0530 Subject: [PATCH] Update mobile error message to use h1 for better prominence and add line break --- js/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index 344aaae..3f71fdc 100644 --- a/js/app.js +++ b/js/app.js @@ -17,11 +17,12 @@ document.addEventListener( 'DOMContentLoaded', () => { const errorHeading = errorSection.querySelector( '.mobile-error' ); - const mobileMessage = document.createElement( 'h4' ); - mobileMessage.className = 'mobile-error-message body-1'; + const mobileMessage = document.createElement( 'h1' ); + mobileMessage.className = 'mobile-error-message'; mobileMessage.textContent = 'ERROR: 170V380085'; - + const lineBreak = document.createElement( 'br' ); errorHeading.replaceWith( mobileMessage ); + mobileMessage.after( lineBreak ); } const cursorDot = document.querySelector( '.cursor-dot' );