' +
'
' +
'
' +
'{{#webcast}}' +
'
' +
'{{/webcast}}' +
'{{#isFuture}}' +
'
' +
'{{/isFuture}}' +
'
' +
'
' +
'{{/items}}' +
'{{^items}}' +
'
There are no events scheduled.
'+
'{{/items}}'
/* beautify preserve:end */
),
complete: function(e) {
q4Defaults.addToCalendar($(e.target).find('.module_add-to-calendar'));
}
});
$('.module-slideshow .module_container--content').slideshow({
usePublic: GetViewType() != "0",
dateFormat: 'MM dd, yy',
aspectRatio: [16, 9],
itemNotFoundMessage: '
No presentations available right now. Please check back later.
',
tpl: (
/* beautify preserve:start */
'
' +
'
' +
// '' +
'' +
'
' +
'
' +
'
{{date}}
' +
'
{{{title}}}
' +
'
'
/* beautify preserve:end */
),
complete: function () {
var pdfPresentationIframe;
//domain of iframe. Since hosted on CMS, same domain
guestDomain = window.location.hostname;
window.onload = function () {
Porthole.trace("onload");
// Create a proxy window to send to and receive message from the guest iframe
pdfPresentationIframe = new Porthole.WindowProxy(guestDomain +
"/admin/files/js/porthole/proxy.html",
"module-slideshow_iframe");
pdfPresentationIframe.post({
transcripts: [
'This is a summary of page one.',
'This is a summary of page two',
'This is a summary of page three',
'This is a summary of page four',
'This is a summary of page five'
]
})
};
function executeThreeTimes() {
let count = 0;
const intervalId = setInterval(function() {
count++;
console.log("Execution:", count);
if (count === 3) {
clearInterval(intervalId);
} else{
onCompleteIframe();
}
}, 1000);
}
function executeOnResize() {
let count = 0;
const intervalId = setInterval(function() {
count++;
console.log("Execution:", count);
if (count === 3) {
clearInterval(intervalId);
} else{
onResizeIframe();
}
}, 1000);
}
function executeOnResize2() {
let count = 0;
const intervalId = setInterval(function() {
count++;
// console.log("Execution:", count);
if (count === 3) {
clearInterval(intervalId);
} else{
onResizeIframe2();
}
}, 1000);
}
function onCompleteIframe (){
var iframe = $('#module-slideshow_iframe');
// console.log('iframe', iframe);
$(iframe).on('load', function() {
// Access the iframe's document
var iframeBody = $(iframe).contents().find('body');
// console.log('iframe body', iframeBody);
// Select an element by its ID
var toolbar = iframeBody.find('#toolbarViewerRight');
// console.log('toolbar container', toolbar);
// Manipulate the element, e.g., change text
toolbar.css('visibility', 'visible');
});
}
function onResizeIframe (){
var iframe = $('#module-slideshow_iframe');
// console.log('iframe', iframe);
var iframeBody = $(iframe).contents().find('body');
// console.log('iframe body on resize', iframeBody);
var toolbar = iframeBody.find('#toolbarViewerRight');
// console.log('toolbar container on rezie', toolbar);
toolbar.css('visibility', 'hidden');
// $(iframe).on('load', function() {
// // Access the iframe's document
// var iframeBody = $(iframe).contents().find('body');
// console.log('iframe body on resize', iframeBody);
// // Select an element by its ID
// var toolbar = iframeBody.find('#toolbarViewerRight');
// console.log('toolbar container on rezie', toolbar);
// // Manipulate the element, e.g., change text
// toolbar.css('visibility', 'hidden');
// });
}
function onResizeIframe2 (){
var iframe = $('#module-slideshow_iframe');
// console.log('iframe', iframe);
var iframeBody = $(iframe).contents().find('body');
// console.log('iframe body on resize', iframeBody);
var toolbar = iframeBody.find('#toolbarViewerRight');
// console.log('toolbar container on rezie', toolbar);
toolbar.css('visibility', 'visible');
// $(iframe).on('load', function() {
// // Access the iframe's document
// var iframeBody = $(iframe).contents().find('body');
// console.log('iframe body on resize', iframeBody);
// // Select an element by its ID
// var toolbar = iframeBody.find('#toolbarViewerRight');
// console.log('toolbar container on rezie', toolbar);
// // Manipulate the element, e.g., change text
// toolbar.css('visibility', 'hidden');
// });
}
const screenWidth = window.innerWidth;
// console.log('screen width', screenWidth);
if(screenWidth > 480){
// console.log('screen is larger than 480px')
executeThreeTimes();
}
window.addEventListener('resize', () => {
const screenWidth2 = window.innerWidth;
// console.log('screen width', screenWidth2);
if (screenWidth2 <= 480) {
// console.log('executes only is screen is smaller than 480px')
// Function to execute when screen size is less than or equal to 1024px
executeOnResize()
}else{
executeOnResize2()
}
});
}
});