1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Display warning when Javascript is disabled

This commit is contained in:
Chocobo1 2019-01-29 16:53:46 +08:00
parent 32474b05c5
commit 8096e49c24
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
5 changed files with 30 additions and 0 deletions

View File

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

View File

@ -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 @@
</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">

View File

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

View File

@ -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 @@
</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">

View File

@ -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 @@
<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>