mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Follow project coding style. Issue #2192.
This commit is contained in:
parent
16dcf39823
commit
9bd24a1408
@ -1,52 +1,60 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<title>_(Torrent Download Speed Limiting)</title>
|
<title>_(Torrent Download Speed Limiting)</title>
|
||||||
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
||||||
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript" src="scripts/mocha-yc.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mocha-yc.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript" src="scripts/parametrics.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/parametrics.js" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div style="width: 100%; text-align: center; margin: 0 auto; overflow: hidden">
|
<div style="width: 100%; text-align: center; margin: 0 auto; overflow: hidden">
|
||||||
<div id="dllimitSlider" class="slider">
|
<div id="dllimitSlider" class="slider">
|
||||||
<div id="dllimitUpdate" class="update">_(Download limit:) <input id="dllimitUpdatevalue" size="6" placeholder="∞" style="text-align: center;"> <span id="dlLimitUnit">_(KiB/s)</span></div>
|
<div id="dllimitUpdate" class="update">_(Download limit:) <input id="dllimitUpdatevalue" size="6" placeholder="∞" style="text-align: center;"> <span id="dlLimitUnit">_(KiB/s)</span></div>
|
||||||
<div class="sliderWrapper">
|
<div class="sliderWrapper">
|
||||||
<div id="dllimitSliderknob" class="sliderknob"></div>
|
<div id="dllimitSliderknob" class="sliderknob"></div>
|
||||||
<div id="dllimitSliderarea" class="sliderarea"></div>
|
<div id="dllimitSliderarea" class="sliderarea"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var hash = new URI().getData('hash');
|
var hash = new URI().getData('hash');
|
||||||
setDlLimit = function() {
|
setDlLimit = function() {
|
||||||
var limit = $("dllimitUpdatevalue").value.toInt() * 1024;
|
var limit = $("dllimitUpdatevalue").value.toInt() * 1024;
|
||||||
if(hash == "global") {
|
if (hash == "global") {
|
||||||
new Request({url: 'command/setGlobalDlLimit',
|
new Request({
|
||||||
method: 'post',
|
url: 'command/setGlobalDlLimit',
|
||||||
data: {'limit': limit},
|
method: 'post',
|
||||||
onComplete: function() {
|
data: {
|
||||||
window.parent.closeWindows();
|
'limit': limit
|
||||||
}
|
},
|
||||||
}).send();
|
onComplete: function() {
|
||||||
} else {
|
window.parent.closeWindows();
|
||||||
new Request({url: 'command/setTorrentDlLimit',
|
}
|
||||||
method: 'post',
|
}).send();
|
||||||
data: {'hash': hash, 'limit': limit},
|
}
|
||||||
onComplete: function() {
|
else {
|
||||||
window.parent.closeWindows();
|
new Request({
|
||||||
}
|
url: 'command/setTorrentDlLimit',
|
||||||
}).send();
|
method: 'post',
|
||||||
}
|
data: {
|
||||||
}
|
'hash': hash,
|
||||||
|
'limit': limit
|
||||||
|
},
|
||||||
|
onComplete: function() {
|
||||||
|
window.parent.closeWindows();
|
||||||
|
}
|
||||||
|
}).send();
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<input type="button" value="_(Apply)" onclick="setDlLimit()"/>
|
<input type="button" value="_(Apply)" onclick="setDlLimit()"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
MochaUI.addDlLimitSlider(hash);
|
MochaUI.addDlLimitSlider(hash);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -1,52 +1,60 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<title>_(Torrent Upload Speed Limiting)</title>
|
<title>_(Torrent Upload Speed Limiting)</title>
|
||||||
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
||||||
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mootools-1.2-more.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript" src="scripts/mocha-yc.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mocha-yc.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript" src="scripts/parametrics.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/parametrics.js" charset="utf-8"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div style="width: 100%; text-align: center; margin: 0 auto; overflow: hidden">
|
<div style="width: 100%; text-align: center; margin: 0 auto; overflow: hidden">
|
||||||
<div id="uplimitSlider" class="slider">
|
<div id="uplimitSlider" class="slider">
|
||||||
<div id="uplimitUpdate" class="update">_(Upload limit:) <input id="uplimitUpdatevalue" size="6" placeholder="∞" style="text-align: center;"> <span id="upLimitUnit">_(KiB/s)</span></div>
|
<div id="uplimitUpdate" class="update">_(Upload limit:) <input id="uplimitUpdatevalue" size="6" placeholder="∞" style="text-align: center;"> <span id="upLimitUnit">_(KiB/s)</span></div>
|
||||||
<div class="sliderWrapper">
|
<div class="sliderWrapper">
|
||||||
<div id="uplimitSliderknob" class="sliderknob"></div>
|
<div id="uplimitSliderknob" class="sliderknob"></div>
|
||||||
<div id="uplimitSliderarea" class="sliderarea"></div>
|
<div id="uplimitSliderarea" class="sliderarea"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var hash = new URI().getData('hash');
|
var hash = new URI().getData('hash');
|
||||||
setUpLimit = function() {
|
setUpLimit = function() {
|
||||||
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
|
var limit = $("uplimitUpdatevalue").value.toInt() * 1024;
|
||||||
if(hash == "global") {
|
if (hash == "global") {
|
||||||
new Request({url: 'command/setGlobalUpLimit',
|
new Request({
|
||||||
method: 'post',
|
url: 'command/setGlobalUpLimit',
|
||||||
data: {'limit': limit},
|
method: 'post',
|
||||||
onComplete: function() {
|
data: {
|
||||||
window.parent.closeWindows();
|
'limit': limit
|
||||||
}
|
},
|
||||||
}).send();
|
onComplete: function() {
|
||||||
}else {
|
window.parent.closeWindows();
|
||||||
new Request({url: 'command/setTorrentUpLimit',
|
}
|
||||||
method: 'post',
|
}).send();
|
||||||
data: {'hash': hash, 'limit': limit},
|
}
|
||||||
onComplete: function() {
|
else {
|
||||||
window.parent.closeWindows();
|
new Request({
|
||||||
}
|
url: 'command/setTorrentUpLimit',
|
||||||
}).send();
|
method: 'post',
|
||||||
}
|
data: {
|
||||||
}
|
'hash': hash,
|
||||||
|
'limit': limit
|
||||||
|
},
|
||||||
|
onComplete: function() {
|
||||||
|
window.parent.closeWindows();
|
||||||
|
}
|
||||||
|
}).send();
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<input type="button" value="_(Apply)" onclick="setUpLimit()"/>
|
<input type="button" value="_(Apply)" onclick="setUpLimit()"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
MochaUI.addUpLimitSlider(hash);
|
MochaUI.addUpLimitSlider(hash);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user