|
|
@ -628,7 +628,7 @@ function init_second_stage() {
|
|
|
|
var hotkeys = getInitParam("hotkeys");
|
|
|
|
var hotkeys = getInitParam("hotkeys");
|
|
|
|
var tmp = [];
|
|
|
|
var tmp = [];
|
|
|
|
|
|
|
|
|
|
|
|
for (sequence in hotkeys[1]) {
|
|
|
|
for (var sequence in hotkeys[1]) {
|
|
|
|
filtered = sequence.replace(/\|.*$/, "");
|
|
|
|
filtered = sequence.replace(/\|.*$/, "");
|
|
|
|
tmp[filtered] = hotkeys[1][sequence];
|
|
|
|
tmp[filtered] = hotkeys[1][sequence];
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -752,7 +752,7 @@ function parse_runtime_info(data) {
|
|
|
|
|
|
|
|
|
|
|
|
//console.log("parsing runtime info...");
|
|
|
|
//console.log("parsing runtime info...");
|
|
|
|
|
|
|
|
|
|
|
|
for (k in data) {
|
|
|
|
for (var k in data) {
|
|
|
|
var v = data[k];
|
|
|
|
var v = data[k];
|
|
|
|
|
|
|
|
|
|
|
|
// console.log("RI: " + k + " => " + v);
|
|
|
|
// console.log("RI: " + k + " => " + v);
|
|
|
@ -899,7 +899,7 @@ function hotkey_handler(e) {
|
|
|
|
var hotkey_action = false;
|
|
|
|
var hotkey_action = false;
|
|
|
|
var hotkeys = getInitParam("hotkeys");
|
|
|
|
var hotkeys = getInitParam("hotkeys");
|
|
|
|
|
|
|
|
|
|
|
|
for (sequence in hotkeys[1]) {
|
|
|
|
for (var sequence in hotkeys[1]) {
|
|
|
|
if (sequence == hotkey) {
|
|
|
|
if (sequence == hotkey) {
|
|
|
|
hotkey_action = hotkeys[1][sequence];
|
|
|
|
hotkey_action = hotkeys[1][sequence];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1076,11 +1076,11 @@ function update_random_feed() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function hash_get(key) {
|
|
|
|
function hash_get(key) {
|
|
|
|
kv = window.location.hash.substring(1).toQueryParams();
|
|
|
|
var kv = window.location.hash.substring(1).toQueryParams();
|
|
|
|
return kv[key];
|
|
|
|
return kv[key];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function hash_set(key, value) {
|
|
|
|
function hash_set(key, value) {
|
|
|
|
kv = window.location.hash.substring(1).toQueryParams();
|
|
|
|
var kv = window.location.hash.substring(1).toQueryParams();
|
|
|
|
kv[key] = value;
|
|
|
|
kv[key] = value;
|
|
|
|
window.location.hash = $H(kv).toQueryString();
|
|
|
|
window.location.hash = $H(kv).toQueryString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|