var showPleaseWaitTimeOut = 1000; #lds-64de2a7366dfbavideoLoader-wrapper { position: fixed; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 1000; margin: 0 !important; } #lds-64de2a7366dfbavideoLoader { display: block; position: relative; left: 50%; top: 50%; width: 150px; height: 150px; margin: -175px 0 0 -75px; border-radius: 50%; border: 3px solid transparent; border-top-color: #3498db; -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */ animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ z-index: 1001; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } #lds-64de2a7366dfbavideoLoader:before { content: ""; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 3px solid transparent; border-top-color: #e74c3c; -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */ animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ } #lds-64de2a7366dfbavideoLoader:after { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border-radius: 50%; border: 3px solid transparent; border-top-color: #f9c922; -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */ animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(0deg); /* IE 9 */ transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */ } 100% { -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(360deg); /* IE 9 */ transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */ } } @keyframes spin { 0% { -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(0deg); /* IE 9 */ transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */ } 100% { -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(360deg); /* IE 9 */ transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */ } } #lds-64de2a7366dfbavideoLoader-wrapper .lds-64de2a7366dfbavideoLoader-section { position: fixed; top: 0; width: 50%; height: 100%; background: #00000077; z-index: 1000; -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(0); /* IE 9 */ transform: translateX(0); /* Firefox 16+, IE 10+, Opera */ } #lds-64de2a7366dfbavideoLoader-wrapper .lds-64de2a7366dfbavideoLoader-section.section-left { left: 0; } #lds-64de2a7366dfbavideoLoader-wrapper .lds-64de2a7366dfbavideoLoader-section.section-right { right: 0; } #lds-64de2a7366dfbavideoLoader-wrapper .lds-64de2a7366dfbavideoLoader-section.section-left { -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(0); /* IE 9 */ transform: translateX(0); /* Firefox 16+, IE 10+, Opera */ -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); } #lds-64de2a7366dfbavideoLoader-wrapper .lds-64de2a7366dfbavideoLoader-section.section-right { -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(0); /* IE 9 */ transform: translateX(0); /* Firefox 16+, IE 10+, Opera */ -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); } /* Loaded */ .loaded #lds-64de2a7366dfbavideoLoader-wrapper .lds-64de2a7366dfbavideoLoader-section.section-left { -webkit-transform: translateX(-100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(-100%); /* IE 9 */ transform: translateX(-100%); /* Firefox 16+, IE 10+, Opera */ } .loaded #lds-64de2a7366dfbavideoLoader-wrapper .lds-64de2a7366dfbavideoLoader-section.section-right { -webkit-transform: translateX(100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(100%); /* IE 9 */ transform: translateX(100%); /* Firefox 16+, IE 10+, Opera */ } .loaded #lds-64de2a7366dfbavideoLoader { opacity: 0; } .loaded #lds-64de2a7366dfbavideoLoader-wrapper { visibility: hidden; -webkit-transform: translateY(-100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateY(-100%); /* IE 9 */ transform: translateY(-100%); /* Firefox 16+, IE 10+, Opera */ -webkit-transition: all 0.3s 1s ease-out; transition: all 0.3s 1s ease-out; } var avideoLoader = '
'; var useIframe = false; var webSiteRootURL = 'https://video.josephz.com/'; var my_users_id = 0; var my_identification = "Unknown User"; var mediaId = 0; var player; var _serverTime = "1692281459"; var _serverDBTime = "1692295859"; var _serverTimeString = "2023-08-17 10:10:59"; var _serverDBTimeString = "2023-08-17 14:10:59"; var _serverTimezone = "America/New_York"; var _serverSystemTimezone = "Etc/UTC"; var avideoModalIframeFullScreenCloseButton = " $(document).ready(function () { YPTHidenavbar(); });
  • var filterCheckboxes; var categoryRadios; $(document).ready(function() { // get references to the checkboxes and radio buttons filterCheckboxes = $('input[name="searchFieldsNames[]"]'); categoryRadios = $('input.form-check-input[type="radio"][name="catName"]'); // add event listeners to the checkboxes and radio buttons filterCheckboxes.on('change', function() { console.log('filterCheckboxes.filter change'); // save the checked values to the cookie saveSearchFiltersToCookie(); setSearchFilterIcon(); }); categoryRadios.on('change', function() { // save the checked value to the cookie saveSearchCategoryToCookie(); setSearchFilterIcon(); }); // load the saved search filters from the cookies const savedFilters = Cookies.get('searchFilters'); const savedCategory = Cookies.get('searchCategory'); if (savedFilters) { // parse the saved filters from JSON and check the corresponding checkboxes const checkedValues = JSON.parse(savedFilters); filterCheckboxes.each(function() { this.checked = checkedValues.includes(this.value); }); } if (savedCategory) { // check the corresponding radio button categoryRadios.filter(`[value="${savedCategory}"]`).prop('checked', true); } else { // check the default radio button categoryRadios.filter('#search_category0').prop('checked', true); } setSearchFilterIcon(); $('#filterButton').click(function() { $('#filterDropdown').toggleClass('show'); }); }); function saveSearchFiltersToCookie() { const checkedValues = filterCheckboxes.filter(':checked').map(function() { return this.value; }).get(); Cookies.set('searchFilters', JSON.stringify(checkedValues), { expires: 365, path: '/' }); } function saveSearchCategoryToCookie() { const checkedValue = categoryRadios.filter(':checked').val(); Cookies.set('searchCategory', checkedValue, { expires: 365, path: '/' }); } function setSearchFilterIcon() { // check if no filter checkboxes are checked and search_category0 is checked if (filterCheckboxes.filter(':checked').length === 0 && $('#search_category0').is(':checked')) { // add the text-muted icon to the filterButton $('#filterButton i').removeClass('fa-filter'); $('#filterButton i').addClass('fa-sort-down'); } else { // remove the text-muted icon from the filterButton $('#filterButton i').removeClass('fa-sort-down'); $('#filterButton i').addClass('fa-filter'); } }
    • .liveVideo{ position: relative; } .liveVideo .liveNow, .liveVideo .liveFuture{ position: absolute; bottom: 5px; right: 5px; } #availableLiveStream{ width: 350px; overflow: hidden; max-height: 75vh; overflow-y: auto; } #availableLiveStream li a div{ overflow: hidden; } async function refreshGetLiveImage(selector) { $(selector).find('.thumbsImage img').each(function (index) { var src = $(this).attr('src'); src = addGetParam(src, 'cache', Math.random()); $(this).attr('src', src); }); setTimeout(function () { $(selector).slideDown(); }, 1000); // give some time to load the new images } var _processLiveStats_processingNow = 0; async function processLiveStats(response) { if (_processLiveStats_processingNow) { return false; } _processLiveStats_processingNow = 1; setTimeout(function () { _processLiveStats_processingNow = 0; }, 200); if (typeof response !== 'undefined') { if (isArray(response)) { for (var i in response) { if (typeof response[i] !== 'object') { continue; } //console.log('processLiveStats is array', response[i]); processApplicationLive(response[i]); } } else { //console.log('processLiveStats not array', response); processApplicationLive(response); } if (!response.countLiveStream) { availableLiveStreamNotFound(); } else { $('#availableLiveStream').removeClass('notfound'); } $('.onlineApplications').text($('#availableLiveStream > div').length); } setTimeout(function () { }, 200); } async function getStatsMenu(recurrentCall) { if (avideoSocketIsActive()) { return false; } availableLiveStreamIsLoading(); $.ajax({ url: webSiteRootURL + 'plugin/Live/stats.json.php?Menu', success: function (response) { //console.log('getStatsMenu processLiveStats', response); processLiveStats(response); if (avideoSocketIsActive()) { //console.log('getStatsMenu: Socket is enabled we will not process ajax result'); return false; } if (recurrentCall) { var timeOut = 15000; setTimeout(function () { getStatsMenu(true); }, timeOut); } } }); } async function processApplicationLive(response) { if (typeof response.applications !== 'undefined') { var applications = response.applications; response.applications = []; for (let key in applications) { if (applications[key].hasOwnProperty('html')) { response.applications.push(applications[key]); } } if (typeof onlineLabelOnline == 'function' && response.applications.length) { //console.log('processApplicationLive 1', response.applications, response.applications.length); for (i = 0; i < response.applications.length; i++) { //console.log('processApplicationLive 1 title', response.applications[i].title); if (!empty(response.applications[i].expires) && response.applications[i].expires < _serverTime) { return false; } processApplication(response.applications[i]); if (!response.applications[i].comingsoon) { if (typeof response.applications[i].live_cleanKey !== 'undefined') { selector = '.liveViewStatusClass_' + response.applications[i].live_cleanKey; onlineLabelOnline(selector); } if (typeof response.applications[i].key !== 'undefined') { selector = '.liveViewStatusClass_' + response.applications[i].key; onlineLabelOnline(selector); } } } mouseEffect(); } else { //console.log('processApplicationLive ERROR', response); } } // check for live servers var count = 0; while (typeof response[count] !== 'undefined') { //console.log('processApplicationLive 2',count, response[count].applications, response[count].applications.length); for (i = 0; i < response[count].applications.length; i++) { processApplication(response[count].applications[i]); } count++; } } function availableLiveStreamIsLoading() { if ($('#availableLiveStream').hasClass('notfound')) { availableLiveStreamEmpty(); } } function availableLiveStreamNotFound() { $('#availableLiveStream').addClass('notfound'); availableLiveStreamEmpty(); } async function availableLiveStreamEmpty() { $('#availableLiveStream').empty(); } var hideWhenExpireClasses = []; function hideWhenExpire(application) { var className = application.className; // 604.800 = 1 WEEK if (!empty(application.expires) && application.expires < 604800 && !in_array(className, hideWhenExpireClasses)) { var expires_in_seconds = application.expires - _serverTime; console.log('hideWhenExpire', expires_in_seconds, className); hideWhenExpireClasses.push(className); setTimeout(function () { console.log('hideWhenExpire now', className); $('.' + className).slideUp(); $('.onlineApplications').text($('.onlineApplications').text() - 1); }, expires_in_seconds * 1000); } } var linksToEmbedTimeout; async function processApplication(application) { href = application.href; title = application.title; name = application.name; user = application.user; photo = application.photo; if(/Restream test/.test(title)){ return false; } if (!empty(application.expires) && application.expires < _serverTime) { return false; } hideWhenExpire(application); if (application && typeof application.key == 'string') { key = application.key.replace(/[&=]/g, ''); } else { key = ''; } ////console.log('processApplication', application.className); callback = ''; if (typeof application.callback === 'string') { callback = application.callback; } isPrivate = application.isPrivate; if (application.type === 'Live') { online = application.users.online; views = application.users.views; } else { online = 0; views = 0; } if (typeof application.html != 'undefined') { var notificationHTML = $(application.html); var notificatioID = (notificationHTML.attr('id') + '_notification').replace(/[&=]/g, ''); if (typeof key !== 'undefined') { ////console.log('processApplication remove class .live_' + key); $('.live_' + key).remove(); } if (!$('#' + notificatioID).length) { notificationHTML.attr('id', notificatioID); if (application.comingsoon) { //console.log('application.comingsoon 1', application.comingsoon, application.method); $('#availableLiveStream').append(notificationHTML); } else { $('#availableLiveStream').prepend(notificationHTML); } animateChilds('#availableLiveStream', 'animate__bounceInRight', 0.05); } else { ////console.log('processApplication is already present '+notificatioID, application.className); } var html; html = application.htmlExtra; var id = $(html).attr('id').replace(/[&=]/g, ''); if ($('#' + id).length) { //console.log('processApplication key found', id); return false; } //console.log('processApplication key NOT found', id); if (application.comingsoon && application.comingsoon > _serverTime) { ////console.log('application.comingsoon 2', application.comingsoon, application.method); $('#liveScheduleVideos .extraVideos').append(html); $('#liveScheduleVideos').slideDown(); } else { $('#liveVideos .extraVideos').prepend(html); $('#liveVideos').slideDown(); } processUserNotificationFromApplication(application); setTimeout(function () { lazyImage(); }, 1000); if (callback) { eval("try {" + callback + ";} catch (e) {console.log('processApplication application.callback error',e.message);}"); } } else { //console.log('application.html is undefined'); } clearTimeout(linksToEmbedTimeout); linksToEmbedTimeout = setTimeout(function () { avideoSocket(); }, 500); if (application.users && typeof application.users.views !== 'undefined') { $('.views_on_total_on_live_' + application.users.transmition_key + '_' + application.users.live_servers_id).text(application.users.views); } } function processUserNotificationFromApplication(application) { if (typeof addTemplateFromArray !== 'function') { return false; } var itemsArray = {}; itemsArray.priority = 3; itemsArray.image = application.poster; itemsArray.title = application.title; itemsArray.href = application.href; itemsArray.element_class = application.className; itemsArray.element_id = application.className; itemsArray.icon = 'fas fa-video'; itemsArray.type = 'info'; itemsArray.html = 'LIVE NOW'; addTemplateFromArray(itemsArray, false); } function socketLiveONCallback(json) { console.log('socketLiveONCallback', json); processLiveStats(json.stats); var selector = '.live_' + json.live_servers_id + "_" + json.key; $(selector).slideDown(); if (typeof onlineLabelOnline == 'function') { selector = '#liveViewStatusID_' + json.key + '_' + json.live_servers_id; selector += ', .liveViewStatusClass_' + json.key + '_' + json.live_servers_id; selector += ', .liveViewStatusClass_' + json.key; selector += ', .liveViewStatusClass_' + json.cleanKey; console.log('socketLiveONCallback ', selector); onlineLabelOnline(selector); } // update the chat if the history changes var IframeClass = ".yptchat2IframeClass_" + json.key + "_" + json.live_servers_id; if ($(IframeClass).length) { var src = $(IframeClass).attr('src'); if (src) { avideoToast('Loading new chat'); var newSRC = addGetParam(src, 'live_transmitions_history_id', json.live_transmitions_history_id); $(IframeClass).attr('src', newSRC); } } if (isInLive(json)) { playerPlay(); showImage('prerollPoster', json.cleanKey); } } function socketLiveOFFCallback(json) { console.log('socketLiveOFFCallback', json); var selector = '.live_' + json.live_servers_id + "_" + json.key; selector += ', .liveVideo_live_' + json.live_servers_id + "_" + json.key; selector += ', .live_' + json.key; ////console.log('socketLiveOFFCallback 1', selector); $(selector).slideUp("fast", function () { $(this).remove(); }); if (typeof onlineLabelOffline == 'function') { selector = '#liveViewStatusID_' + json.key + '_' + json.live_servers_id; selector += ', .liveViewStatusClass_' + json.key + '_' + json.live_servers_id; selector += ', .liveViewStatusClass_' + json.key; selector += ', .liveViewStatusClass_' + json.cleanKey; console.log('socketLiveOFFCallback', selector); onlineLabelOffline(selector); } setTimeout(function () { //console.log('socketLiveOFFCallback processLiveStats'); processLiveStats(json.stats); setTimeout(function () { hideExtraVideosIfEmpty(); }, 500); }, 500); if (isInLive(json)) { showImage('postrollPoster', json.cleanKey); } if (typeof updateUserNotificationCount == 'function') { updateUserNotificationCount(); } } async function hideExtraVideosIfEmpty() { $('#liveScheduleVideos .extraVideos').each(function (index, currentElement) { var somethingIsVisible = false; $(this).children('div').each(function (index2, currentElement2) { if ($(this).is(":visible")) { somethingIsVisible = true; return false; } }); if (!somethingIsVisible) { $('#liveScheduleVideos').slideUp(); } }); $('#liveVideos .extraVideos').each(function (index, currentElement) { var somethingIsVisible = false; $(this).children('div').each(function (index2, currentElement2) { if ($(this).is(":visible")) { somethingIsVisible = true; return false; } }); if (!somethingIsVisible) { $('#liveVideos').slideUp(); } }); } $(document).ready(function () { if (typeof avideoSocketIsActive == 'function' && !avideoSocketIsActive()) { availableLiveStreamIsLoading(); getStatsMenu(true); } processLiveStats({"total":0,"applications":[],"countLiveStream":0,"timezone":"America\/New_York"}); });
    • $(function () { $("#navBarFlag").change(function () { var selfURI = "https://video.josephz.com/view/trending.php?current=3"; window.location.href = addGetParam(selfURI, 'lang', $(this).val()); }); });
  • End of content

    No more pages to load

    Changing lives by the voice of God

    $(function () { /** showAlertMessage **/ /** showAlertMessage **/ /** showAlertMessage END **/ });
    $(document).ready(function () { }); $(document).ready(function () { }); var webSocketSelfURI = 'https://video.josephz.com/view/trending.php?current=3'; var webSocketVideos_id = '0'; var webSocketLiveKey = 'false'; var webSocketServerVersion = '4.2'; var webSocketToken = ''; var webSocketURL = ''; var webSocketTypes = {"OPEN_CONNECTION":"OPEN_CONNECTION","NEW_CONNECTION":"NEW_CONNECTION","NEW_DISCONNECTION":"NEW_DISCONNECTION","DEFAULT_MESSAGE":"DEFAULT_MESSAGE","ON_VIDEO_MSG":"ON_VIDEO_MSG","ON_LIVE_MSG":"ON_LIVE_MSG","TESTING":"TESTING"}; function onUserSocketConnect(response) { try { for (const key in response.users_id_online) { if (Object.hasOwnProperty.call(response.users_id_online, key)) { const element = response.users_id_online[key]; $('#caller'+element.users_id).show(); $('.users_id_'+element.users_id).addClass('online'); } } socketNewConnection(response);for (const key in response.users_id_online) { if (Object.hasOwnProperty.call(response.users_id_online, key)) { const element = response.users_id_online[key]; if (room_users_id == element.room_users_id) { appentChatUser(element.users_id, element.identification, element.chat_is_banned); } } } } catch (e) { console.log('onUserSocketConnect:error', e.message); } } function onUserSocketDisconnect(response) { try { $('#caller'+response.msg.users_id).hide(); $('.users_id_'+response.msg.users_id).removeClass('online');socketDisconnection(response);if(typeof changeChat2UserStatus === 'function'){ changeChat2UserStatus(response.msg.users_id, 'f', false); } } catch (e) { console.log('onUserSocketConnect:error', e.message); } } .isRecordingIcon{ opacity: 0.2; } .isRecording.isRecordingIcon{ opacity: 1; animation: isRecordingGlowing 1s infinite alternate; } @keyframes isRecordingGlowing { from { text-shadow: 0 0 1px #500, 0 0 2px #700, 0 0 3px #760, 0 0 4px #760; } to { color: #F00; text-shadow: 0 0 2px #200, 0 0 4px #900, 0 0 8px #F00, 0 0 12px #F00, 0 0 16px #FFB600; } } function startRecorderCallback(json){ setIsRecording(json.key); } function stopRecorderCallback(json){ setIsNotRecording(json.key); } function setIsRecording(key) { $('.isRecordingIcon'+key).addClass('isRecording'); } function setIsNotRecording(key) { $('.isRecordingIcon'+key).removeClass('isRecording'); } function getBeatJSSelector(key, live_servers_id){ live_servers_id = parseInt(live_servers_id); if(isNaN(live_servers_id)){ live_servers_id = 0; } var selector = '.liveUsersViews_' + key + ', .liveUsersViews_' + key + '_' + live_servers_id + ', .views_on_total_on_live_' + key + '_' + live_servers_id; console.log('getBeatJSSelector', selector); return selector; } function updateViewsLiveUsersBeat(key, live_servers_id, total) { console.log('updateViewsLiveUsersBeat', key, live_servers_id, total); $(getBeatJSSelector(key, live_servers_id)).text(total); } function socketLiveUsersBeat(json) { console.log('socketLiveUsersBeat', json.users); var total = json.total; if (!total && json.views) { total = json.views; }else if (!total && json.users && json.users.views) { total = json.users.views; } var key = json.transmition_key; if (!key && json.users && json.users.key) { key = json.users.key; }else if (!key && json.key) { key = json.key; } var live_servers_id = json.live_servers_id; if (!live_servers_id && json.users && json.users.live_servers_id) { live_servers_id = json.users.live_servers_id; } updateViewsLiveUsersBeat(key, live_servers_id, total); } var playListsAdding = false; var playList = []; async function reloadPlayLists() { if (!isOnline()) { return false; } //console.log('reloadPlayLists'); $.ajax({ url: webSiteRootURL + 'objects/playlists.json.php', success: function (response) { playList = response; reloadPlayListButtons(); } }); } function reloadPlayListButtons() { //console.log('reloadPlayListButtons'); $('.watchLaterBtnAdded').hide(); $('.favoriteBtnAdded').hide(); $('.watchLaterBtn').show(); $('.favoriteBtn').show(); for (var i in playList) { if (!playList[i].id || (playList[i].status !== 'watch_later' && playList[i].status !== 'favorite')) { continue; } for (var x in playList[i].videos) { if (typeof (playList[i].videos[x]) === 'object') { if (playList[i].status === 'watch_later') { $('.watchLaterBtn' + playList[i].videos[x].videos_id).hide(); $('.watchLaterBtnAdded' + playList[i].videos[x].videos_id).show(); } else if (playList[i].status === 'favorite') { $('.favoriteBtn' + playList[i].videos[x].videos_id).hide(); $('.favoriteBtnAdded' + playList[i].videos[x].videos_id).show(); } } } } } loadPlayListsResponseObject = {timestamp: 0, response: false}; async function loadPlayLists(videos_id, crc) { //console.log('loadPlayLists'); if (loadPlayListsResponseObject.timestamp + 5000 < Date.now()) { loadPlayListsResponseObject.timestamp = Date.now(); loadPlayListsResponseObject.response = []; setTimeout(function () { $.ajax({ url: webSiteRootURL+'objects/playlists.json.php', cache: true, success: function (response) { loadPlayListsResponseObject.response = response; loadPlayListsResponse(loadPlayListsResponseObject.response, videos_id, crc); } }); ; }, 500); } else { if (loadPlayListsResponseObject.response) { loadPlayListsResponse(loadPlayListsResponseObject.response, videos_id, crc); } else { setTimeout(function () { loadPlayLists(videos_id, crc); }, 1500); } } } var listGroupItemTemplate = "\n
    $(function () {setTimeout(function(){if(typeof $("#mainNavBar").autoHidingNavbar == "function"){$("#mainNavBar").autoHidingNavbar();}},5000);});$(function () { $("#mainNavBar").on("show.autoHidingNavbar", function () { if ($(window).scrollTop() < 10) { $("body").removeClass("nopadding"); } }); $("#mainNavBar").on("hide.autoHidingNavbar", function () { if ($(window).scrollTop() < 10) { $("body").addClass("nopadding"); } }); });iframeAllowAttributes = 'allow="fullscreen;autoplay;camera *;microphone *;" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"'; var checkFooterTimout; $(function () { checkFooter(); $(window).scroll(function () { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 100); }); $(window).resize(function () { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 100); }); $(window).mouseup(function () { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 100); }); }); function checkFooter() { $("#mainFooter").fadeIn(); var height = $("#mainFooter").height(); if (height < 150 && getPageHeight() <= $(window).height()) { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 1000); $("#mainFooter").css("position", "fixed"); $('body').css('padding-bottom', height+'px'); } else { $("#mainFooter").css("position", "relative"); $('body').css('padding-bottom', ''); } } function getPageHeight() { var mainNavBarH = 0; if ($('#mainNavBar').length) { mainNavBarH = $('#mainNavBar').height(); } var mainFooterH = 0; if ($('#mainFooter').length) { mainFooterH = $('#mainFooter').height(); } var containerH = getLargerContainerHeight(); return mainNavBarH + mainFooterH + containerH; } function getLargerContainerHeight() { var conteiners = $('body > .container,body > .container-fluid'); var height = 0; for (var item in conteiners) { if (isNaN(item)) { continue; } var h = $(conteiners[item]).height(); if (h > height) { height = h; } } return height; } $(document).ready(function () { $container = $('.results').infiniteScroll({ path: '.pagination__next', append: '.searchResult', status: '.scroller-status', hideNav: '.pagination', }); $container.on('append.infiniteScroll', function (event, response, path, items) { mouseEffect(); lazyImage(); }); mouseEffect(); lazyImage(); });