diff options
-rw-r--r-- | core/css/styles.css | 4 | ||||
-rw-r--r-- | core/templates/layout.base.php | 1 | ||||
-rw-r--r-- | core/templates/layout.guest.php | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css index a7f63e8492e..ff8cdba55b6 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -39,7 +39,7 @@ body { #nojavascript { - position: absolute; + position: fixed; top: 0; bottom: 0; z-index: 9000; @@ -54,7 +54,7 @@ body { display: block; position: relative; width: 50%; - top: 30%; + top: 35%; margin: 0px auto; } #nojavascript a { diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index 127e99be84d..009cfe21c3f 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -31,6 +31,7 @@ <?php endforeach; ?> </head> <body id="body-public"> + <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript> <?php print_unescaped($_['content']); ?> </body> </html> diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 00950802fec..64546dcc01c 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -33,6 +33,7 @@ <?php endforeach; ?> </head> <body id="body-login"> + <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript> <div class="wrapper"><!-- for sticky footer --> <div class="v-align"><!-- vertically centred box --> <header><div id="header"> |