The Terpenica range of wines infused with Terpenes from Cannabis Sativa (Photo by Bodega Piedras)
November 7, 2024
Terpenica Brut @ Expo Cannabis 2024
Held from November 1-3, 2024, at the iconic La Rural fairgrounds in Buenos Aires, Expo Cannabis Argentina has become Latin America’s premier cannabis event. Aimed at educating the public and creating a marketplace for cannabis products, the expo showcases a broad spectrum of cannabis innovations, from medicinal applications to cultivation technology and lifestyle products. Founded with a mission to destigmatise cannabis and highlight its myriad applications, it has grown exponentially over the years and now features hundreds of exhibitors, workshops, and lectures aimed at audiences from diverse backgrounds. This year’s event welcomed thousands of patrons ranging from cannabis enthusiasts to those curious about its medicinal benefits.
At its core, the expo serves as an educational platform, reflecting Argentina’s admirably progressive approach to cannabis. The event attracts notable brands in cannabis cultivation and wellness, as well as public figures and activists advocating for responsible cannabis use. Through its immersive activities, the expo offers an inclusive space to explore cannabis’s roles in wellness, agriculture, and personal care. For their 2024 event, the organisers put together a line-up that included industry giants such as Grow Tech, renowned for cutting-edge cultivation technology, and Bioled which showcased advanced lighting systems, essential for maximising yield and potency in cannabis cultivation.
RAW, known globally for its cannabis accessories, brought a collection of eco-friendly papers and smoking tools, adding a sustainable angle to the event. Sagrada Madre, a brand blending cannabis with spiritual wellness, offered products designed to promote mindfulness and relaxation. In an exciting intersection between cannabis and Argentina’s celebrated wine culture, the highlight of Expo Cannabis was undoubtedly Terpenica Sparkling Wine, a new product from Bodega Piedras 202. This Mendoza-based winery, known for its innovative approach to winemaking, has created Argentina’s first sparkling wine infused with cannabis terpenes.
Derived from the terpenes of ‘cannabis sativa’, Terpenica captures the aromatic and sensory properties of cannabis without any psychoactive effects. This innovative wine introduces an aromatic complexity that elevates the wine’s profile, merging Mendoza’s winemaking tradition with the evolving cannabis culture. The wine’s bouquet has notes of pine, citrus, and herbal undertones typical of cannabis, making it a fascinating experience for the senses and an example of Argentina’s commitment to exploring unique agricultural products. Bodega Piedras 202, the winery behind Terpenica, has deep roots in Mendoza’s fertile vineyards and has established itself as a trailblazer by experimenting with non-traditional additives like cannabis terpenes.
Through Terpenica, they aim to broaden the perception of Argentine wine by connecting it to the growing interest in cannabis. This collaboration marks a significant milestone in Argentina’s wine and cannabis industries, combining expertise from both fields to offer a unique product that speaks to the innovation within Argentine agriculture. In fact, their booth at the event was highly sought after, fielding hundreds of patrons eager to taste and experience this viticultural innovation. Thursday Food was at the event and brings you scenes in addition to introducing the Terpenica line of THC/CBD-free Sparkling Wines by Bodega Piedras 202:
Terpenica Gipsy Haze Brut is a young and fresh sparkling wine made, using the Charmat method, with Chardonnay and Viognier grapes in Lujan de cuyo. The wine has a green colour with a delicate turbidity, offering small and abundant bubbles that form an intense and long-lasting crown. It expresses intense aromas of fruit, citrus and pine and also has an intense flavour in the mouth where it is a sweet, fruity and citrus haze, mixing hints of fruits such as mango and lime with hints of incense.
Terpenica Critical Jack Brut, also made using Chardonnay and Viognier grapes in Lujan de Cuyo,is green in colour with a delicate turbidity and small and abundant bubbles forming an intense and long-lasting crown. On the nose it is citrus, woody, herbal and spicy. In the mouth it is intense with a citrus aroma and lemon-like flavour that has hints of pine as well as a clear floral background.
Terpenica Blackberry Brut is made using the same grape combination and method of production by Bodega Piedras 202 in Lujuan de Cuyo, Mendoza. It bears the same physical characteristics, a green colour with a delicate turbidity along with small and abundant bubbles, but offers earthy, sweet and fruity aromas on the nose. On the palate, its penetrating aroma and flavour is reminiscent of Afghan haggard with sweet, earthy notes and hints of forest fruits and berries.
Terpenica High Level Brut was the preferred tasting choice Expo Cannabis with patrons enjoying copious amounts refills throughout each day. Using their signature grape combination of Chardonnay and Viognier, the bodega created a wine that expressed fruity and spicy aromas. In the mouth, this wine is fruity and sweet, having a flavour reminiscent of ripe fruits with spicy touches. Its green colour and delicate turbidity, along with its small and abundant bubbles that form an intense and long-lasting crown reaffirms the consistent quality throughout the entire Terpenica range
Expo Cannabis serves as more than a trade show; it is a cultural event that educates and promotes the responsible use of cannabis, especially its therapeutic and wellness applications. The event’s family-friendly atmosphere, complete with interactive gardening for kids and a chill-out zone, further showcased its community-oriented approach. Terpenica Sparkling Wine epitomises the spirit of Expo Cannabis by marrying tradition with innovation, which for wine enthusiasts, opens up a new category that blends the nuanced world of wine aromas with the essence of cannabis, offering an enriched sensory experience.
The future of Argentine wine may well see more of these unique blends, reflecting a national landscape where traditional and new agricultural products coexist. As the world’s perspective on cannabis shifts, Expo Cannabis Argentina will continue to serve as a pioneering platform, with Terpenica Sparkling Wine standing as a testament to Argentina’s forward-thinking approach to both wine and cannabis. The stag has definitely been set for a thriving relationship between these industries, showing Argentina’s commitment to exploring and celebrating its natural resources through creative and responsible means. Salud!
{"xml":"xml"}{"jamaica-observer":"Jamaica Observer"}
MILAN, Italy (AFP)— Paul Pogba's Juventus career is over after the Serie A club announced on Friday that the France midfielder's contract had been ter...
{"jamaica-observer":"Jamaica Observer"}
KINGSTON, Jamaica— The Supreme Court on Friday ruled in favour of Bank of Nova Scotia (BNS) in a lawsuit brought by Member of Parliament for St Cather...
{"jamaica-observer":"Jamaica Observer"}
WELLINGTON, New Zealand (AFP)— Indigenous Maori lawmakers disrupted New Zealand's parliament with a stirring "haka" dance, voicing opposition to a rac...
{"jamaica-observer":"Jamaica Observer"}
KINGSTON, Jamaica— The departure of the Reggae Boyz to St Louis, Missouri for Monday’s return leg of the Concacaf Nationals League quarter-final game ...
{"jamaica-observer":"Jamaica Observer"}
KINGSTON, Jamaica— Grammy-award winning dancehall artiste Sean Paul Henriques received an honorary doctorate during Friday’s graduation ceremony at th...
{"jamaica-observer":"Jamaica Observer"}
For most of his career, Richie Flo has worked with producers in Jamaica and Canada, where the singer has lived since 2011. He changed course for Bounc...
{"jamaica-observer":"Jamaica Observer"}
KINGSTON, Jamaica— Prime Minister Dr Andrew Holness is encouraging Jamaicans to enroll in the National Identification System (NIDS) in order to rece...
{"jamaica-observer":"Jamaica Observer"}
Craig Butler announces 'retirement' from schoolboy football
Defending champions Mona High were knocked out of the ISSA/Digicel Manning Cup on Friday as they were beaten 2-0 by Kingston College (KC) at Stadium E...
{"jamaica-observer":"Jamaica Observer"}
').appendTo('.footer:first');
$('
').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 = $(this).attr('ta_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'
});
$('
×
').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();
}
});
}
});
}
function posts_slot_3_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-3")[0];
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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i
div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-3 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 20 && i<20){
if(space_available < space_occupied){
new_title = title.substr(0,title.length - 6) + '...';
myarticle.querySelectorAll('.title a')[0].innerHTML = new_title;
posts_slot_3_fit_title(myarticle,i);
}
else{
return true;
}
}
}
function posts_slot_3_fit_body(){
if (typeof document.getElementById("posts_slot-3").getElementsByClassName("template_2115_homepage_trio_pizpalu_3") !== 'undefined') {
for(k=0;(k').appendTo('.footer:first');
$('
').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 = $(this).attr('ta_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'
});
$('
×
').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();
}
});
}
});
}
function posts_slot_3_tablet_style(){
(function($) {
if($("body")[0].className.match(/main_tmpl/)!=null){
post_slot = $("#posts_slot-3")[0];
tablet_style_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--tablet-style-js.+?\;/)[0];
tablet_style_value = tablet_style_value.replace(/\s/g,"");
tablet_style_value = tablet_style_value.replace(/^.+?\:/g,"");
tablet_style_value = tablet_style_value.replace(/\;/g,"");
if (tablet_style_value != null){
if (tablet_style_value == "pc"){
// To do nothing
} else if (tablet_style_value == "mobile"){
variable_pc_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/min-width.+?\;/)[0];
variable_pc_value = variable_pc_value.replace(/\s/g,"");
variable_pc_value = variable_pc_value.replace(/^.+?\:/g,"");
variable_pc_value = variable_pc_value.replace(/\).*/,"");
pc_value = post_slot.querySelector("[pc]").innerHTML.match(/min-width.+?\;/)[0];
pc_value = pc_value.replace(/\s/g,"");
pc_value = pc_value.replace(/^.+?\:/g,"");
pc_value = pc_value.replace(/\).*/,"");
style_default_pc_value = post_slot.querySelectorAll("[style_default]")[0].innerHTML.match(/min-width.+?\;/)[0];
style_default_pc_value = style_default_pc_value.replace(/\s/g,"");
style_default_pc_value = style_default_pc_value.replace(/^.+?\:/g,"");
style_default_pc_value = style_default_pc_value.replace(/\).*/,"");
variable_mobile_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/max-width.+?\;/)[0];
variable_mobile_value = variable_mobile_value.replace(/\s/g,"");
variable_mobile_value = variable_mobile_value.replace(/^.+?\:/g,"");
variable_mobile_value = variable_mobile_value.replace(/\).*/,"");
mobile_value = post_slot.querySelector("[mobile]").innerHTML.match(/max-width.+?\;/)[0];
mobile_value = mobile_value.replace(/\s/g,"");
mobile_value = mobile_value.replace(/^.+?\:/g,"");
mobile_value = mobile_value.replace(/\).*/,"");
style_default_mobile_value = post_slot.querySelectorAll("[style_default]")[1].innerHTML.match(/max-width.+?\;/)[0];
style_default_mobile_value = style_default_mobile_value.replace(/\s/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/^.+?\:/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/\).*/,"");
post_slot.querySelectorAll("[variable-pc]")[0].innerHTML = post_slot.querySelectorAll("[variable-pc]")[0].innerHTML.replace(variable_pc_value, "900px");
post_slot.querySelectorAll("[pc]")[0].innerHTML = post_slot.querySelectorAll("[pc]")[0].innerHTML.replace(pc_value, "900px");
post_slot.querySelectorAll("[style_default]")[0].innerHTML = post_slot.querySelectorAll("[style_default]")[0].innerHTML.replace(style_default_pc_value, "900px");
post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML = post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML.replace(variable_mobile_value, "899px");
post_slot.querySelectorAll("[mobile]")[0].innerHTML = post_slot.querySelectorAll("[mobile]")[0].innerHTML.replace(mobile_value, "899px");
post_slot.querySelectorAll("[style_default]")[1].innerHTML = post_slot.querySelectorAll("[style_default]")[1].innerHTML.replace(style_default_mobile_value, "899px");
}
}
}
})(jQuery);
}
function posts_slot_3_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-3")[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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i
div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-3 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i
/*
const config = { childList: true, subtree: true, attributes: true};
const callback = (mutationList, observer) => {
for (const mutation of mutationList) {
my_ad=mutationList[0]['addedNodes'][0];
max_height="";
my_ad.querySelector("img").addEventListener("load", function() {
max_height="";
max_height= my_ad.querySelector("img").offsetHeight;
if(max_height!=""){
my_ad.style.height=max_height + "px";
}
max_height="";
observer.disconnect();
});
}
};
const observer = new MutationObserver(callback);
all_ads_WP=jQuery("[data-wpas-zoneid]");
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 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_3_fit_body(){
if (typeof document.getElementById("posts_slot-3").getElementsByClassName("template_2085_mob_homepage_trio_adula_3") !== 'undefined') {
for(k=0;(k
A technical operator at Digicel Jamaica, Marlon Williams has won the Consumer Advisory Committee on Utilities (CACU) second annual Utility Customer Se...
{"xml":"xml"}{"jamaica-observer":"Jamaica Observer"}
').appendTo('.footer:first');
$('
').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 = $(this).attr('ta_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'
});
$('
×
').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();
}
});
}
});
}
function posts_slot_4_tablet_style(){
(function($) {
if($("body")[0].className.match(/main_tmpl/)!=null){
post_slot = $("#posts_slot-4")[0];
tablet_style_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--tablet-style-js.+?\;/)[0];
tablet_style_value = tablet_style_value.replace(/\s/g,"");
tablet_style_value = tablet_style_value.replace(/^.+?\:/g,"");
tablet_style_value = tablet_style_value.replace(/\;/g,"");
if (tablet_style_value != null){
if (tablet_style_value == "pc"){
// To do nothing
} else if (tablet_style_value == "mobile"){
variable_pc_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/min-width.+?\;/)[0];
variable_pc_value = variable_pc_value.replace(/\s/g,"");
variable_pc_value = variable_pc_value.replace(/^.+?\:/g,"");
variable_pc_value = variable_pc_value.replace(/\).*/,"");
pc_value = post_slot.querySelector("[pc]").innerHTML.match(/min-width.+?\;/)[0];
pc_value = pc_value.replace(/\s/g,"");
pc_value = pc_value.replace(/^.+?\:/g,"");
pc_value = pc_value.replace(/\).*/,"");
style_default_pc_value = post_slot.querySelectorAll("[style_default]")[0].innerHTML.match(/min-width.+?\;/)[0];
style_default_pc_value = style_default_pc_value.replace(/\s/g,"");
style_default_pc_value = style_default_pc_value.replace(/^.+?\:/g,"");
style_default_pc_value = style_default_pc_value.replace(/\).*/,"");
variable_mobile_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/max-width.+?\;/)[0];
variable_mobile_value = variable_mobile_value.replace(/\s/g,"");
variable_mobile_value = variable_mobile_value.replace(/^.+?\:/g,"");
variable_mobile_value = variable_mobile_value.replace(/\).*/,"");
mobile_value = post_slot.querySelector("[mobile]").innerHTML.match(/max-width.+?\;/)[0];
mobile_value = mobile_value.replace(/\s/g,"");
mobile_value = mobile_value.replace(/^.+?\:/g,"");
mobile_value = mobile_value.replace(/\).*/,"");
style_default_mobile_value = post_slot.querySelectorAll("[style_default]")[1].innerHTML.match(/max-width.+?\;/)[0];
style_default_mobile_value = style_default_mobile_value.replace(/\s/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/^.+?\:/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/\).*/,"");
post_slot.querySelectorAll("[variable-pc]")[0].innerHTML = post_slot.querySelectorAll("[variable-pc]")[0].innerHTML.replace(variable_pc_value, "900px");
post_slot.querySelectorAll("[pc]")[0].innerHTML = post_slot.querySelectorAll("[pc]")[0].innerHTML.replace(pc_value, "900px");
post_slot.querySelectorAll("[style_default]")[0].innerHTML = post_slot.querySelectorAll("[style_default]")[0].innerHTML.replace(style_default_pc_value, "900px");
post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML = post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML.replace(variable_mobile_value, "899px");
post_slot.querySelectorAll("[mobile]")[0].innerHTML = post_slot.querySelectorAll("[mobile]")[0].innerHTML.replace(mobile_value, "899px");
post_slot.querySelectorAll("[style_default]")[1].innerHTML = post_slot.querySelectorAll("[style_default]")[1].innerHTML.replace(style_default_mobile_value, "899px");
}
}
}
})(jQuery);
}
function posts_slot_4_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-4")[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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i
div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-4 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i
/*
const config = { childList: true, subtree: true, attributes: true};
const callback = (mutationList, observer) => {
for (const mutation of mutationList) {
my_ad=mutationList[0]['addedNodes'][0];
max_height="";
my_ad.querySelector("img").addEventListener("load", function() {
max_height="";
max_height= my_ad.querySelector("img").offsetHeight;
if(max_height!=""){
my_ad.style.height=max_height + "px";
}
max_height="";
observer.disconnect();
});
}
};
const observer = new MutationObserver(callback);
all_ads_WP=jQuery("[data-wpas-zoneid]");
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 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_4_fit_body(){
if (typeof document.getElementById("posts_slot-4").getElementsByClassName("template_2086_homepage_single_adula_3") !== 'undefined') {
for(k=0;(k ').appendTo('.footer:first');
$('').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 = $(this).attr('ta_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'
});
$('×
').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();
}
});
}
});
}
function posts_slot_4_tablet_style(){
(function($) {
if($("body")[0].className.match(/main_tmpl/)!=null){
post_slot = $("#posts_slot-4")[0];
tablet_style_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--tablet-style-js.+?\;/)[0];
tablet_style_value = tablet_style_value.replace(/\s/g,"");
tablet_style_value = tablet_style_value.replace(/^.+?\:/g,"");
tablet_style_value = tablet_style_value.replace(/\;/g,"");
if (tablet_style_value != null){
if (tablet_style_value == "pc"){
// To do nothing
} else if (tablet_style_value == "mobile"){
variable_pc_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/min-width.+?\;/)[0];
variable_pc_value = variable_pc_value.replace(/\s/g,"");
variable_pc_value = variable_pc_value.replace(/^.+?\:/g,"");
variable_pc_value = variable_pc_value.replace(/\).*/,"");
pc_value = post_slot.querySelector("[pc]").innerHTML.match(/min-width.+?\;/)[0];
pc_value = pc_value.replace(/\s/g,"");
pc_value = pc_value.replace(/^.+?\:/g,"");
pc_value = pc_value.replace(/\).*/,"");
style_default_pc_value = post_slot.querySelectorAll("[style_default]")[0].innerHTML.match(/min-width.+?\;/)[0];
style_default_pc_value = style_default_pc_value.replace(/\s/g,"");
style_default_pc_value = style_default_pc_value.replace(/^.+?\:/g,"");
style_default_pc_value = style_default_pc_value.replace(/\).*/,"");
variable_mobile_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/max-width.+?\;/)[0];
variable_mobile_value = variable_mobile_value.replace(/\s/g,"");
variable_mobile_value = variable_mobile_value.replace(/^.+?\:/g,"");
variable_mobile_value = variable_mobile_value.replace(/\).*/,"");
mobile_value = post_slot.querySelector("[mobile]").innerHTML.match(/max-width.+?\;/)[0];
mobile_value = mobile_value.replace(/\s/g,"");
mobile_value = mobile_value.replace(/^.+?\:/g,"");
mobile_value = mobile_value.replace(/\).*/,"");
style_default_mobile_value = post_slot.querySelectorAll("[style_default]")[1].innerHTML.match(/max-width.+?\;/)[0];
style_default_mobile_value = style_default_mobile_value.replace(/\s/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/^.+?\:/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/\).*/,"");
post_slot.querySelectorAll("[variable-pc]")[0].innerHTML = post_slot.querySelectorAll("[variable-pc]")[0].innerHTML.replace(variable_pc_value, "900px");
post_slot.querySelectorAll("[pc]")[0].innerHTML = post_slot.querySelectorAll("[pc]")[0].innerHTML.replace(pc_value, "900px");
post_slot.querySelectorAll("[style_default]")[0].innerHTML = post_slot.querySelectorAll("[style_default]")[0].innerHTML.replace(style_default_pc_value, "900px");
post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML = post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML.replace(variable_mobile_value, "899px");
post_slot.querySelectorAll("[mobile]")[0].innerHTML = post_slot.querySelectorAll("[mobile]")[0].innerHTML.replace(mobile_value, "899px");
post_slot.querySelectorAll("[style_default]")[1].innerHTML = post_slot.querySelectorAll("[style_default]")[1].innerHTML.replace(style_default_mobile_value, "899px");
}
}
}
})(jQuery);
}
function posts_slot_4_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-4")[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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-4 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i
/*
const config = { childList: true, subtree: true, attributes: true};
const callback = (mutationList, observer) => {
for (const mutation of mutationList) {
my_ad=mutationList[0]['addedNodes'][0];
max_height="";
my_ad.querySelector("img").addEventListener("load", function() {
max_height="";
max_height= my_ad.querySelector("img").offsetHeight;
if(max_height!=""){
my_ad.style.height=max_height + "px";
}
max_height="";
observer.disconnect();
});
}
};
const observer = new MutationObserver(callback);
all_ads_WP=jQuery("[data-wpas-zoneid]");
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 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_4_fit_body(){
if (typeof document.getElementById("posts_slot-4").getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') {
for(k=0;(k
Howard Campbell 
The third and final Grammy certificates ceremonies staged by Back 2 Da Future Music Limited took place on October 22 at The British Library in London....
{"xml":"xml"}{"jamaica-observer":"Jamaica Observer"}
').appendTo('.footer:first');
$('
').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 = $(this).attr('ta_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'
});
$('
×
').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();
}
});
}
});
}
function posts_slot_5_tablet_style(){
(function($) {
if($("body")[0].className.match(/main_tmpl/)!=null){
post_slot = $("#posts_slot-5")[0];
tablet_style_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--tablet-style-js.+?\;/)[0];
tablet_style_value = tablet_style_value.replace(/\s/g,"");
tablet_style_value = tablet_style_value.replace(/^.+?\:/g,"");
tablet_style_value = tablet_style_value.replace(/\;/g,"");
if (tablet_style_value != null){
if (tablet_style_value == "pc"){
// To do nothing
} else if (tablet_style_value == "mobile"){
variable_pc_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/min-width.+?\;/)[0];
variable_pc_value = variable_pc_value.replace(/\s/g,"");
variable_pc_value = variable_pc_value.replace(/^.+?\:/g,"");
variable_pc_value = variable_pc_value.replace(/\).*/,"");
pc_value = post_slot.querySelector("[pc]").innerHTML.match(/min-width.+?\;/)[0];
pc_value = pc_value.replace(/\s/g,"");
pc_value = pc_value.replace(/^.+?\:/g,"");
pc_value = pc_value.replace(/\).*/,"");
style_default_pc_value = post_slot.querySelectorAll("[style_default]")[0].innerHTML.match(/min-width.+?\;/)[0];
style_default_pc_value = style_default_pc_value.replace(/\s/g,"");
style_default_pc_value = style_default_pc_value.replace(/^.+?\:/g,"");
style_default_pc_value = style_default_pc_value.replace(/\).*/,"");
variable_mobile_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/max-width.+?\;/)[0];
variable_mobile_value = variable_mobile_value.replace(/\s/g,"");
variable_mobile_value = variable_mobile_value.replace(/^.+?\:/g,"");
variable_mobile_value = variable_mobile_value.replace(/\).*/,"");
mobile_value = post_slot.querySelector("[mobile]").innerHTML.match(/max-width.+?\;/)[0];
mobile_value = mobile_value.replace(/\s/g,"");
mobile_value = mobile_value.replace(/^.+?\:/g,"");
mobile_value = mobile_value.replace(/\).*/,"");
style_default_mobile_value = post_slot.querySelectorAll("[style_default]")[1].innerHTML.match(/max-width.+?\;/)[0];
style_default_mobile_value = style_default_mobile_value.replace(/\s/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/^.+?\:/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/\).*/,"");
post_slot.querySelectorAll("[variable-pc]")[0].innerHTML = post_slot.querySelectorAll("[variable-pc]")[0].innerHTML.replace(variable_pc_value, "900px");
post_slot.querySelectorAll("[pc]")[0].innerHTML = post_slot.querySelectorAll("[pc]")[0].innerHTML.replace(pc_value, "900px");
post_slot.querySelectorAll("[style_default]")[0].innerHTML = post_slot.querySelectorAll("[style_default]")[0].innerHTML.replace(style_default_pc_value, "900px");
post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML = post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML.replace(variable_mobile_value, "899px");
post_slot.querySelectorAll("[mobile]")[0].innerHTML = post_slot.querySelectorAll("[mobile]")[0].innerHTML.replace(mobile_value, "899px");
post_slot.querySelectorAll("[style_default]")[1].innerHTML = post_slot.querySelectorAll("[style_default]")[1].innerHTML.replace(style_default_mobile_value, "899px");
}
}
}
})(jQuery);
}
function posts_slot_5_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-5")[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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i
div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-5 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i
/*
const config = { childList: true, subtree: true, attributes: true};
const callback = (mutationList, observer) => {
for (const mutation of mutationList) {
my_ad=mutationList[0]['addedNodes'][0];
max_height="";
my_ad.querySelector("img").addEventListener("load", function() {
max_height="";
max_height= my_ad.querySelector("img").offsetHeight;
if(max_height!=""){
my_ad.style.height=max_height + "px";
}
max_height="";
observer.disconnect();
});
}
};
const observer = new MutationObserver(callback);
all_ads_WP=jQuery("[data-wpas-zoneid]");
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 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_5_fit_body(){
if (typeof document.getElementById("posts_slot-5").getElementsByClassName("template_2086_homepage_single_adula_3") !== 'undefined') {
for(k=0;(k').appendTo('.footer:first');
$('
').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 = $(this).attr('ta_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'
});
$('
×
').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();
}
});
}
});
}
function posts_slot_5_tablet_style(){
(function($) {
if($("body")[0].className.match(/main_tmpl/)!=null){
post_slot = $("#posts_slot-5")[0];
tablet_style_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--tablet-style-js.+?\;/)[0];
tablet_style_value = tablet_style_value.replace(/\s/g,"");
tablet_style_value = tablet_style_value.replace(/^.+?\:/g,"");
tablet_style_value = tablet_style_value.replace(/\;/g,"");
if (tablet_style_value != null){
if (tablet_style_value == "pc"){
// To do nothing
} else if (tablet_style_value == "mobile"){
variable_pc_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/min-width.+?\;/)[0];
variable_pc_value = variable_pc_value.replace(/\s/g,"");
variable_pc_value = variable_pc_value.replace(/^.+?\:/g,"");
variable_pc_value = variable_pc_value.replace(/\).*/,"");
pc_value = post_slot.querySelector("[pc]").innerHTML.match(/min-width.+?\;/)[0];
pc_value = pc_value.replace(/\s/g,"");
pc_value = pc_value.replace(/^.+?\:/g,"");
pc_value = pc_value.replace(/\).*/,"");
style_default_pc_value = post_slot.querySelectorAll("[style_default]")[0].innerHTML.match(/min-width.+?\;/)[0];
style_default_pc_value = style_default_pc_value.replace(/\s/g,"");
style_default_pc_value = style_default_pc_value.replace(/^.+?\:/g,"");
style_default_pc_value = style_default_pc_value.replace(/\).*/,"");
variable_mobile_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/max-width.+?\;/)[0];
variable_mobile_value = variable_mobile_value.replace(/\s/g,"");
variable_mobile_value = variable_mobile_value.replace(/^.+?\:/g,"");
variable_mobile_value = variable_mobile_value.replace(/\).*/,"");
mobile_value = post_slot.querySelector("[mobile]").innerHTML.match(/max-width.+?\;/)[0];
mobile_value = mobile_value.replace(/\s/g,"");
mobile_value = mobile_value.replace(/^.+?\:/g,"");
mobile_value = mobile_value.replace(/\).*/,"");
style_default_mobile_value = post_slot.querySelectorAll("[style_default]")[1].innerHTML.match(/max-width.+?\;/)[0];
style_default_mobile_value = style_default_mobile_value.replace(/\s/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/^.+?\:/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/\).*/,"");
post_slot.querySelectorAll("[variable-pc]")[0].innerHTML = post_slot.querySelectorAll("[variable-pc]")[0].innerHTML.replace(variable_pc_value, "900px");
post_slot.querySelectorAll("[pc]")[0].innerHTML = post_slot.querySelectorAll("[pc]")[0].innerHTML.replace(pc_value, "900px");
post_slot.querySelectorAll("[style_default]")[0].innerHTML = post_slot.querySelectorAll("[style_default]")[0].innerHTML.replace(style_default_pc_value, "900px");
post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML = post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML.replace(variable_mobile_value, "899px");
post_slot.querySelectorAll("[mobile]")[0].innerHTML = post_slot.querySelectorAll("[mobile]")[0].innerHTML.replace(mobile_value, "899px");
post_slot.querySelectorAll("[style_default]")[1].innerHTML = post_slot.querySelectorAll("[style_default]")[1].innerHTML.replace(style_default_mobile_value, "899px");
}
}
}
})(jQuery);
}
function posts_slot_5_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-5")[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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i
div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-5 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i
/*
const config = { childList: true, subtree: true, attributes: true};
const callback = (mutationList, observer) => {
for (const mutation of mutationList) {
my_ad=mutationList[0]['addedNodes'][0];
max_height="";
my_ad.querySelector("img").addEventListener("load", function() {
max_height="";
max_height= my_ad.querySelector("img").offsetHeight;
if(max_height!=""){
my_ad.style.height=max_height + "px";
}
max_height="";
observer.disconnect();
});
}
};
const observer = new MutationObserver(callback);
all_ads_WP=jQuery("[data-wpas-zoneid]");
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 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_5_fit_body(){
if (typeof document.getElementById("posts_slot-5").getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') {
for(k=0;(k
BRASILIA, Brazil (AFP) - A failed bomb attack on Brazil's Supreme Court is being probed as a "terrorist act" with possible links to an insurrection la...
{"jamaica-observer":"Jamaica Observer"}
').appendTo('.footer:first');
$('
').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 = $(this).attr('ta_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'
});
$('
×
').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();
}
});
}
});
}
function posts_slot_6_tablet_style(){
(function($) {
if($("body")[0].className.match(/main_tmpl/)!=null){
post_slot = $("#posts_slot-6")[0];
tablet_style_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--tablet-style-js.+?\;/)[0];
tablet_style_value = tablet_style_value.replace(/\s/g,"");
tablet_style_value = tablet_style_value.replace(/^.+?\:/g,"");
tablet_style_value = tablet_style_value.replace(/\;/g,"");
if (tablet_style_value != null){
if (tablet_style_value == "pc"){
// To do nothing
} else if (tablet_style_value == "mobile"){
variable_pc_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/min-width.+?\;/)[0];
variable_pc_value = variable_pc_value.replace(/\s/g,"");
variable_pc_value = variable_pc_value.replace(/^.+?\:/g,"");
variable_pc_value = variable_pc_value.replace(/\).*/,"");
pc_value = post_slot.querySelector("[pc]").innerHTML.match(/min-width.+?\;/)[0];
pc_value = pc_value.replace(/\s/g,"");
pc_value = pc_value.replace(/^.+?\:/g,"");
pc_value = pc_value.replace(/\).*/,"");
style_default_pc_value = post_slot.querySelectorAll("[style_default]")[0].innerHTML.match(/min-width.+?\;/)[0];
style_default_pc_value = style_default_pc_value.replace(/\s/g,"");
style_default_pc_value = style_default_pc_value.replace(/^.+?\:/g,"");
style_default_pc_value = style_default_pc_value.replace(/\).*/,"");
variable_mobile_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/max-width.+?\;/)[0];
variable_mobile_value = variable_mobile_value.replace(/\s/g,"");
variable_mobile_value = variable_mobile_value.replace(/^.+?\:/g,"");
variable_mobile_value = variable_mobile_value.replace(/\).*/,"");
mobile_value = post_slot.querySelector("[mobile]").innerHTML.match(/max-width.+?\;/)[0];
mobile_value = mobile_value.replace(/\s/g,"");
mobile_value = mobile_value.replace(/^.+?\:/g,"");
mobile_value = mobile_value.replace(/\).*/,"");
style_default_mobile_value = post_slot.querySelectorAll("[style_default]")[1].innerHTML.match(/max-width.+?\;/)[0];
style_default_mobile_value = style_default_mobile_value.replace(/\s/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/^.+?\:/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/\).*/,"");
post_slot.querySelectorAll("[variable-pc]")[0].innerHTML = post_slot.querySelectorAll("[variable-pc]")[0].innerHTML.replace(variable_pc_value, "900px");
post_slot.querySelectorAll("[pc]")[0].innerHTML = post_slot.querySelectorAll("[pc]")[0].innerHTML.replace(pc_value, "900px");
post_slot.querySelectorAll("[style_default]")[0].innerHTML = post_slot.querySelectorAll("[style_default]")[0].innerHTML.replace(style_default_pc_value, "900px");
post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML = post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML.replace(variable_mobile_value, "899px");
post_slot.querySelectorAll("[mobile]")[0].innerHTML = post_slot.querySelectorAll("[mobile]")[0].innerHTML.replace(mobile_value, "899px");
post_slot.querySelectorAll("[style_default]")[1].innerHTML = post_slot.querySelectorAll("[style_default]")[1].innerHTML.replace(style_default_mobile_value, "899px");
}
}
}
})(jQuery);
}
function posts_slot_6_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-6")[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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i
div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-6 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i
/*
const config = { childList: true, subtree: true, attributes: true};
const callback = (mutationList, observer) => {
for (const mutation of mutationList) {
my_ad=mutationList[0]['addedNodes'][0];
max_height="";
my_ad.querySelector("img").addEventListener("load", function() {
max_height="";
max_height= my_ad.querySelector("img").offsetHeight;
if(max_height!=""){
my_ad.style.height=max_height + "px";
}
max_height="";
observer.disconnect();
});
}
};
const observer = new MutationObserver(callback);
all_ads_WP=jQuery("[data-wpas-zoneid]");
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 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_6_fit_body(){
if (typeof document.getElementById("posts_slot-6").getElementsByClassName("template_2086_homepage_single_adula_3") !== 'undefined') {
for(k=0;(k').appendTo('.footer:first');
$('
').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 = $(this).attr('ta_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'
});
$('
×
').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();
}
});
}
});
}
function posts_slot_6_tablet_style(){
(function($) {
if($("body")[0].className.match(/main_tmpl/)!=null){
post_slot = $("#posts_slot-6")[0];
tablet_style_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/--tablet-style-js.+?\;/)[0];
tablet_style_value = tablet_style_value.replace(/\s/g,"");
tablet_style_value = tablet_style_value.replace(/^.+?\:/g,"");
tablet_style_value = tablet_style_value.replace(/\;/g,"");
if (tablet_style_value != null){
if (tablet_style_value == "pc"){
// To do nothing
} else if (tablet_style_value == "mobile"){
variable_pc_value = post_slot.querySelector("[variable-pc]").innerHTML.match(/min-width.+?\;/)[0];
variable_pc_value = variable_pc_value.replace(/\s/g,"");
variable_pc_value = variable_pc_value.replace(/^.+?\:/g,"");
variable_pc_value = variable_pc_value.replace(/\).*/,"");
pc_value = post_slot.querySelector("[pc]").innerHTML.match(/min-width.+?\;/)[0];
pc_value = pc_value.replace(/\s/g,"");
pc_value = pc_value.replace(/^.+?\:/g,"");
pc_value = pc_value.replace(/\).*/,"");
style_default_pc_value = post_slot.querySelectorAll("[style_default]")[0].innerHTML.match(/min-width.+?\;/)[0];
style_default_pc_value = style_default_pc_value.replace(/\s/g,"");
style_default_pc_value = style_default_pc_value.replace(/^.+?\:/g,"");
style_default_pc_value = style_default_pc_value.replace(/\).*/,"");
variable_mobile_value = post_slot.querySelector("[variable-mobile]").innerHTML.match(/max-width.+?\;/)[0];
variable_mobile_value = variable_mobile_value.replace(/\s/g,"");
variable_mobile_value = variable_mobile_value.replace(/^.+?\:/g,"");
variable_mobile_value = variable_mobile_value.replace(/\).*/,"");
mobile_value = post_slot.querySelector("[mobile]").innerHTML.match(/max-width.+?\;/)[0];
mobile_value = mobile_value.replace(/\s/g,"");
mobile_value = mobile_value.replace(/^.+?\:/g,"");
mobile_value = mobile_value.replace(/\).*/,"");
style_default_mobile_value = post_slot.querySelectorAll("[style_default]")[1].innerHTML.match(/max-width.+?\;/)[0];
style_default_mobile_value = style_default_mobile_value.replace(/\s/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/^.+?\:/g,"");
style_default_mobile_value = style_default_mobile_value.replace(/\).*/,"");
post_slot.querySelectorAll("[variable-pc]")[0].innerHTML = post_slot.querySelectorAll("[variable-pc]")[0].innerHTML.replace(variable_pc_value, "900px");
post_slot.querySelectorAll("[pc]")[0].innerHTML = post_slot.querySelectorAll("[pc]")[0].innerHTML.replace(pc_value, "900px");
post_slot.querySelectorAll("[style_default]")[0].innerHTML = post_slot.querySelectorAll("[style_default]")[0].innerHTML.replace(style_default_pc_value, "900px");
post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML = post_slot.querySelectorAll("[variable-mobile]")[0].innerHTML.replace(variable_mobile_value, "899px");
post_slot.querySelectorAll("[mobile]")[0].innerHTML = post_slot.querySelectorAll("[mobile]")[0].innerHTML.replace(mobile_value, "899px");
post_slot.querySelectorAll("[style_default]")[1].innerHTML = post_slot.querySelectorAll("[style_default]")[1].innerHTML.replace(style_default_mobile_value, "899px");
}
}
}
})(jQuery);
}
function posts_slot_6_category_position(){
//if the page is using body main_tmpl (and not fallback)
if(jQuery("body")[0].className.match(/main_tmpl/)!=null){
post_slot = jQuery("#posts_slot-6")[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=="follow-order-content"){
}
else if(category_position_value=="onimage-bottom-right"){
articles = post_slot.querySelectorAll('article');
for(i=0;i
div");
myquery[0].style.height="";
myquery[0].children[0].style.height="";
myquery[0].children[0].style.display="";
myquery[0].children[0].style.flexDirection = "";
//myquery[0].children[0].style.alignItems = "center";
//post_slot.parentElement.style.alignItems="stretch";
//CHANGE STYLE
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.parentElement.style.alignItems = "center";
post_slot.parentElement.style.height="100%";
post_slot.style.height="100%";
myquery=jQuery("#posts_slot-6 > 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";
//myquery[0].children[0].style.alignItems = "center";
articles = post_slot.querySelectorAll('article');
for(i=0;i
/*
const config = { childList: true, subtree: true, attributes: true};
const callback = (mutationList, observer) => {
for (const mutation of mutationList) {
my_ad=mutationList[0]['addedNodes'][0];
max_height="";
my_ad.querySelector("img").addEventListener("load", function() {
max_height="";
max_height= my_ad.querySelector("img").offsetHeight;
if(max_height!=""){
my_ad.style.height=max_height + "px";
}
max_height="";
observer.disconnect();
});
}
};
const observer = new MutationObserver(callback);
all_ads_WP=jQuery("[data-wpas-zoneid]");
for(i=0;i= 600){
article_clickable = post_slot.querySelector("[variable-pc]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
} else {
article_clickable = post_slot.querySelector("[variable-mobile]").innerHTML.match(/--article-clickable-js.+?\;/)[0];
article_clickable = article_clickable.replace(/\s/g,"");
article_clickable = article_clickable.replace(/^.+?\:/g,"");
article_clickable = article_clickable.replace(/\;/g,"");
}
if (article_clickable == "active"){
for(i=0;i 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_6_fit_body(){
if (typeof document.getElementById("posts_slot-6").getElementsByClassName("template_2086_mob_homepage_single_adula_3") !== 'undefined') {
for(k=0;(k