worked on a lot of things
This commit is contained in:
@@ -23,13 +23,25 @@
|
||||
|
||||
const desktophomemargin = $(".header-1")[0].getBoundingClientRect().width
|
||||
|
||||
// height of scrollbar at bottom
|
||||
const bottomScrollHeight = (_ => {
|
||||
if (wih / vh > 1.5) {
|
||||
return 0
|
||||
} else {
|
||||
let bs = wih - vh
|
||||
return bs
|
||||
}
|
||||
})()
|
||||
|
||||
const cssWidths = {
|
||||
vw: vw,
|
||||
wow: wow,
|
||||
wiw: wiw,
|
||||
bw: bw,
|
||||
desktophomemargin: desktophomemargin
|
||||
desktophomemargin: desktophomemargin,
|
||||
wih: wih,
|
||||
vh: vh,
|
||||
bottomScrollHeight: bottomScrollHeight
|
||||
}
|
||||
console.log(cssWidths)
|
||||
|
||||
@@ -75,15 +87,6 @@
|
||||
}
|
||||
})()
|
||||
|
||||
const bottomScrollHeight = (_ => {
|
||||
if (wih / vh > 1.5) {
|
||||
return 0
|
||||
} else {
|
||||
let bs = wih - vh
|
||||
return bs
|
||||
}
|
||||
})()
|
||||
|
||||
|
||||
|
||||
/* ========================================================================== */
|
||||
@@ -148,7 +151,7 @@
|
||||
|
||||
var menuWidth = wow
|
||||
if (!isMobile) {
|
||||
menuWidth = 420
|
||||
menuWidth = 500
|
||||
}
|
||||
|
||||
$("#sidebar").simplerSidebar({
|
||||
@@ -252,6 +255,8 @@
|
||||
//add bottom scrollbar to div on bottom:
|
||||
if (bottomScrollHeight > 0) {
|
||||
$(".home-wrapper-big .metadata").css({ bottom: bottomScrollHeight })
|
||||
} else {
|
||||
$(".home-wrapper-big .metadata").addClass("noBottomScrollbar")
|
||||
}
|
||||
}//isHome || isArchive end
|
||||
}// !isMobile end
|
||||
@@ -351,7 +356,9 @@
|
||||
} else {
|
||||
//from the third wrap modify the offset
|
||||
var wNum = parseInt($(nextelem).attr("class").split(" ")[1].split("-")[2])
|
||||
if (wNum > 3 || !isHome) {
|
||||
if (wNum == 3 || !isHome) {
|
||||
offset = offset - (desktophomemargin / 2)
|
||||
} else if (wNum > 4 || !isHome) {
|
||||
offset = offset - desktophomemargin
|
||||
}
|
||||
}
|
||||
@@ -609,6 +616,20 @@
|
||||
}, ".home-small a.thumbnailwrapper")
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* EVENTS - ESEMÉNYEK */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
if (isEsemeny) {
|
||||
|
||||
//add spaces to date
|
||||
$(".event-metadata .ev-date").each(function () {
|
||||
let repl = $(this).html().replace(/\.\b/g, ". ")
|
||||
$(this).html(repl)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* CIRCULAR TEXT */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user