PageSourceSearch

https://www.ilpiccolo.net/ilpiccolodialessandria/news/wp-content/u…pt-page-78b87b007630c7c72e426492452c58a4.js

js ilpiccolo.net collected 2026-10-02 10:00:10 UTC 219,593 bytes, 1 lines download raw bytes

1if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ document.addEventListener("DOMContentLoaded", () => { nav_bar_slots_4_hamburger_show_hide(); nav_bar_slots_4_for_pc(); if ($("body")[0].className.match(/main_tmpl/) != null) { post_slot = $("#nav_bar_slots-4")[0]; hide_menu_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--hide-menu-value-js") .trim(); if (hide_menu_value == 'yes') { $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box a[target='_blank']").click(function () { $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").css("display", "none"); $("#nav_bar_slots-4 .nav-hamburger-menu .popup-menu__box").fadeOut(); }); } } } ); } function nav_bar_slots_4_hamburger_show_hide() { (function ($) { if ($("body")[0].className.match(/main_tmpl/) != null) { } })(jQuery); } function nav_bar_slots_4_for_pc() { (function ($) { $('#nav_bar_slots-4 .menu__box > .menu-item-has-children').on("click", ".arrow_drop_down", function () { if (!$(this).hasClass('active')) { $(this).addClass('active'); $(this).next().addClass('active'); $(this).next().next().addClass('active'); if (!$(this).closest('.sub-menu').siblings('.arrow_drop_down.active').length > 0) { $('.menu__box > .menu-item-has-children .arrow_drop_down').not(this).removeClass('active'); $('.menu__box > .menu-item-has-children .arrow_drop_down').not(this).next().removeClass('active'); $('.menu__box > .menu-item-has-children .arrow_drop_down').not(this).next().next().removeClass('active'); } else if ($(this).closest('.sub-menu').find('.arrow_drop_down.active').length > 1) { $(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).next().removeClass('active'); $(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).next().next().removeClass('active'); $(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).removeClass('active'); } } else { $(this).toggleClass('active'); $(this).next().toggleClass('active'); $(this).next().next().toggleClass('active'); } }); $('#nav_bar_slots-4 .menu__box > .menu-item-has-children').on("click", "a", function (e) { if ($(this).attr("href") == "#" || !$(this).attr("href")) { e.preventDefault(); if (!$(this).hasClass('active')) { $(this).addClass('active'); $(this).next().addClass('active'); $(this).prev().addClass('active'); if (!$(this).closest('.sub-menu').siblings('a.active').length > 0) { $('.menu__box > .menu-item-has-children a').not(this).removeClass('active'); $('.menu__box > .menu-item-has-children a').not(this).next().removeClass('active'); $('.menu__box > .menu-item-has-children a').not(this).prev().removeClass('active'); } else if ($(this).closest('.sub-menu').find('.active').length > 1) { $(this).closest('.sub-menu').find('a.active').not(this).next().removeClass('active'); $(this).closest('.sub-menu').find('a.active').not(this).prev().removeClass('active'); $(this).closest('.sub-menu').find('a.active').not(this).removeClass('active'); } } else { $(this).toggleClass('active'); $(this).next().toggleClass('active'); $(this).prev().toggleClass('active'); } } }); $("#nav_bar_slots-4 .menu__btn").click(function () { $("#nav_bar_slots-4 .nav-hamburger-menu .popup-menu__box").fadeIn(); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").show(400); }); $("#nav_bar_slots-4 .nav_exit, .nav-hamburger-menu .popup-menu__box").click(function () { $("#nav_bar_slots-4 .nav-hamburger-menu .popup-menu__box").fadeOut(); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").hide(400); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box .sub-menu").removeClass('active'); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box .sub-menu").prev().removeClass('active'); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box .sub-menu").prev().prev().removeClass('active'); }); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").click(function (event) { event.stopPropagation(); }); })(jQuery); } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ document.addEventListener("DOMContentLoaded", () => { nav_bar_slots_4_hamburger_show_hide(); nav_bar_slots_4_for_pc(); if ($("body")[0].className.match(/main_tmpl/) != null) { post_slot = $("#nav_bar_slots-4")[0]; hide_menu_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--hide-menu-value-js") .trim(); if (hide_menu_value == 'yes') { $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box a[target='_blank']").click(function () { $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").css("display", "none"); $("#nav_bar_slots-4 .nav-hamburger-menu .popup-menu__box").fadeOut(); }); } } } ); } function nav_bar_slots_4_hamburger_show_hide() { (function ($) { if ($("body")[0].className.match(/main_tmpl/) != null) { } })(jQuery); } function nav_bar_slots_4_for_pc() { (function ($) { $('#nav_bar_slots-4 .menu__box > .menu-item-has-children').on("click", ".arrow_drop_down", function () { if (!$(this).hasClass('active')) { $(this).addClass('active'); $(this).next().addClass('active'); $(this).next().next().addClass('active'); if (!$(this).closest('.sub-menu').siblings('.arrow_drop_down.active').length > 0) { $('.menu__box > .menu-item-has-children .arrow_drop_down').not(this).removeClass('active'); $('.menu__box > .menu-item-has-children .arrow_drop_down').not(this).next().removeClass('active'); $('.menu__box > .menu-item-has-children .arrow_drop_down').not(this).next().next().removeClass('active'); } else if ($(this).closest('.sub-menu').find('.arrow_drop_down.active').length > 1) { $(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).next().removeClass('active'); $(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).next().next().removeClass('active'); $(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).removeClass('active'); } } else { $(this).toggleClass('active'); $(this).next().toggleClass('active'); $(this).next().next().toggleClass('active'); } }); $('#nav_bar_slots-4 .menu__box > .menu-item-has-children').on("click", "a", function (e) { if ($(this).attr("href") == "#" || !$(this).attr("href")) { e.preventDefault(); if (!$(this).hasClass('active')) { $(this).addClass('active'); $(this).next().addClass('active'); $(this).prev().addClass('active'); if (!$(this).closest('.sub-menu').siblings('a.active').length > 0) { $('.menu__box > .menu-item-has-children a').not(this).removeClass('active'); $('.menu__box > .menu-item-has-children a').not(this).next().removeClass('active'); $('.menu__box > .menu-item-has-children a').not(this).prev().removeClass('active'); } else if ($(this).closest('.sub-menu').find('.active').length > 1) { $(this).closest('.sub-menu').find('a.active').not(this).next().removeClass('active'); $(this).closest('.sub-menu').find('a.active').not(this).prev().removeClass('active'); $(this).closest('.sub-menu').find('a.active').not(this).removeClass('active'); } } else { $(this).toggleClass('active'); $(this).next().toggleClass('active'); $(this).prev().toggleClass('active'); } } }); $("#nav_bar_slots-4 .menu__btn").click(function () { $("#nav_bar_slots-4 .nav-hamburger-menu .popup-menu__box").fadeIn(); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").show(400); }); $("#nav_bar_slots-4 .nav_exit, .nav-hamburger-menu .popup-menu__box").click(function () { $("#nav_bar_slots-4 .nav-hamburger-menu .popup-menu__box").fadeOut(); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").hide(400); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box .sub-menu").removeClass('active'); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box .sub-menu").prev().removeClass('active'); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box .sub-menu").prev().prev().removeClass('active'); }); $("#nav_bar_slots-4 .nav-hamburger-menu .menu__box").click(function (event) { event.stopPropagation(); }); })(jQuery); } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ document.addEventListener("DOMContentLoaded", () => { (function($) { $('#special_content_slot-7 .search-button').on('click', function(){ $('.search-modal-window').css('display', 'flex'); }); $('#special_content_slot-7 .search-modal-window-form__skip').on('click', function(){ $('#special_content_slot-7 .search-modal-window-form').submit(); }); $('#special_content_slot-7 .search-modal-window-form__close').on('click', function(){ $('#special_content_slot-7 .search-modal-window').css('display', 'none'); }) })(jQuery); } ) } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ document.addEventListener("DOMContentLoaded", () => { (function ($) { $('#special_content_slot-7 .search-button').on('click', function () { $('.search-modal-window').css('display', 'flex'); }); $('#special_content_slot-7 .search-modal-window-form__skip').on('click', function () { $('#special_content_slot-7 .search-modal-window-form').submit(); }); $('#special_content_slot-7 .search-modal-window-form__close').on('click', function () { $('#special_content_slot-7 .search-modal-window').css('display', 'none'); }) })(jQuery); } ) } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ nav_bar_slots_1_hamburger_show_hide(); document.addEventListener("DOMContentLoaded", () => { nav_bar_slots_1_nav_bar_scroll(); nav_bar_slots_1_for_pc(); nav_bar_slots_1_for_mobile(); nav_bar_slots_1_active_item(); } ); } function nav_bar_slots_1_nav_bar_scroll(){ var lastScrollTop = 0; jQuery(window).scroll(function(event){ var st = jQuery(this).scrollTop(); if (st > lastScrollTop){ jQuery(".ta_header").css({"position": "", "top": "", "z-index": ""}); } else { if (st <= jQuery(".ta_header").height()){ jQuery(jQuery(".ta_header").get().reverse()).each(function(){ if(jQuery(this).children(".ta_header").length == 0){ jQuery(jQuery(this).children().get().reverse()).each(function(){ if (jQuery(this).has(".widget_nav_bar_slots").length>0 || jQuery(this).hasClass("widget_nav_bar_slots")){ }
1 else { jQuery(this).css({"position": "static", "display": ""}); } }); } }); } else { jQuery(jQuery(".ta_header").get().reverse()).each(function(){ if(jQuery(this).children(".ta_header").length == 0){ jQuery(jQuery(this).children().get().reverse()).each(function(){ if (jQuery(this).has(".widget_nav_bar_slots").length>0 || jQuery(this).hasClass("widget_nav_bar_slots")){ } else { jQuery(this).css({"position": "static", "display": "none"}); } }); } }); } var elem_height = 0; jQuery(".ta_header .widget_nav_bar_slots").each(function(index,elem){ elem_height = elem_height + jQuery(elem).height(); }); jQuery(".ta_header").css({"position": "sticky", "top": elem_height-jQuery(".ta_header").last().height(), "z-index": "999"}); } lastScrollTop = st; }); } function nav_bar_slots_1_hamburger_show_hide() { (function(jQuery) { if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ } })(jQuery); } function nav_bar_slots_1_for_pc() { (function(jQuery) { jQuery(".mbmenu, .bg").on("click", function(e){ jQuery(".navbar-default").toggleClass("open-menu"); e.stopPropagation(); }); jQuery(document).on("click", function(e){ if (!jQuery(e.target).closest(".drop-menu .container").length) { jQuery(".navbar-default").removeClass("open-menu"); } }); })(jQuery); } function nav_bar_slots_1_for_mobile() { (function(jQuery) { widget_id = "nav_bar_slots-1"; jQuery('#'+widget_id+' .menu__box_mobile > .menu-item-has-children').on("click", ".arrow_drop_down", function () { if ( ! jQuery(this).hasClass('active')){ jQuery(this).addClass('active'); jQuery(this).prev().addClass('active'); if (!jQuery(this).closest('.sub-menu').siblings('.arrow_drop_down.active').length > 0) { jQuery('.menu__box_mobile > .menu-item-has-children .arrow_drop_down').not(this).removeClass('active'); jQuery('.menu__box_mobile > .menu-item-has-children .arrow_drop_down').not(this).prev().removeClass('active'); } else if (jQuery(this).closest('.sub-menu').find('.arrow_drop_down.active').length > 1) { jQuery(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).removeClass('active'); jQuery(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).prev().removeClass('active'); } } else { jQuery(this).toggleClass('active'); jQuery(this).prev().toggleClass('active'); } }); jQuery('#'+widget_id+' .menu__box_mobile > .menu-item-has-children').on("click", "a", function (e) { if (jQuery(this).attr("href") == "#" || !jQuery(this).attr("href")){ e.preventDefault(); if ( ! jQuery(this).hasClass('active')){ jQuery(this).addClass('active'); jQuery(this).next().addClass('active'); if (!jQuery(this).closest('.sub-menu').siblings('a.active').length > 0) { jQuery('.menu__box_mobile > .menu-item-has-children a').not(this).removeClass('active'); jQuery('.menu__box_mobile > .menu-item-has-children a').not(this).next().removeClass('active'); } else if (jQuery(this).closest('.sub-menu').find('.active').length > 1) { jQuery(this).closest('.sub-menu').find('a.active').not(this).removeClass('active'); jQuery(this).closest('.sub-menu').find('a.active').not(this).next().removeClass('active'); } } else { jQuery(this).toggleClass('active'); jQuery(this).next().toggleClass('active'); } } }); jQuery(document).ready(function(){ jQuery('input[type="checkbox"]').click(function(){ if(jQuery(this).is(":not(:checked)")){ var active_class = document.getElementsByClassName("active"); jQuery(active_class).each(function( index ) { if (this != ""){ jQuery(active_class).removeClass('active'); } }); } }); }); })(jQuery); } function nav_bar_slots_1_active_item() { (function(jQuery) { if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#nav_bar_slots-1")[0]; active_item_has_background_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--active-item-has-background-js") .trim(); if (active_item_has_background_value == "yes"){ jQuery('#nav_bar_slots-1 .menu-list a[aria-current="page"]').css({"background-color": "var(--active-menu-items-color)"}); } } })(jQuery); } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ nav_bar_slots_1_hamburger_show_hide(); document.addEventListener("DOMContentLoaded", () => { nav_bar_slots_1_nav_bar_scroll(); nav_bar_slots_1_for_pc(); nav_bar_slots_1_for_mobile(); nav_bar_slots_1_active_item(); } ); } function nav_bar_slots_1_nav_bar_scroll(){ var lastScrollTop = 0; jQuery(window).scroll(function(event){ var st = jQuery(this).scrollTop(); if (st > lastScrollTop){ jQuery(".ta_header").css({"position": "", "top": "", "z-index": ""}); } else { if (st <= jQuery(".ta_header").height()){ jQuery(jQuery(".ta_header").get().reverse()).each(function(){ if(jQuery(this).children(".ta_header").length == 0){ jQuery(jQuery(this).children().get().reverse()).each(function(){ if (jQuery(this).has(".widget_nav_bar_slots").length>0 || jQuery(this).hasClass("widget_nav_bar_slots")){ }
1 else { jQuery(this).css({"position": "static", "display": ""}); } }); } }); } else { jQuery(jQuery(".ta_header").get().reverse()).each(function(){ if(jQuery(this).children(".ta_header").length == 0){ jQuery(jQuery(this).children().get().reverse()).each(function(){ if (jQuery(this).has(".widget_nav_bar_slots").length>0 || jQuery(this).hasClass("widget_nav_bar_slots")){ } else { jQuery(this).css({"position": "static", "display": "none"}); } }); } }); } var elem_height = 0; jQuery(".ta_header .widget_nav_bar_slots").each(function(index,elem){ elem_height = elem_height + jQuery(elem).height(); }); jQuery(".ta_header").css({"position": "sticky", "top": elem_height-jQuery(".ta_header").last().height(), "z-index": "999"}); } lastScrollTop = st; }); } function nav_bar_slots_1_hamburger_show_hide() { (function(jQuery) { if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ } })(jQuery); } function nav_bar_slots_1_for_pc() { (function(jQuery) { jQuery(".mbmenu, .bg").on("click", function(e){ jQuery(".navbar-default").toggleClass("open-menu"); e.stopPropagation(); }); jQuery(document).on("click", function(e){ if (!jQuery(e.target).closest(".drop-menu .container").length) { jQuery(".navbar-default").removeClass("open-menu"); } }); })(jQuery); } function nav_bar_slots_1_for_mobile() { (function(jQuery) { widget_id = "nav_bar_slots-1"; jQuery('#'+widget_id+' .menu__box_mobile > .menu-item-has-children').on("click", ".arrow_drop_down", function () { if ( ! jQuery(this).hasClass('active')){ jQuery(this).addClass('active'); jQuery(this).prev().addClass('active'); if (!jQuery(this).closest('.sub-menu').siblings('.arrow_drop_down.active').length > 0) { jQuery('.menu__box_mobile > .menu-item-has-children .arrow_drop_down').not(this).removeClass('active'); jQuery('.menu__box_mobile > .menu-item-has-children .arrow_drop_down').not(this).prev().removeClass('active'); } else if (jQuery(this).closest('.sub-menu').find('.arrow_drop_down.active').length > 1) { jQuery(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).removeClass('active'); jQuery(this).closest('.sub-menu').find('.arrow_drop_down.active').not(this).prev().removeClass('active'); } } else { jQuery(this).toggleClass('active'); jQuery(this).prev().toggleClass('active'); } }); jQuery('#'+widget_id+' .menu__box_mobile > .menu-item-has-children').on("click", "a", function (e) { if (jQuery(this).attr("href") == "#" || !jQuery(this).attr("href")){ e.preventDefault(); if ( ! jQuery(this).hasClass('active')){ jQuery(this).addClass('active'); jQuery(this).next().addClass('active'); if (!jQuery(this).closest('.sub-menu').siblings('a.active').length > 0) { jQuery('.menu__box_mobile > .menu-item-has-children a').not(this).removeClass('active'); jQuery('.menu__box_mobile > .menu-item-has-children a').not(this).next().removeClass('active'); } else if (jQuery(this).closest('.sub-menu').find('.active').length > 1) { jQuery(this).closest('.sub-menu').find('a.active').not(this).removeClass('active'); jQuery(this).closest('.sub-menu').find('a.active').not(this).next().removeClass('active'); } } else { jQuery(this).toggleClass('active'); jQuery(this).next().toggleClass('active'); } } }); jQuery(document).ready(function(){ jQuery('input[type="checkbox"]').click(function(){ if(jQuery(this).is(":not(:checked)")){ var active_class = document.getElementsByClassName("active"); jQuery(active_class).each(function( index ) { if (this != ""){ jQuery(active_class).removeClass('active'); } }); } }); }); })(jQuery); } function nav_bar_slots_1_active_item() { (function(jQuery) { if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#nav_bar_slots-1")[0]; active_item_has_background_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--active-item-has-background-js") .trim(); if (active_item_has_background_value == "yes"){ jQuery('#nav_bar_slots-1 .menu-list a[aria-current="page"]').css({"background-color": "var(--active-menu-items-color)"}); } } })(jQuery); } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_66_myonload("posts_slot_66"); posts_slot_66bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_66_videoPopup(); } ); } function posts_slot_66_myonload(posts_slot_66){ posts_slot_66_tablet_style(); posts_slot_66_pageSlot_fillHeight(); posts_slot_66_category_position(); posts_slot_66_protected_content_position(); posts_slot_66_title_position(); posts_slot_66_date_position(); posts_slot_66_gallery_position(); setTimeout(posts_slot_66_myonload_1(),200); } function posts_slot_66_myonload_1(){ setTimeout(posts_slot_66_myonload_2(),50); } function posts_slot_66_myonload_2(){ setTimeout(posts_slot_66_myonload_3(),50); } function posts_slot_66_myonload_3(){ posts_slot_66_add_event_listeners(); } function posts_slot_66_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_66_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-66")[0]; } })(jQuery); } function posts_slot_66_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_66_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_66_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_66_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_66_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_66_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.parentElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slo
1t-66 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-66 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_66_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_66_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-66 .article").length;i++){ id=jQuery("#posts_slot-66 .article")[i].id; a_links=jQuery("#posts_slot-66 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-66 #"+id).click(posts_slot_66_open_single_article); } } else if (article_clickable == "not_active"){ } } } function posts_slot_66_open_single_article(){ url=$("#posts_slot-66 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-66 #"+this.id).attr("ta_target"); videolink=$("#posts_slot-66 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20p
1x' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_66_fit_title(runs){ if (typeof document.getElementsByClassName("template_2086_homepage_single_adula_3") !== 'undefined') { for(i=0;(i<document.getElementsByClassName("template_2086_homepage_single_adula_3").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2086_homepage_single_adula_3")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2086_homepage_single_adula_3")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2086_homepage_single_adula_3")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_66_fit_body(){ if (typeof document.getElementById("posts_slot-66").getElementsByClassName("template_2086_homepage_single_adula_3") !== 'undefined') { for(k=0;(k<document.getElementById("posts_slot-66").getElementsByClassName("template_2086_homepage_single_adula_3").length && k<50);k++){ if(typeof document.getElementById("posts_slot-66").getElementsByClassName("template_2086_homepage_single_adula_3")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-66").getElementsByClassName("template_2086_homepage_single_adula_3")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-66").getElementsByClassName("template_2086_homepage_single_adula_3")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-66").getElementsByClassName("template_2086_homepage_single_adula_3")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-66").getElementsByClassName("template_2086_homepage_single_adula_3")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_66_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_66_myonload("posts_slot_66"); posts_slot_66bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_66_videoPopup(); } ); } function posts_slot_66_myonload(posts_slot_66){ posts_slot_66_tablet_style(); posts_slot_66_pageSlot_fillHeight(); posts_slot_66_category_position(); posts_slot_66_protected_content_position(); posts_slot_66_title_position(); posts_slot_66_date_position(); posts_slot_66_gallery_position(); setTimeout(posts_slot_66_myonload_1(),200); } function posts_slot_66_myonload_1(){ setTimeout(posts_slot_66_myonload_2(),50); } function posts_slot_66_myonload_2(){ setTimeout(posts_slot_66_myonload_3(),50); } function posts_slot_66_myonload_3(){ posts_slot_66_add_event_listeners(); } function posts_slot_66_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_66_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-66")[0]; } })(jQuery); } function posts_slot_66_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_66_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_66_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title
1_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_66_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_66_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_66_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.parentElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slot-66 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-66 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;
1i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_66_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_66_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-66 .article").length;i++){ id=jQuery("#posts_slot-66 .article")[i].id; a_links=jQuery("#posts_slot-66 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-66 #"+id).click(posts_slot_66_open_single_article); } } else if (article_clickable == "not_active"){ } } } function posts_slot_66_open_single_article(){ url=$("#posts_slot-66 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-66 #"+this.id).attr("ta_target"); videolink=$("#posts_slot-66 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20px' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_66_fit_title(runs){ if (typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for
1(i=0;(i<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_66_fit_body(){ if (typeof document.getElementById("posts_slot-66").getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for(k=0;(k<document.getElementById("posts_slot-66").getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && k<50);k++){ if(typeof document.getElementById("posts_slot-66").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-66").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-66").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-66").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-66").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_66_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-66")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_67_myonload("posts_slot_67"); posts_slot_67bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_67_videoPopup(); } ); } function posts_slot_67_myonload(posts_slot_67){ posts_slot_67_tablet_style(); posts_slot_67_pageSlot_fillHeight(); posts_slot_67_category_position(); posts_slot_67_protected_content_position(); posts_slot_67_title_position(); posts_slot_67_date_position(); posts_slot_67_gallery_position(); setTimeout(posts_slot_67_myonload_1(),200); } function posts_slot_67_myonload_1(){ setTimeout(posts_slot_67_myonload_2(),50); } function posts_slot_67_myonload_2(){ setTimeout(posts_slot_67_myonload_3(),50); } function posts_slot_67_myonload_3(){ posts_slot_67_add_event_listeners(); } function posts_slot_67_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_67_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-67")[0]; } })(jQuery); } function posts_slot_67_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_67_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_67_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_67_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-positi
1on-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_67_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_67_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.parentElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slot-67 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-67 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_67_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_67_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-67 .article").length;i++){ id=jQuery("#posts_slot-67 .article")[i].id; a_links=jQuery("#posts_slot-67 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-67 #"+id).click(posts_slot_67_open_single_article); } } else if (article_clickable == "not_active"){ } } }
1 function posts_slot_67_open_single_article(){ url=$("#posts_slot-67 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-67 #"+this.id).attr("ta_target"); videolink=$("#posts_slot-67 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20px' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_67_fit_title(runs){ if (typeof document.getElementsByClassName("template_2081_homepage_carousel_main_adula") !== 'undefined') { for(i=0;(i<document.getElementsByClassName("template_2081_homepage_carousel_main_adula").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_67_fit_body(){ if (typeof document.getElementById("posts_slot-67").getElementsByClassName("template_2081_homepage_carousel_main_adula") !== 'undefined') { for
1(k=0;(k<document.getElementById("posts_slot-67").getElementsByClassName("template_2081_homepage_carousel_main_adula").length && k<50);k++){ if(typeof document.getElementById("posts_slot-67").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-67").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-67").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-67").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-67").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_67_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_67_myonload("posts_slot_67"); posts_slot_67bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_67_videoPopup(); } ); } function posts_slot_67_myonload(posts_slot_67){ posts_slot_67_tablet_style(); posts_slot_67_pageSlot_fillHeight(); posts_slot_67_category_position(); posts_slot_67_protected_content_position(); posts_slot_67_title_position(); posts_slot_67_date_position(); posts_slot_67_gallery_position(); setTimeout(posts_slot_67_myonload_1(),200); } function posts_slot_67_myonload_1(){ setTimeout(posts_slot_67_myonload_2(),50); } function posts_slot_67_myonload_2(){ setTimeout(posts_slot_67_myonload_3(),50); } function posts_slot_67_myonload_3(){ posts_slot_67_add_event_listeners(); } function posts_slot_67_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_67_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-67")[0]; } })(jQuery); } function posts_slot_67_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_67_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_67_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_67_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_67_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_67_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.pare
1ntElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slot-67 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-67 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_67_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_67_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-67 .article").length;i++){ id=jQuery("#posts_slot-67 .article")[i].id; a_links=jQuery("#posts_slot-67 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-67 #"+id).click(posts_slot_67_open_single_article); } } else if (article_clickable == "not_active"){ } } } function posts_slot_67_open_single_article(){ url=$("#posts_slot-67 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-67 #"+this.id).attr("ta_target"); videolink=$("#posts_slot-67 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20p
1x' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_67_fit_title(runs){ if (typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for(i=0;(i<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_67_fit_body(){ if (typeof document.getElementById("posts_slot-67").getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for(k=0;(k<document.getElementById("posts_slot-67").getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && k<50);k++){ if(typeof document.getElementById("posts_slot-67").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-67").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-67").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-67").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-67").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_67_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-67")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery) { } else { console.log("no jQuery yet"); src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.addEventListener("DOMContentLoaded", () => { pages_slot_57_change_position_pc(); } ); } function pages_slot_57_change_position_pc() { youtube_images = jQuery('#pages_slot-57 article img'); for (i = 0; i < youtube_images.length; i++) { rendered_size = youtube_images[i].offsetWidth; img_src = youtube_images[i].src; if (img_src.match('mqdefault.jpg') != null) { if (rendered_size < 320) { } else if (rendered_size > 321 && rendered_size < 480) { img_src = img_src.replace('mqdefault.jpg', "hqdefault.jpg"); } else if (rendered_size > 481 && rendered_size < 640) { img_src = img_src.replace('mqdefault.jpg', "sddefault.jpg"); } else { img_src = img_src.replace('mqdefault.jpg', "maxresdefault.jpg"); } youtube_images[i].src = img_src; } } } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_68_myonload("posts_slot_68"); posts_slot_68bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_68_videoPopup(); } ); } function posts_slot_68_myonload(posts_slot_68){ posts_slot_68_tablet_style(); posts_slot_68_pageSlot_fillHeight(); posts_slot_68_category_position(); posts_slot_68_protected_content_position(); posts_slot_68_title_position(); posts_slot_68_date_position(); posts_slot_68_gallery_position(); setTimeout(posts_slot_68_myonload_1(),200); } function posts_slot_68_myonload_1(){ setTimeout(posts_slot_68_myonload_2(),50); } function posts_slot_68_myonload_2(){ setTimeout(posts_slot_68_myonload_3(),50); } function posts_slot_68_myonload_3(){ posts_slot_68_add_event_listeners(); } function posts_slot_68_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_68_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-68")[0]; } })(jQuery); } function posts_slot_68_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_68_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feat
1ure_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_68_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_68_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_68_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_68_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.parentElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slot-68 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-68 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;
1i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_68_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_68_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-68 .article").length;i++){ id=jQuery("#posts_slot-68 .article")[i].id; a_links=jQuery("#posts_slot-68 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-68 #"+id).click(posts_slot_68_open_single_article); } } else if (article_clickable == "not_active"){ } } } function posts_slot_68_open_single_article(){ url=$("#posts_slot-68 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-68 #"+this.id).attr("ta_target"); videolink=$("#posts_slot-68 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20px' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_68_fit_title(runs){ if (typeof document.getElementsByClassName("template_2081_homepage_carousel_main_adula") !== 'undefined') { for
1(i=0;(i<document.getElementsByClassName("template_2081_homepage_carousel_main_adula").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_68_fit_body(){ if (typeof document.getElementById("posts_slot-68").getElementsByClassName("template_2081_homepage_carousel_main_adula") !== 'undefined') { for(k=0;(k<document.getElementById("posts_slot-68").getElementsByClassName("template_2081_homepage_carousel_main_adula").length && k<50);k++){ if(typeof document.getElementById("posts_slot-68").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-68").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-68").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-68").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-68").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_68_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_68_myonload("posts_slot_68"); posts_slot_68bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_68_videoPopup(); } ); } function posts_slot_68_myonload(posts_slot_68){ posts_slot_68_tablet_style(); posts_slot_68_pageSlot_fillHeight(); posts_slot_68_category_position(); posts_slot_68_protected_content_position(); posts_slot_68_title_position(); posts_slot_68_date_position(); posts_slot_68_gallery_position(); setTimeout(posts_slot_68_myonload_1(),200); } function posts_slot_68_myonload_1(){ setTimeout(posts_slot_68_myonload_2(),50); } function posts_slot_68_myonload_2(){ setTimeout(posts_slot_68_myonload_3(),50); } function posts_slot_68_myonload_3(){ posts_slot_68_add_event_listeners(); } function posts_slot_68_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_68_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-68")[0]; } })(jQuery); } function posts_slot_68_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_68_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_68_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_68_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--
1date-position-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_68_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_68_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.parentElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slot-68 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-68 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_68_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_68_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-68 .article").length;i++){ id=jQuery("#posts_slot-68 .article")[i].id; a_links=jQuery("#posts_slot-68 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-68 #"+id).click(posts_slot_68_open_single_article); } } else if (article_clickable == "not_active"){ } } }
1 function posts_slot_68_open_single_article(){ url=$("#posts_slot-68 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-68 #"+this.id).attr("ta_target"); videolink=$("#posts_slot-68 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20px' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_68_fit_title(runs){ if (typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for(i=0;(i<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_68_fit_body(){ if (typeof document.getElementById("posts_slot-68").getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for
1(k=0;(k<document.getElementById("posts_slot-68").getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && k<50);k++){ if(typeof document.getElementById("posts_slot-68").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-68").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-68").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-68").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-68").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_68_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-68")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery) { } else { console.log("no jQuery yet"); src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.addEventListener("DOMContentLoaded", () => { pages_slot_58_change_position_pc(); } ); } function pages_slot_58_change_position_pc() { youtube_images = jQuery('#pages_slot-58 article img'); for (i = 0; i < youtube_images.length; i++) { rendered_size = youtube_images[i].offsetWidth; img_src = youtube_images[i].src; if (img_src.match('mqdefault.jpg') != null) { if (rendered_size < 320) { } else if (rendered_size > 321 && rendered_size < 480) { img_src = img_src.replace('mqdefault.jpg', "hqdefault.jpg"); } else if (rendered_size > 481 && rendered_size < 640) { img_src = img_src.replace('mqdefault.jpg', "sddefault.jpg"); } else { img_src = img_src.replace('mqdefault.jpg', "maxresdefault.jpg"); } youtube_images[i].src = img_src; } } } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_69_myonload("posts_slot_69"); posts_slot_69bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_69_videoPopup(); } ); } function posts_slot_69_myonload(posts_slot_69){ posts_slot_69_tablet_style(); posts_slot_69_pageSlot_fillHeight(); posts_slot_69_category_position(); posts_slot_69_protected_content_position(); posts_slot_69_title_position(); posts_slot_69_date_position(); posts_slot_69_gallery_position(); setTimeout(posts_slot_69_myonload_1(),200); } function posts_slot_69_myonload_1(){ setTimeout(posts_slot_69_myonload_2(),50); } function posts_slot_69_myonload_2(){ setTimeout(posts_slot_69_myonload_3(),50); } function posts_slot_69_myonload_3(){ posts_slot_69_add_event_listeners(); } function posts_slot_69_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_69_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-69")[0]; } })(jQuery); } function posts_slot_69_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_69_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_69_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_69_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles 
1= post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_69_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_69_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.parentElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slot-69 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-69 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_69_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_69_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-69 .article").length;i++){ id=jQuery("#posts_slot-69 .article")[i].id; a_links=jQuery("#posts_slot-69 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-69 #"+id).click(posts_slot_69_open_single_article); } } else if (article_clickable == "not_active"){ } } } function posts_slot_69_open_single_article(){ url=$("#posts_slot-69 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-69 #"+this.id).attr("ta_target");
1 videolink=$("#posts_slot-69 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20px' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_69_fit_title(runs){ if (typeof document.getElementsByClassName("template_2081_homepage_carousel_main_adula") !== 'undefined') { for(i=0;(i<document.getElementsByClassName("template_2081_homepage_carousel_main_adula").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2081_homepage_carousel_main_adula")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_69_fit_body(){ if (typeof document.getElementById("posts_slot-69").getElementsByClassName("template_2081_homepage_carousel_main_adula") !== 'undefined') { for
1(k=0;(k<document.getElementById("posts_slot-69").getElementsByClassName("template_2081_homepage_carousel_main_adula").length && k<50);k++){ if(typeof document.getElementById("posts_slot-69").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-69").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-69").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-69").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-69").getElementsByClassName("template_2081_homepage_carousel_main_adula")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_69_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery){ } else{ src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.load = posts_slot_69_myonload("posts_slot_69"); posts_slot_69bodies=[]; document.addEventListener("DOMContentLoaded", () => { posts_slot_69_videoPopup(); } ); } function posts_slot_69_myonload(posts_slot_69){ posts_slot_69_tablet_style(); posts_slot_69_pageSlot_fillHeight(); posts_slot_69_category_position(); posts_slot_69_protected_content_position(); posts_slot_69_title_position(); posts_slot_69_date_position(); posts_slot_69_gallery_position(); setTimeout(posts_slot_69_myonload_1(),200); } function posts_slot_69_myonload_1(){ setTimeout(posts_slot_69_myonload_2(),50); } function posts_slot_69_myonload_2(){ setTimeout(posts_slot_69_myonload_3(),50); } function posts_slot_69_myonload_3(){ posts_slot_69_add_event_listeners(); } function posts_slot_69_videoPopup() { $(window).resize(function() { if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } }) } function posts_slot_69_tablet_style(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#posts_slot-69")[0]; } })(jQuery); } function posts_slot_69_category_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } else{ category_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--category-position-js") .trim(); } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="follow-order-content"){ } else if(category_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.bottom="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else if(category_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.right="0px"; } } } else if(category_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".categories") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".categories"),undefined); articles[i].querySelector(".categories").style.position="absolute"; articles[i].querySelector(".categories").style.top="0px"; articles[i].querySelector(".categories").style.left="0px"; } } } else{ } } } function posts_slot_69_protected_content_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } else{ protected_content_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--protected-content-position-js") .trim(); } if(protected_content_position_value != null){ protected_content_position_value = protected_content_position_value[0]; protected_content_position_value = protected_content_position_value.replace(/\s/g,""); protected_content_position_value = protected_content_position_value.replace(/^.+?\:/g,""); protected_content_position_value = protected_content_position_value.replace(/\;/g,""); if(protected_content_position_value=="follow-order-content"){ } else if(protected_content_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.bottom="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.right="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else if(protected_content_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null && articles[i].querySelector(".protected_content") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".protected_content"),undefined); articles[i].querySelector(".protected_content").style.position="absolute"; articles[i].querySelector(".protected_content").style.top="0px"; articles[i].querySelector(".protected_content").style.left="0px"; articles[i].querySelector(".protected_content").style.paddingLeft="0px"; } } } else{ } } } } function posts_slot_69_title_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } else{ title_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--title-position-js") .trim(); } title_position_value = title_position_value.replace(/\s/g,""); title_position_value = title_position_value.replace(/^.+?\:/g,""); title_position_value = title_position_value.replace(/\;/g,""); if(title_position_value=="follow-order-content"){ } else if(title_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".title").style.order="-1"; parentElement = articles[i].querySelector(".feature_image").parentNode; parentElement.insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".title"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".title").style.order="0"; } } } else{ } } } function posts_slot_69_date_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } else{ date_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--date-position-js") .trim(); } if(date_position_value != null){ date_position_value = date_position_value[0]; date_position_value = date_position_value.replace(/\s/g,""); date_position_value = date_position_value.replace(/^.+?\:/g,""); date_position_value = date_position_value.replace(/\;/g,""); if(date_position_value=="follow-order-content"){ } else if(date_position_value=="before-feature-image"){ if(post_slot.querySelector(".template_2085_homepage_trio_adula") ==null){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ parentElement = articles[i].querySelector(".feature_image").parentNode; if(articles[i].querySelector(".author_date_inline") !== null){ articles[i].querySelector(".author_date_inline").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".author_date_inline"),articles[i].querySelector(".feature_image")); } else { articles[i].querySelector(".date").style.order="-1"; parentElement.insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); } } } } else{ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].insertBefore(articles[i].querySelector(".date"),articles[i].querySelector(".feature_image")); articles[i].querySelector(".date").style.order="0"; } } } else{ } } } } function posts_slot_69_pageSlot_fillHeight(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } else{ fill_height = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--post-slot_fill_height-js") .trim(); } fill_height = fill_height.replace(/\s/g,""); fill_height = fill_height.replace(/^.+?\:/g,""); fill_height = fill_height.replace(/\;/g,""); if(fill_height=="no"){ } else if(fill_height=="fill"){ window.addEventListener('resize', posts_slot_69_pageSlot_fillHeight); post_slot.parentElement.parentElement.parentElement.style.alignItems=""; post_slot.pare
1ntElement.parentElement.style.display=""; post_slot.parentElement.parentElement.style.flexDirection = ""; post_slot.parentElement.style.height=""; post_slot.style.height=""; myquery=jQuery("#posts_slot-69 > div"); myquery[0].style.height=""; myquery[0].children[0].style.height=""; myquery[0].children[0].style.display=""; myquery[0].children[0].style.flexDirection = ""; post_slot.parentElement.parentElement.parentElement.style.alignItems="stretch"; if(getComputedStyle(post_slot.parentElement.parentElement)['display'] != 'none'){ post_slot.parentElement.parentElement.style.display="flex"; } post_slot.parentElement.parentElement.style.flexDirection = "column"; post_slot.parentElement.style.height="100%"; post_slot.style.height="100%"; myquery=jQuery("#posts_slot-69 > div"); myquery[0].style.height="100%"; myquery[0].children[0].style.height="100%"; myquery[0].children[0].style.display="flex"; myquery[0].children[0].style.flexDirection = "column"; articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ articles[i].style.flexGrow ="10"; } } else{ } } } function posts_slot_69_move_categories_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ category_position_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--category-position-js.+?\;/)[0]; } else{ category_position_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--category-position-js.+?\;/)[0]; } category_position_value = category_position_value.replace(/\s/g,""); category_position_value = category_position_value.replace(/^.+?\:/g,""); category_position_value = category_position_value.replace(/\;/g,""); if(category_position_value=="beforetitle"){ } else if(category_position_value=="onimage"){ articles = post_slot.querySelectorAll('article'); jQuery(articles).each(function(){ jQuery("#"+jQuery(this).attr('id')+" .feature_image")[0].insertBefore(jQuery("#"+jQuery(this).attr('id')+" .categories")[0],undefined) }); } else{ } } } function posts_slot_69_add_event_listeners(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if (window.innerWidth >= 600){ article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } else { article_clickable = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--article-clickable-js") .trim(); } if (article_clickable == "active"){ for(i=0;i<jQuery("#posts_slot-69 .article").length;i++){ id=jQuery("#posts_slot-69 .article")[i].id; a_links=jQuery("#posts_slot-69 .article")[i].querySelectorAll("a"); for(j=0;j<a_links.length;j++){ a_links[j].addEventListener("click", function(event) { event.stopImmediatePropagation(); }); } jQuery("#posts_slot-69 #"+id).click(posts_slot_69_open_single_article); } } else if (article_clickable == "not_active"){ } } } function posts_slot_69_open_single_article(){ url=$("#posts_slot-69 #"+this.id).attr("ta_permalink"); target=$("#posts_slot-69 #"+this.id).attr("ta_target"); videolink=$("#posts_slot-69 #"+this.id).attr("ta_videolink"); if (videolink) { event.preventDefault(); if ($('.footer .overlay').length === 0) { $('<div class="overlay"></div>').appendTo('.footer:first'); $('<div class="iframe-wrapper"></div>').appendTo('.footer .overlay'); $('.footer .overlay').css({ 'position': 'fixed', 'display': 'flex', 'inset': '0px', 'background': 'rgba(0, 0, 0, 0.5)', 'z-index': '9999', 'align-items': 'center', 'justify-content': 'center', 'height': '100vh', 'width': '100vw' }); $('.footer .overlay .iframe-wrapper').css({ 'position': 'relative', 'overflow': 'hidden', }); if ($(window).width() <= 1000 && $(window).width() < $(window).height()) { $('.footer .overlay .iframe-wrapper').css({ 'width': '80%', 'padding-top': '50%' }); } else { $('.footer .overlay .iframe-wrapper').css({ 'width': '50%', 'padding-top': '30%' }); } var video_href = videolink; if (typeof video_href !== 'undefined' && video_href !== '') { var iframe = document.createElement('iframe'); iframe.src = video_href; iframe.setAttribute('allow', 'autoplay'); var parentElement = document.querySelector('.footer .overlay .iframe-wrapper'); parentElement.appendChild(iframe); } $('.footer .overlay .iframe-wrapper iframe').css({ 'background': 'rgb(255, 255, 255)', 'box-shadow': 'black 0px 0px 10px 0px', 'position': 'absolute', 'inset': '0px', 'width': '100%', 'height': '100%', 'padding': '20p
1x' }); $('<div class="overlay_close">×</div>').appendTo('.footer .overlay .iframe-wrapper'); $('.footer .overlay .iframe-wrapper .overlay_close').css({ 'position': 'absolute', 'top': '0', 'right': '0', 'z-index': '999', 'font-size': '24px', 'cursor': 'pointer', 'text-align': 'center', 'display': 'flex', 'align-items': 'center', 'justify-content': 'center', 'height': '24px', 'width': '24px', 'color': 'black', 'font-weight': '700', 'transition': '0.3s ease', 'opacity': '0.5', }); $('.footer .overlay .iframe-wrapper .overlay_close').hover(function() { $(this).css({ 'opacity': '1', }); }, function() { $(this).css({ 'opacity': '0.5', }); }); $('.footer .overlay').show(); $(document).mouseup("click", function(e){ var container = $(".overlay iframe"); if(!container.is(e.target) && container.has(e.target).length === 0){ $('.footer .overlay iframe').remove(); $('.footer .overlay .overlay_close').remove(); $('.footer .overlay style').remove(); $('.footer .overlay').remove(); } }); } } else { window.open(url,target); } } function posts_slot_69_fit_title(runs){ if (typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for(i=0;(i<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && i<50);i++){ if(typeof document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article") !== 'undefined') { for(j=0 ; (j<document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article").length && j<50) ; j++){ id=document.getElementsByClassName("template_2086_mob_homepage_single_adula_3")[i].getElementsByClassName("article")[j].id; document.getElementById(id).parentElement.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=""; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=""; document.getElementById(id).getElementsByClassName("body")[0].style.display=""; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("body")[0].style.display="none"; title_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("title")[0],null).height); titleandbody_height = parseFloat(getComputedStyle(document.getElementById(id).getElementsByClassName("titleandbody")[0],null).height); article_height=parseFloat(getComputedStyle(document.getElementById(id),null).height); } new_article_height=article_height+(title_height-titleandbody_height); new_titleandbody_height=titleandbody_height+(title_height-titleandbody_height); if(title_height > titleandbody_height){ document.getElementById(id).getElementsByClassName("titleandbody")[0].style.height=new_titleandbody_height + "px"; document.getElementById(id).getElementsByClassName("titleandbody")[0].style.maxHeight=new_titleandbody_height + "px"; } } } } } return true; } function posts_slot_69_fit_body(){ if (typeof document.getElementById("posts_slot-69").getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') { for(k=0;(k<document.getElementById("posts_slot-69").getElementsByClassName("template_2086_mob_homepage_single_adula_3").length && k<50);k++){ if(typeof document.getElementById("posts_slot-69").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article") !== 'undefined' && typeof document.getElementById("posts_slot-69").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k] !== 'undefined') { for(l=0 ; (l<document.getElementById("posts_slot-69").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article").length && l<50) ; l++){ id=document.getElementById("posts_slot-69").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].getElementsByClassName("article")[l].id; if(typeof document.getElementById(id).getElementsByClassName("body")!== 'undefined' && typeof document.getElementById(id).getElementsByClassName("body")[0]!== 'undefined' ){ perent_element = document.getElementById("posts_slot-69").getElementsByClassName("template_2086_mob_homepage_single_adula_3")[k].querySelector("#"+id); body_height = perent_element.getElementsByClassName("body")[0].scrollHeight; body_space = perent_element.getElementsByClassName("body")[0].clientHeight; str = perent_element.getElementsByClassName("body")[0].innerHTML; if (body_height != 0 && body_space != 0){ num_char = Math.round(body_height/body_space); str=str.substring(0,Math.round(str.length/num_char)); if(num_char != 1){ str=str+"..."; } perent_element.getElementsByClassName("body")[0].innerHTML=str; } else { perent_element.getElementsByClassName("body")[0].innerHTML=""; } } } } } } return true; } function posts_slot_69_gallery_position(){ if(jQuery("body")[0].className.match(/main_tmpl/)!=null){ post_slot = jQuery("#posts_slot-69")[0]; if(window.innerWidth<600){ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } else{ gallery_position_value = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--gallery-position-js") .trim(); } if(gallery_position_value != null){ gallery_position_value = gallery_position_value[0]; gallery_position_value = gallery_position_value.replace(/\s/g,""); gallery_position_value = gallery_position_value.replace(/^.+?\:/g,""); gallery_position_value = gallery_position_value.replace(/\;/g,""); if(gallery_position_value=="follow-order-content"){ } else if(gallery_position_value=="onimage-bottom-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-bottom-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.bottom="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else if(gallery_position_value=="onimage-top-right"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.right="0px"; } } } else if(gallery_position_value=="onimage-top-left"){ articles = post_slot.querySelectorAll('article'); for(i=0;i<articles.length;i++){ if(articles[i].querySelector(".feature_image") !== null){ articles[i].querySelector(".feature_image").insertBefore(articles[i].querySelector(".gallery"),undefined); articles[i].querySelector(".gallery").style.position="absolute"; articles[i].querySelector(".gallery").style.top="0px"; articles[i].querySelector(".gallery").style.left="0px"; } } } else{ } } } } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ if (window.jQuery) { } else { console.log("no jQuery yet"); src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; } document.addEventListener("DOMContentLoaded", () => { pages_slot_59_change_position_pc(); } ); } function pages_slot_59_change_position_pc() { youtube_images = jQuery('#pages_slot-59 article img'); for (i = 0; i < youtube_images.length; i++) { rendered_size = youtube_images[i].offsetWidth; img_src = youtube_images[i].src; if (img_src.match('mqdefault.jpg') != null) { if (rendered_size < 320) { } else if (rendered_size > 321 && rendered_size < 480) { img_src = img_src.replace('mqdefault.jpg', "hqdefault.jpg"); } else if (rendered_size > 481 && rendered_size < 640) { img_src = img_src.replace('mqdefault.jpg', "sddefault.jpg"); } else { img_src = img_src.replace('mqdefault.jpg', "maxresdefault.jpg"); } youtube_images[i].src = img_src; } } } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ document.addEventListener("DOMContentLoaded", () => { special_content_slot_8_change_position_pc(); } ); } function special_content_slot_8_change_position_pc(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#special_content_slot-8")[0]; social_sharing_position = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--position-js") .trim(); if (social_sharing_position == "after_post_title") { $('div[class*="_single_"]')[0].querySelector(".title").after($("#special_content_slot-8")[0].parentElement); $("#special_content_slot-8>div .social-share-block .social-share-link").css("flex-direction", "row"); } } })(jQuery); } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth<600 && jQuery('body').hasClass('main_tmpl')){ document.addEventListener("DOMContentLoaded", () => { special_content_slot_8_change_position_pc(); } ); } function special_content_slot_8_change_position_pc(){ (function($) { if($("body")[0].className.match(/main_tmpl/)!=null){ post_slot = $("#special_content_slot-8")[0]; social_sharing_position = getComputedStyle(post_slot.firstElementChild) .getPropertyValue("--position-js") .trim(); if (social_sharing_position == "after_post_title") { $('div[class*="_single_"]')[0].querySelector(".title").after($("#special_content_slot-8")[0].parentElement); $("#special_content_slot-8>div .social-share-block .social-share-link").css("flex-direction", "row"); } } })(jQuery); } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } if (window.innerWidth>=600 && jQuery('body').hasClass('main_tmpl')){ } /*https://acquinews.ilpiccolo.net/ilpiccolodialessandria/acqui/ultima-ora-acqui/*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.