working on single and events
This commit is contained in:
@@ -43,13 +43,13 @@
|
||||
vh: vh,
|
||||
bottomScrollHeight: bottomScrollHeight
|
||||
}
|
||||
// console.log(cssWidths)
|
||||
//console.log(cssWidths)
|
||||
|
||||
|
||||
/* --------------------------- css values to vars --------------------------- */
|
||||
//isMobile
|
||||
const isMobile = (_ => {
|
||||
if (wow < 769) {
|
||||
if (wow < 769 || wiw < 769) {
|
||||
//mobile settings
|
||||
$('.social-link, .events-link').addClass('hidden')
|
||||
return true
|
||||
@@ -720,10 +720,10 @@
|
||||
if (isEsemeny) {
|
||||
|
||||
//add spaces to date
|
||||
$(".event-metadata .ev-date").each(function () {
|
||||
let repl = $(this).html().replace(/\.\b/g, ". ")
|
||||
$(this).html(repl)
|
||||
})
|
||||
// $(".event-metadata .ev-date").each(function () {
|
||||
// let repl = $(this).html().replace(/\.\b/g, ". ")
|
||||
// $(this).html(repl)
|
||||
// })
|
||||
}
|
||||
|
||||
|
||||
@@ -798,13 +798,22 @@
|
||||
|
||||
//hide caption on desktop
|
||||
if (!isMobile) {
|
||||
$('.wp-block-gallery img, .wp-block-image img').hover(function () {
|
||||
$(this).parent('a').next("figcaption").addClass("vis")
|
||||
}, function () {
|
||||
$('.wp-block-gallery .vis, .wp-block-image .vis')
|
||||
.removeClass("vis")
|
||||
// $('.wp-block-gallery img, .wp-block-image img, .vis').hover(function () {
|
||||
// $(this).parent('a').next("figcaption").addClass("vis")
|
||||
// }, function () {
|
||||
// $('.wp-block-gallery .vis, .wp-block-image .vis')
|
||||
// .removeClass("vis")
|
||||
// })
|
||||
|
||||
$('.wp-block-gallery .blocks-gallery-item, .wp-block-image').hover(function(){
|
||||
$(this).find("figcaption").addClass("vis")
|
||||
|
||||
},function(){
|
||||
$('.wp-block-gallery .vis, .wp-block-image .vis').removeClass("vis")
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -823,7 +832,7 @@
|
||||
|
||||
//http://www.jacklmoore.com/colorbox/
|
||||
const colorboxSettings = {
|
||||
transition: 'fade',
|
||||
transition: 'none',
|
||||
rel: 'cb-ballery',
|
||||
maxWidth: '90%',
|
||||
maxHeight: '80%',
|
||||
@@ -833,6 +842,8 @@
|
||||
previous: '',
|
||||
next: '',
|
||||
close: '',
|
||||
xhrError: 'A tartalom betöltése nem sikerült. Kérlek próbáld meg később.',
|
||||
imgError: 'A kép betöltése nem sikerült. Kérlek próbáld meg később.'
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user