yunkong2.kodi/admin/index.html
2018-09-24 00:50:31 +08:00

70 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<link rel="stylesheet" type="text/css" href="../../lib/css/themes/jquery-ui/redmond/jquery-ui.min.css"/>
<script type="text/javascript" src="../../lib/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../socket.io/socket.io.js"></script>
<script type="text/javascript" src="../../lib/js/jquery-ui-1.10.3.full.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../css/adapter.css"/>
<script type="text/javascript" src="../../js/translate.js"></script>
<script type="text/javascript" src="../../js/adapter-settings.js"></script>
<script type="text/javascript">
systemDictionary = {
"Kodi adapter settings":{"de": "Kodi adapter settings", "ru": "Настройки драйвера Kodi"},
"Kodi webserver settings":{"de": "Kodi webserver settings", "ru": "Настройки вебсервера Kodi"},
"Login:": {"en": "Login:", "de": "Login:", "ru": "Логин:"},
"Password:": {"en": "Password:", "de": "Password:", "ru": "Пароль:"},
"IP:": {"en": "IP Adress:", "de": "IP Adress:", "ru": "IP Adress KODI:"},
"PortRPC:": {"en": "Port jsonrpc", "de": "Port jsonrpc", "ru": "Порт jsonrpc:"},
"PortWeb:": {"en": "Port Webserver KODI", "de": "Port Webserver KODI", "ru": "Port Webserver KODI:"},
"default:": {"en": "default 9090", "de": "default 9090", "ru": "по умолчанию 9090"},
"on save adapter restarts with new config immediately": {
"de": "Beim Speichern von Einstellungen der Adapter wird sofort neu gestartet.",
"ru": "Сразу после сохранения настроек драйвер перезапуститься с новыми значениями"
}
};
function load(settings, onChange) {
for (var key in settings) {
if ($('#' + key + '.value').attr('type') == 'checkbox') {
$('#' + key + '.value').prop('checked', settings[key]).change(function () {
onChange();
});
} else {
$('#' + key + '.value').val(settings[key]).change(function () {
onChange();
}).keyup(function () {
$(this).trigger('change');
});
}
}
onChange(false);
}
function save(callback) {
var obj = {};
$('.value').each(function () {
var $this = $(this);
obj[$this.attr('id')] = $this.val();
});
callback(obj);
}
</script>
<div id="adapter-container">
<table><tr>
<td><img src="kodi.png"/></td>
</tr></table>
<h4 class="translate">Kodi adapter settings</h4>
<table>
<tr><td class="translate">IP:</td><td> <input class="value" id="ip"/></td></tr>
<tr><td class="translate">PortRPC:</td><td> <input class="value" id="port"/><td class="translate">default:</td></tr>
<tr><td colspan='2'><h4 class="translate">Kodi webserver settings</h4></td></tr>
<tr><td class="translate">PortWeb:</td><td> <input class="value" id="portweb"/></td> </tr>
<tr><td class="translate">Login:</td><td> <input class="value" id="login"/></td></tr>
<tr><td class="translate">Password:</td><td> <input type="password" class="value" id="password"/></td></tr>
</table>
<p class="translate">on save adapter restarts with new config immediately</p>
</div>
</html>