Skip to content

Commit

Permalink
Update mobile error message to use h1 for better prominence and add l…
Browse files Browse the repository at this point in the history
…ine break
  • Loading branch information
amit712singhal committed Oct 31, 2024
1 parent ef5e376 commit 88fa024
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit 88fa024

Please sign in to comment.