summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorringmaster <epithet@gmail.com>2013-12-05 09:19:46 -0500
committerringmaster <epithet@gmail.com>2013-12-05 09:19:46 -0500
commitbdab0409c4e47a2df112196de915a06d208293ce (patch)
treecd0a9401fc339202de232b29043a940a815b336e
parent125dff89975e84a3dddcdd93afb5babd096e9cc1 (diff)
downloadnextcloud-server-bdab0409c4e47a2df112196de915a06d208293ce.tar.gz
nextcloud-server-bdab0409c4e47a2df112196de915a06d208293ce.zip
Add overlay noscript message to fix #6032
-rw-r--r--core/css/styles.css21
-rw-r--r--core/templates/layout.user.php1
2 files changed, 22 insertions, 0 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index fa001d41c2c..0ed4cf36c91 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -46,6 +46,27 @@ body { background:#fefefe; font:normal .8em/1.6em "Helvetica Neue",Helvetica,Ari
opacity: 1;
}
+#nojavascript {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ z-index: 999;
+ width: 100%;
+ text-align: center;
+ background-color: rgba(50,0,0,0.5);
+ color: white;
+ text-shadow: 0px 0px 5px black;
+ line-height: 125%;
+ font-size: x-large;
+}
+#nojavascript div {
+ width: 50%;
+ top: 50%;
+ position: absolute;
+ left: 50%;
+ margin-left: -25%;
+}
+
/* INPUTS */
input[type="text"],
input[type="password"],
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 9e1d8022ecb..7492af799b3 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -37,6 +37,7 @@
</head>
<body id="<?php p($_['bodyid']);?>">
+ <noscript><div id="nojavascript"><div>ownCloud requires JavaScript to be enabled for correct operation. Please enable JavaScript and re-load this interface.</div></div></noscript>
<div id="notification-container">
<div id="notification"></div>
<?php if ($_['updateAvailable']): ?>