view original
post
Jamaica Agricultural Commodities Regulatory Authority Acting Director General Wayne Hunter highlights a point during a press conference at the authority’s head office in Kingston on Monday. (Photo: Karl Mclarty)
BY ALECIA SMITH Senior staff reporter smitha@jamaicaobserver.com
July 16, 2024
Hurricane also affected pimento, cocoa, nutmeg and ginger; no shortage expected
THE agricultural commodities sector suffered losses estimated at $300 million during Hurricane Beryl’s passage on July 3, the Jamaica Agricultural Commodities Regulatory Authority (JACRA) said Monday.
JACRA has regulatory oversight for the coffee, cocoa, coconut, pimento, ginger, turmeric, and nutmeg industries.
However, the authority’s acting director general, Wayne Hunter, said the losses, which mainly impacted coffee and pimento crops, will not affect consumers on a widescale.
“If you want some pimento for some porridge or some soup it is available on the market. Consumers will have [the commodities they require]… And just as Prime Minister [Andrew Holness] said, if you see any price gouging, let us know, because there is no lack of demand for the commodities at this time,” Hunter said in response to the Jamaica Observer’s query during a press conference at JACRA’s Willie Henry Drive head office in Kingston on Monday.
Hunter, who said the figures are based on a preliminary assessment of the hurricane’s impact on the commodities sector, said that apart from 60 per cent damage to coffee farms and farming infrastructure amounting to $200 million in losses and the 50 per cent damage to pimento crops totalling $22 million, the other crops had minimal damage.
The cocoa crop sustained 40 per cent damage, with revenue loss of $3.5 million; nutmeg 20 per cent damage and $1 million in losses; turmeric and ginger farms sustained 20 per cent damage with a total loss of $40 million. In terms of coconut, JACRA said that farmers suffered minor damage, but pointed out that assessment of the hurricane’s impact continues.
Senior director for coffee at JACRA Patrick Pitterson further explained that the stage the crops were at, when Hurricane Beryl passed, “made the difference”.
“For ginger and turmeric, those would have been harvested already, and we just started planting material for the crops, so little impact would be on those as it relates to the consumers. [In terms of] cocoa, probably only St Thomas had some reaping going on at the time…Cocoa was basically coming through the spring and just started flowering because they would have finished, the fall crop. So, most of the crop would’ve been off… so the product for the consumer would have already been in processing,” he said.
He noted as well that the routine harvesting period of November/December will be the same for the ginger and turmeric crops, despite the damage sustained, as work is done to improve the plants’ nutrient status and bring them back to production.
“The reaping period will be the same. We are now preparing the land and planting. So those crops are not impacted significantly. So it would’ve just been those farmers that would have pre-empted and planted like January/February and would have had shoots up. So the harvesting period would be the same,” he said.
In the meantime, the acting director general said JACRA will be putting a programme in place to assist commodity farmers to rebound.
“I know that coffee, cocoa, and pimento farmers are asking how JACRA will be able to assist them in one way or another. We completed last week our preliminary [assessment]. Now, we are looking at how… we are going to provide inputs such as fertilisers or chemicals, or even planting materials to help our farmers to get back [on their feet].”
“We have checked our inventory and we have pimento seedlings which are ready and available for distribution. We also have cocoa that is also ready for distribution. So we will work with our [field advisory] officers to ensure that a programme is developed, so that we [know] who we are supporting. We want to ensure that whenever we distribute planting materials or anything, be it fertiliser or chemicals, that those recipients are legitimate farmers. That will come through our farmers’ registration programme. So it will not be done arbitrarily,” he added.
PORT OF SPAIN, Trinidad (CMC) — Police are investigating the death of a 37-year-old seaman, who was found dead on board a vessel that docked in Port o…
MANCHESTER, Jamaica — Police seized a firearm after it was found in a bag in a taxi park in Mandeville on Monday afternoon. Officers said about 4:30 p…
KINGSTON, Jamaica — The Jamaica Public Service (JPS) is once again warning the public against making payments to individuals or teams who are posing a…
KINGSTON, Jamaica — The Ministry of Education and Youth is reporting that 212 schools sustained damage during the passage of Hurricane Beryl and will …
KINGSTON, Jamaica — The Azan family is providing much-needed relief to the people of St Elizabeth whose lives and livelihoods were ravaged during the …
WASHINGTON, United States (AFP) — Combative and ultra-loyal, JD Vance’s rise to Donald Trump’s running mate this November completes a remarkable trans…
Three-time Olympic gold medallist Shelly-Ann Fraser-Pryce is scheduled to make her long-awaited seasonal debut in Europe as she is down to compete in …
KINGSTON, Jamaica — The ongoing legal battle between Acting Principal of Jamaica College, Wayne Robinson, and former Jamaica College Old Boys’ Associa…
‘).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
Dear Editor, I have never been a supporter of former US President Donald Trump. I dislike most of his policies and he has shown who he is multiple tim…
‘).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
Five-time Olympian Atkinson wants Jamaicans to rally around debutants Lyn and Kirlew in Paris
BY DANIEL BLAKE Staff reporter blaked@jamaicaobserver.com 
ALTHOUGH not considered contenders in their events, swim legend Alia Atkinson is urging Jamaicans to support Sabrina Lyn and Josh Kirlew at the Paris …
‘).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
ROSEAU, Dominica (CMC) — Prime Minister Roosevelt Skerrit Monday said he remains “hopeful” that an agreement could be reached with the United Kingdom …
‘).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