UNPKG

ets2-dashboard-skin

Version:
66 lines (58 loc) 1.92 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link href="icons/icons.css" rel="stylesheet"> <title>Euro Truck Simulator 2 dashboard</title> </head> <body> <div id="app" class="container-fluid"></div> <noscript> <strong>We're sorry but client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> </body> <script> /*$( function () { var noSleep = new NoSleep(); $( 'html' ).on( 'click', '#overlay', function () { //console.log( 'Plop' ); var elem = document.querySelector( 'html' ); /!* View in fullscreen *!/ function openFullscreen() { if ( elem.requestFullscreen ) { elem.requestFullscreen(); } else if ( elem.mozRequestFullScreen ) { /!* Firefox *!/ elem.mozRequestFullScreen(); } else if ( elem.webkitRequestFullscreen ) { /!* Chrome, Safari and Opera *!/ elem.webkitRequestFullscreen(); } else if ( elem.msRequestFullscreen ) { /!* IE/Edge *!/ elem.msRequestFullscreen(); } noSleep.enable(); } /!* Close fullscreen *!/ function closeFullscreen() { if ( document.exitFullscreen ) { document.exitFullscreen(); } else if ( document.mozCancelFullScreen ) { /!* Firefox *!/ document.mozCancelFullScreen(); } else if ( document.webkitExitFullscreen ) { /!* Chrome, Safari and Opera *!/ document.webkitExitFullscreen(); } else if ( document.msExitFullscreen ) { /!* IE/Edge *!/ document.msExitFullscreen(); } noSleep.disable(); } if ( !document.webkitIsFullScreen ) { openFullscreen(); } else { closeFullscreen(); } } ); } );*/ </script> </html>