Skip to content

Commit

Permalink
lint and disable lint in many html files, phetsims/chipper#1405
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 7, 2023
1 parent 6af9e86 commit f35e04e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions util/window-size.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
<body>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$( document ).ready( function( e ) {
$( document ).ready( () => {
showViewportSize();
} );
$( window ).resize( function( e ) {
$( window ).resize( () => {
showViewportSize();
} );

function showViewportSize() {
var the_width = $( window ).width();
var the_height = $( window ).height();
const the_width = $( window ).width();
const the_height = $( window ).height();
$( '#width' ).text( the_width );
$( '#height' ).text( the_height );
}
Expand Down

0 comments on commit f35e04e

Please sign in to comment.