f0ckv2/public/js/rt.js

64 lines
1.6 KiB
JavaScript
Raw Normal View History

2019-05-07 20:23:19 +00:00
export default {
2019-05-19 01:45:45 +00:00
debug: true,
2019-05-07 20:23:19 +00:00
layout: {
margin: 6,
min_cols: 3,
min_rows: 4,
itemsize: 130
},
url: "//f0ck.me",
2019-05-15 17:51:11 +00:00
api: "//dev.f0ck.me/api",
vars: {
2019-05-19 01:45:45 +00:00
cd: 600,
block: "center"
2019-05-15 17:51:11 +00:00
},
2019-05-07 20:23:19 +00:00
tmp: {
2019-05-19 01:45:45 +00:00
layer: null,
_scroll: false,
get scroll() { console.log("get scroll"); return this._scroll; },
set scroll(val) { console.log("set scroll: " + val); this._scroll = val; },
events: {
page: true,
item: false
},
2019-05-15 17:51:11 +00:00
resize: null,
2019-05-19 01:45:45 +00:00
_hash: true,
get hash() { console.log("get hash"); return this._hash; },
set hash(val) { console.log("set hash: " + val); this._hash = val; }
2019-05-15 17:51:11 +00:00
},
items: {
first: null,
last: null,
newest: null,
oldest: null,
next: null,
prev: null,
act: null,
eps: 0
2019-05-07 20:23:19 +00:00
},
2019-05-15 17:51:11 +00:00
ct: {
content: document.querySelector("div#content"),
wrapper: {
pages: document.querySelectorAll("div.p_item"),
items: document.querySelectorAll("div.i_item")
},
tabs: {
item: document.querySelector("div#itemwrapper"),
howto: document.querySelector("div#howtowrapper")
},
arrows: document.querySelectorAll("div.arrow"),
2019-05-11 09:20:48 +00:00
header: {
iteminfo: document.querySelector("div#itemInfo"),
pagepos: document.querySelector("div#pagePosition"),
itempos: document.querySelector("div#itemPosition"),
infos: {
title: document.querySelector("span#itemTitle"),
source: document.querySelector("a#itemSource"),
time: document.querySelector("span#itemTime"),
nick: document.querySelector("span#itemNick"),
channel: document.querySelector("span#itemChannel")
}
2019-05-15 17:51:11 +00:00
}
2019-05-07 20:23:19 +00:00
}
};