Browse Source

Display warning when Javascript is disabled

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
8096e49c24
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 8
      src/webui/www/private/css/noscript.css
  2. 6
      src/webui/www/private/index.html
  3. 8
      src/webui/www/public/css/noscript.css
  4. 6
      src/webui/www/public/login.html
  5. 2
      src/webui/www/webui.qrc

8
src/webui/www/private/css/noscript.css

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
#desktop {
display: none;
}
#noscript {
color: #f00;
text-align: center;
}

6
src/webui/www/private/index.html

@ -13,6 +13,9 @@ @@ -13,6 +13,9 @@
<link rel="stylesheet" type="text/css" href="css/Layout.css?v=${VERSION}" />
<link rel="stylesheet" type="text/css" href="css/Window.css?v=${VERSION}" />
<link rel="stylesheet" type="text/css" href="css/Tabs.css?v=${VERSION}" />
<noscript>
<link rel="stylesheet" type="text/css" href="css/noscript.css?v=${VERSION}" />
</noscript>
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.js"></script>
<script src="scripts/lib/mocha-0.9.6-yc.js"></script>
@ -26,6 +29,9 @@ @@ -26,6 +29,9 @@
</head>
<body>
<noscript id="noscript">
<h1>QBT_TR(JavaScript Required! You must enable JavaScript for the Web UI to work properly)QBT_TR[CONTEXT=HttpServer]</h1>
</noscript>
<div id="desktop">
<div id="desktopHeader">
<!--<div id="desktopTitlebar">

8
src/webui/www/public/css/noscript.css

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
#formplace {
display: none;
}
#noscript {
color: #f00;
text-align: center;
}

6
src/webui/www/public/login.html

@ -6,6 +6,9 @@ @@ -6,6 +6,9 @@
<title>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</title>
<link rel="icon" type="image/png" href="images/skin/qbittorrent32.png" />
<link rel="stylesheet" type="text/css" href="css/login.css?v=${VERSION}" />
<noscript>
<link rel="stylesheet" type="text/css" href="css/noscript.css?v=${VERSION}" />
</noscript>
<script>
'use strict';
@ -50,6 +53,9 @@ @@ -50,6 +53,9 @@
</head>
<body>
<noscript id="noscript">
<h1>QBT_TR(JavaScript Required! You must enable JavaScript for the Web UI to work properly)QBT_TR[CONTEXT=HttpServer]</h1>
</noscript>
<div id="main">
<h1>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</h1>
<div id="logo" class="col">

2
src/webui/www/webui.qrc

@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
<file>private/css/Core.css</file>
<file>private/css/dynamicTable.css</file>
<file>private/css/Layout.css</file>
<file>private/css/noscript.css</file>
<file>private/css/style.css</file>
<file>private/css/Tabs.css</file>
<file>private/css/Window.css</file>
@ -48,6 +49,7 @@ @@ -48,6 +49,7 @@
<file>private/upload.html</file>
<file>private/uploadlimit.html</file>
<file>public/css/login.css</file>
<file>public/css/noscript.css</file>
<file>public/login.html</file>
</qresource>
</RCC>

Loading…
Cancel
Save