2009-11-25 13:09:14 +03:00
|
|
|
<!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">
|
|
|
|
<head>
|
2014-12-14 12:00:00 +03:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2014-12-17 14:58:32 +03:00
|
|
|
<title>QBT_TR(Torrent Download Speed Limiting)QBT_TR</title>
|
2014-12-14 12:00:00 +03:00
|
|
|
<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-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/parametrics.js" charset="utf-8"></script>
|
2009-11-25 13:09:14 +03:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-12-14 12:00:00 +03:00
|
|
|
<div style="width: 100%; text-align: center; margin: 0 auto; overflow: hidden">
|
2009-11-25 13:09:14 +03:00
|
|
|
<div id="dllimitSlider" class="slider">
|
2014-12-17 14:58:32 +03:00
|
|
|
<div id="dllimitUpdate" class="update">QBT_TR(Download limit:)QBT_TR <input id="dllimitUpdatevalue" size="6" placeholder="∞" style="text-align: center;"> <span id="dlLimitUnit">QBT_TR(KiB/s)QBT_TR</span></div>
|
2014-12-14 12:00:00 +03:00
|
|
|
<div class="sliderWrapper">
|
|
|
|
<div id="dllimitSliderknob" class="sliderknob"></div>
|
|
|
|
<div id="dllimitSliderarea" class="sliderarea"></div>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
2009-11-25 13:09:14 +03:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
2014-12-14 12:00:00 +03:00
|
|
|
var hash = new URI().getData('hash');
|
|
|
|
setDlLimit = function() {
|
|
|
|
var limit = $("dllimitUpdatevalue").value.toInt() * 1024;
|
|
|
|
if (hash == "global") {
|
|
|
|
new Request({
|
|
|
|
url: 'command/setGlobalDlLimit',
|
|
|
|
method: 'post',
|
|
|
|
data: {
|
|
|
|
'limit': limit
|
|
|
|
},
|
|
|
|
onComplete: function() {
|
2015-01-06 23:24:54 +03:00
|
|
|
window.parent.updateMainData();
|
2014-12-14 12:00:00 +03:00
|
|
|
window.parent.closeWindows();
|
|
|
|
}
|
|
|
|
}).send();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
new Request({
|
|
|
|
url: 'command/setTorrentDlLimit',
|
|
|
|
method: 'post',
|
|
|
|
data: {
|
|
|
|
'hash': hash,
|
|
|
|
'limit': limit
|
|
|
|
},
|
|
|
|
onComplete: function() {
|
|
|
|
window.parent.closeWindows();
|
|
|
|
}
|
|
|
|
}).send();
|
|
|
|
}
|
|
|
|
}
|
2009-11-25 13:09:14 +03:00
|
|
|
</script>
|
2014-12-17 14:58:32 +03:00
|
|
|
<input type="button" value="QBT_TR(Apply)QBT_TR" onclick="setDlLimit()"/>
|
2009-11-25 13:09:14 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2014-12-14 12:00:00 +03:00
|
|
|
MochaUI.addDlLimitSlider(hash);
|
2009-11-25 13:09:14 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
2012-06-10 21:15:57 +04:00
|
|
|
</html>
|