event fontsize, default colors, big hover recalc
This commit is contained in:
@@ -865,29 +865,29 @@
|
||||
let cBevezeto = cBevezetoWrapper.children(".bevezeto")
|
||||
|
||||
// calculate default metadata height
|
||||
if (!metadataHeights.collapsedHeight) {
|
||||
metadataHeights.collapsedHeight = cMetadata[0].getBoundingClientRect().height
|
||||
}
|
||||
|
||||
metadataHeights.collapsedHeight = cMetadata[0].getBoundingClientRect().height
|
||||
|
||||
|
||||
//calculate opened metadata height
|
||||
if (!metadataHeights.openedHeight) {
|
||||
let h2H = 0
|
||||
$(".home-big h2").each(function () {
|
||||
if ($(this)[0].getBoundingClientRect().height > h2H) {
|
||||
h2H = $(this)[0].getBoundingClientRect().height
|
||||
}
|
||||
})
|
||||
|
||||
let artH = cArticle[0].getBoundingClientRect().height
|
||||
metadataHeights.openedHeight = artH - bottomScrollHeight - h2H
|
||||
let h2H = 0
|
||||
$(".home-big h2").each(function () {
|
||||
if ($(this)[0].getBoundingClientRect().height > h2H) {
|
||||
h2H = $(this)[0].getBoundingClientRect().height
|
||||
}
|
||||
})
|
||||
|
||||
console.log('h2h', h2H, artH)
|
||||
let artH = cArticle[0].getBoundingClientRect().height
|
||||
metadataHeights.openedHeight = artH - bottomScrollHeight - h2H
|
||||
|
||||
//add height to bevezetoWrapper
|
||||
$('.bevezetoWrapper').css({ height: metadataHeights.openedHeight })
|
||||
console.log('h2h', h2H, artH)
|
||||
|
||||
//add height to bevezetoWrapper
|
||||
$('.bevezetoWrapper').css({ height: metadataHeights.openedHeight })
|
||||
|
||||
$('.alcimWrapper').css({ height: metadataHeights.openedHeight })
|
||||
|
||||
$('.alcimWrapper').css({ height: metadataHeights.openedHeight })
|
||||
}
|
||||
|
||||
//add hovered class
|
||||
cArticle.addClass("hovered")
|
||||
|
||||
Reference in New Issue
Block a user