f0ckv2/public/js/rt.js
2019-05-15 17:51:11 +00:00

54 lines
1.3 KiB
JavaScript

export default {
layout: {
margin: 6,
min_cols: 3,
min_rows: 4,
itemsize: 130
},
url: "//f0ck.me",
api: "//dev.f0ck.me/api",
vars: {
cd: 700,
block: "start"
},
tmp: {
scroll: false,
resize: null,
hash: true
},
items: {
first: null,
last: null,
newest: null,
oldest: null,
next: null,
prev: null,
act: null,
eps: 0
},
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"),
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")
}
}
}
};