view original
post
November 27, 2024
FirstRock Real Estate Investments Limited at the end of its third quarter period ended September 30, 2024 registered a loss of US$674,536 as its business continue to be depressed by the high-interest rate environment.
Nine-month losses for the group, which grew to US$1.4 million, was also almost US$496 million more than that incurred for the similar period in 2023.
Owing to higher policy interest rates by the Bank of Jamaica, which moved from a historic low of half a per cent (0.50) since October 2021 to the current 6.5 per cent, the company has been realising lower property income as pressure continues to weigh down property values resulting in a softening of the market.
As per the company’s latest financial filing, property income for the three-month period totalled US$49,056 while that over nine months was US$1,916,074 — down from US$1.1 million and US$4 million, respectively.
The construction industry, which boomed in the earlier part of the novel coronavirus outbreak, has in the last few years recorded steady decline in output as building activities ease. For the just completed July to September quarter, out-turns for the sector, according to Planning Institute of Jamaica (PIOJ) preliminary estimates, reflected a decline of 2.8 per cent.
“The group’s financial performance continues to reflect the impact of the ongoing high-interest rate environment in Jamaica, which exerts downward pressure on property values, resulting in lower property income relative to prior year. The results were driven primarily by unrealised foreign exchange losses on translation of foreign currency denominated liabilities, which amounted to US$72,034 for the three months ended September 30, 2024 and US$275,170 for the nine months ended September 30, 2024,” the company’s Chairman Norman Reid said in notes accompanying the financials.
“To mitigate the impact on the bottom line from reduced revenues, the Group managed to reduce its overall administrative & general expenses by 20 per cent to US$2,274,250 for the nine months ended September 30, 2024, compared to the same period in the prior year. This cost management effort is part of our ongoing strategy to mitigate the impact of reduced revenues on the bottom line,” the report to shareholders also said.
Despite the challenges, Reid, in expressing optimism, however, said that the group remains committed to delivering growth even as it grapples with the challenges of the macro-economic environment and real estate sector.
“During the quarter our subsidiary, FirstRock Capital Cayman, entered into an agreement to acquire a fully tenanted investment property in Grand Cayman. As the largest acquisition in our portfolio, this property is poised to notably enhance our rental income stream, reinforcing our expansion across the region. Alongside this achievement, our two KFC locations in Costa Rica continue to deliver stable rental income under long-term lease agreements, with plans underway for additional site developments,” the chairman said in outlining some positives for the group.
“By continuing to execute on our portfolio rebalancing strategy, which focuses on acquiring high-yield, income-generating properties across Latin America and the wider Caribbean region, we have built a resilient foundation that supports sustainable growth,” he added.
Banking on the successful execution of its rebalancing strategy through which it aims to dispose of variable income and underperforming residential and commercial properties to acquire more fixed income commercial properties with strong tenants, Reid said the group is looking forward to “finalising additional acquisitions across the region”, several of which he said are now being looked at as promising opportunities and are in advanced stages of negotiation.
“The group remains committed to unlocking value through strategic investments, which we believe will yield substantial long-term benefits to our stakeholders,” he said.
NEW YORK, United States (AFP)— Canadian rapper Drake has taken his feud with rival Kendrick Lamar to the US court system, accusing record label Univer…
KINGSTON, Jamaica— In a thrilling display of netball prowess, Jamaica’s Sunshine Girls defeated the England Roses 61-53 in the fourth and final game o…
KINGSTON, Jamaica — A man who pleaded guilty to assault occasioning actual bodily harm was referred to on-the-spot mediation with the complainant when…
TRELAWNY, Jamaica— For 12-year-old Nickayla Jarrett, being named the JN Foundation PEP scholar for the parish of Trelawny has been a “monumental achie…
KINGSTON, Jamaica- Tourism Minister Edmund Bartlett has welcomed the announcement that Virgin Atlantic will commence non-stop flight service between …
KINGSTON, Jamaica — The US dollar on Tuesday, November 26, ended trading at $158.27 down by 22 cents according to the Bank of Jamaica’s daily exchange…
MANCHESTER, United Kingdom (AFP)— Manchester City boss Pep Guardiola said a 3-3 draw in the Champions League against Feyenoord felt like another defea…
LISBON, Portugal (AFP)— Mikel Arteta said Arsenal delivered a Champions League statement of intent with their 5-1 demolition of Sporting Lisbon on Tue…
‘).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
Emerging threats, regulatory impacts, and cyber risk management
CHANGES in the banking sector associated with new digital initiatives have ushered in an unprecedented number of cybersecurity risks. As seen in recen…
‘).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
BY KEDIESHA PERRY Observer writer entertainment@jamaicaobserver.com 
Popular recording artsite Jahvillani has a message for the youth in his latest single, Haad Ayse Pickney. Produced by YGF Records and Scotty’s Muzik, …
‘).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
RUDDY ALLEN, Observer staff reporter, ruddya@jamaicaobserver.com 
With a 1-0 lead in the Vitality Netball Horizon Series, England Roses Captain Fran Williams is confident about their chances as they head into the fin…
‘).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