.lds-62fc7c746c942matrix { width: auto; height: auto; position: absolute; left: 50%; margin-left: -120px !important; margin-top: -160px !important; } .lds-62fc7c746c942matrix ul { display: grid; grid-template-columns: repeat(5, 1fr); -webkit-animation: rot 16s linear infinite; animation: rot 16s linear infinite; } @-webkit-keyframes rot { 100% { transform: rotate(360deg); } } @keyframes rot { 100% { transform: rotate(360deg); } } .lds-62fc7c746c942matrix li { width: 40px; height: 40px; background: #651FFF; border-radius: 4px; box-shadow: 0 0 1px #fff, 0 0 5px #651FFF, 0 0 10px #651FFF, 0 0 15px #651FFF, 0 0 25px #651FFF, 0 0 55px #651FFF; -webkit-animation: scale 0.8s linear alternate infinite; animation: scale 0.8s linear alternate infinite; } @-webkit-keyframes scale { 100% { transform: scale(0.1); opacity: 0; } } @keyframes scale { 100% { transform: scale(0.1); opacity: 0; } } .lds-62fc7c746c942matrix li:nth-child(1) { z-index: 24; } .lds-62fc7c746c942matrix li:nth-child(2) { z-index: 23; } .lds-62fc7c746c942matrix li:nth-child(3) { z-index: 22; } .lds-62fc7c746c942matrix li:nth-child(4) { z-index: 21; } .lds-62fc7c746c942matrix li:nth-child(5) { z-index: 20; } .lds-62fc7c746c942matrix li:nth-child(6) { z-index: 19; } .lds-62fc7c746c942matrix li:nth-child(7) { z-index: 18; } .lds-62fc7c746c942matrix li:nth-child(8) { z-index: 17; } .lds-62fc7c746c942matrix li:nth-child(9) { z-index: 16; } .lds-62fc7c746c942matrix li:nth-child(10) { z-index: 15; } .lds-62fc7c746c942matrix li:nth-child(11) { z-index: 14; } .lds-62fc7c746c942matrix li:nth-child(12) { z-index: 13; } .lds-62fc7c746c942matrix li:nth-child(13) { z-index: 12; } .lds-62fc7c746c942matrix li:nth-child(14) { z-index: 11; } .lds-62fc7c746c942matrix li:nth-child(15) { z-index: 10; } .lds-62fc7c746c942matrix li:nth-child(16) { z-index: 9; } .lds-62fc7c746c942matrix li:nth-child(17) { z-index: 8; } .lds-62fc7c746c942matrix li:nth-child(18) { z-index: 7; } .lds-62fc7c746c942matrix li:nth-child(19) { z-index: 6; } .lds-62fc7c746c942matrix li:nth-child(20) { z-index: 5; } .lds-62fc7c746c942matrix li:nth-child(21) { z-index: 4; } .lds-62fc7c746c942matrix li:nth-child(22) { z-index: 3; } .lds-62fc7c746c942matrix li:nth-child(23) { z-index: 2; } .lds-62fc7c746c942matrix li:nth-child(24) { z-index: 1; } .lds-62fc7c746c942matrix li:nth-child(25) { z-index: 0; } .lds-62fc7c746c942matrix li:nth-child(1) { -webkit-animation-delay: 0.1s; animation-delay: 0.1s; } .lds-62fc7c746c942matrix li:nth-child(7) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; } .lds-62fc7c746c942matrix li:nth-child(13) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; } .lds-62fc7c746c942matrix li:nth-child(19) { -webkit-animation-delay: 0.7s; animation-delay: 0.7s; } .lds-62fc7c746c942matrix li:nth-child(24) { -webkit-animation-delay: 0.9s; animation-delay: 0.9s; } .lds-62fc7c746c942matrix li:nth-child(2) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; } .lds-62fc7c746c942matrix li:nth-child(8) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .lds-62fc7c746c942matrix li:nth-child(14) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .lds-62fc7c746c942matrix li:nth-child(20) { -webkit-animation-delay: 0.8s; animation-delay: 0.8s; } .lds-62fc7c746c942matrix li:nth-child(3) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; } .lds-62fc7c746c942matrix li:nth-child(9) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; } .lds-62fc7c746c942matrix li:nth-child(15) { -webkit-animation-delay: 0.7s; animation-delay: 0.7s; } .lds-62fc7c746c942matrix li:nth-child(4) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .lds-62fc7c746c942matrix li:nth-child(10) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .lds-62fc7c746c942matrix li:nth-child(5) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; } .lds-62fc7c746c942matrix li:nth-child(1) { -webkit-animation-delay: 0.1s; animation-delay: 0.1s; } .lds-62fc7c746c942matrix li:nth-child(6) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; } .lds-62fc7c746c942matrix li:nth-child(11) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; } .lds-62fc7c746c942matrix li:nth-child(16) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .lds-62fc7c746c942matrix li:nth-child(21) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; } .lds-62fc7c746c942matrix li:nth-child(7) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; } .lds-62fc7c746c942matrix li:nth-child(12) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .lds-62fc7c746c942matrix li:nth-child(17) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; } .lds-62fc7c746c942matrix li:nth-child(22) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .lds-62fc7c746c942matrix li:nth-child(13) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; } .lds-62fc7c746c942matrix li:nth-child(18) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .lds-62fc7c746c942matrix li:nth-child(23) { -webkit-animation-delay: 0.7s; animation-delay: 0.7s; } .lds-62fc7c746c942matrix li:nth-child(19) { -webkit-animation-delay: 0.7s; animation-delay: 0.7s; } .lds-62fc7c746c942matrix li:nth-child(24) { -webkit-animation-delay: 0.8s; animation-delay: 0.8s; } .lds-62fc7c746c942matrix li:nth-child(25) { -webkit-animation-delay: 0.9s; animation-delay: 0.9s; } var avideoLoader = '
'; var webSiteRootURL = 'https://uncensoredtruth.tv/'; var my_users_id = 0; var my_identification = "Unknown User"; var player; var _serverTime = "1660714100"; var _serverDBTime = "1660728500"; var _serverTimeString = "2022-08-17 01:28:20"; var _serverDBTimeString = "2022-08-17 05:28:20"; var _serverTimezone = "America/New_York"; var avideoModalIframeFullScreenCloseButton = " var $containere34ca0cc400b3d2ea7d54cbf20607769; $(function () { loadInfiniteScroole34ca0cc400b3d2ea7d54cbf20607769(); }); /* * document.addEventListener('scroll', function (e) { var scrollPosition = window.pageYOffset; var windowSize = window.innerHeight; var bodyHeight = document.body.offsetHeight; var distance = bodyHeight - (scrollPosition + windowSize); //console.log('infiniteScroll ', distance, windowSize, distance < windowSize); if (distance < windowSize) { $containere34ca0cc400b3d2ea7d54cbf20607769.infiniteScroll('loadNextPage'); } });*/ var append_infiniteScroll_timout; function loadInfiniteScroole34ca0cc400b3d2ea7d54cbf20607769() { if (typeof $('.categoriesContainerItem').infiniteScroll == 'function') { $containere34ca0cc400b3d2ea7d54cbf20607769 = $('.categoriesContainerItem').infiniteScroll({ path: '.pagination__nexte34ca0cc400b3d2ea7d54cbf20607769', append: '.categoriesContainerItem', status: '.scroller-statuse34ca0cc400b3d2ea7d54cbf20607769', hideNav: '.infiniteScrollPaginatione34ca0cc400b3d2ea7d54cbf20607769', debug: false, prefill: true, history: false, checkLastPage: false, button: '#loadInfiniteScrollButtone34ca0cc400b3d2ea7d54cbf20607769' }); $containere34ca0cc400b3d2ea7d54cbf20607769.on('scrollThreshold.infiniteScroll', function (event) { //console.log('infiniteScroll Scroll at bottom'); }); $containere34ca0cc400b3d2ea7d54cbf20607769.on('request.infiniteScroll', function (event, path, fetchPromise) { //console.log(`infiniteScroll Loading page: ${path}`); }); let infScroll = $containere34ca0cc400b3d2ea7d54cbf20607769.data('infiniteScroll'); $containere34ca0cc400b3d2ea7d54cbf20607769.on('load.infiniteScroll', function (event, body, path, response) { //console.log(`infiniteScroll Loaded: ${path}`, `Status: ${response.status}`, `Current page: ${infScroll.pageIndex}`, `${infScroll.loadCount} pages loaded`); }); $containere34ca0cc400b3d2ea7d54cbf20607769.on('append.infiniteScroll', function (event, body, path, items, response) { //console.log(`infiniteScroll Appended ${items.length} items on ${path}`, body); clearTimeout(append_infiniteScroll_timout); append_infiniteScroll_timout = setTimeout(function () { lazyImage(); avideoSocket(); }, 1000); }); $containere34ca0cc400b3d2ea7d54cbf20607769.on('error.infiniteScroll', function (event, error, path, response) { //console.error(`infiniteScroll Could not load: ${path}. ${error}`); }); $containere34ca0cc400b3d2ea7d54cbf20607769.on('last.infiniteScroll', function (event, body, path) { //console.log(`infiniteScroll Last page hit on ${path}`, body, event); }); $containere34ca0cc400b3d2ea7d54cbf20607769.on('history.infiniteScroll', function (event, title, path) { //console.log(`infiniteScroll History changed to: ${path}`); }); } }
$(function () { /** showAlertMessage **/ /** showAlertMessage END **/ });
$(document).ready(function () { }); function onlineLabelOnline(selector) { selector = selector.replace(/[&=]/g, ''); console.log("Change video to Online ", selector); //console.trace(); $(selector).removeClass('label-warning'); $(selector).removeClass('label-danger'); $(selector).addClass('label-success'); $(selector).text("ONLINE"); if ($('#indexCol1 div.panel-heading .label-success').length) { isOnlineLabel = true; } } function onlineLabelPleaseWait(selector) { selector = selector.replace(/[&=]/g, ''); console.log("Change video to please wait", selector); if (!$('#indexCol1 div.panel-heading .label-success').length) { isOnlineLabel = false; } $(selector).removeClass('label-success'); $(selector).removeClass('label-danger'); $(selector).addClass('label-warning'); $(selector).text("Please Wait ..."); if (!$('#indexCol1 div.panel-heading .label-success').length) { isOnlineLabel = false; } } function onlineLabelOffline(selector) { selector = selector.replace(/[&=]/g, ''); console.log("Change video to offline", selector); console.trace(); $(selector).removeClass('label-warning'); $(selector).removeClass('label-success'); $(selector).addClass('label-danger'); $(selector).text("OFFLINE"); if (!$('#indexCol1 div.panel-heading .label-success').length) { isOnlineLabel = false; } } function onlineLabelFinishing(selector) { selector = selector.replace(/[&=]/g, ''); console.log("Change video to finishing", selector); $(selector).removeClass('label-warning'); $(selector).removeClass('label-success'); $(selector).addClass('label-danger'); $(selector).text("Finishing Live..."); if (!$('#indexCol1 div.panel-heading .label-success').length) { isOnlineLabel = false; } } var playListsAdding = false; var playList = []; function reloadPlayLists() { //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}; function loadPlayLists(videos_id, crc) { //console.log('loadPlayLists'); if (loadPlayListsResponseObject.timestamp + 5000 < Date.now()) { loadPlayListsResponseObject.timestamp = Date.now(); loadPlayListsResponseObject.response = []; setTimeout(function () { $.ajax({ url: 'https://uncensoredtruth.tv/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); } } } function loadPlayListsResponse(response, videos_id, crc) { //console.log('loadPlayListsResponse'); //console.log(response, videos_id, crc); $('.searchlist' + videos_id + crc).html(''); for (var i in response) { if (!response[i].id) { continue; } var icon = "fa fa-lock" if (response[i].status == "public") { icon = "fa fa-globe" } else if (response[i].status == "watch_later") { icon = "fas fa-clock" } else if (response[i].status == "favorite") { icon = "fas fa-heart" } var checked = ""; for (var x in response[i].videos) { if (typeof (response[i].videos[x]) === 'object' && response[i].videos[x].videos_id == videos_id) { checked = "checked"; } } var randId = (("_" + response[i].id) + videos_id) + Math.random(); $(".searchlist" + videos_id + crc).append(' ' + response[i].name_translated + '
'); } $('.searchlist' + videos_id + crc).btsListFilter('#searchinput' + videos_id + crc, {itemChild: 'span'}); $('.playListsVideosIds' + videos_id).change(function () { if (playListsAdding) { return false; } playListsAdding = true; addVideoToPlayList(videos_id, $(this).is(":checked"), $(this).val()); return false; }); } function addVideoToPlayList(videos_id, isChecked, playlists_id) { //console.log('addVideoToPlayList'); modal.showPleaseWait(); $.ajax({ url: 'https://uncensoredtruth.tv/objects/playListAddVideo.json.php', method: 'POST', data: { 'videos_id': videos_id, 'add': isChecked, 'playlists_id': playlists_id }, success: function (response) { reloadPlayLists(); //console.log(".playListsIds_" + playlists_id + '_videos_id_' + videos_id); $(".playListsIds_" + playlists_id + '_videos_id_' + videos_id).prop("checked", isChecked); modal.hidePleaseWait(); setTimeout(function () { playListsAdding = false }, 500); } }); } $(document).ready(function () { reloadPlayLists(); }); 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); } .accessibility-fontsize-150, .accessibility-fontsize-150 h1, .accessibility-fontsize-150 h2, .accessibility-fontsize-150 h3, .accessibility-fontsize-150 h4, .accessibility-fontsize-150 h5, .accessibility-fontsize-150 h6, .accessibility-fontsize-150 .gallery .title, .accessibility-fontsize-150 .videosDetails .title{ font-size: 150% !important; max-height: none; } .accessibility-fontsize-160, .accessibility-fontsize-160 h1, .accessibility-fontsize-160 h2, .accessibility-fontsize-160 h3, .accessibility-fontsize-160 h4, .accessibility-fontsize-160 h5, .accessibility-fontsize-160 h6, .accessibility-fontsize-160 .gallery .title, .accessibility-fontsize-160 .videosDetails .title{ font-size: 160% !important; max-height: none; } .accessibility-fontsize-170, .accessibility-fontsize-170 h1, .accessibility-fontsize-170 h2, .accessibility-fontsize-170 h3, .accessibility-fontsize-170 h4, .accessibility-fontsize-170 h5, .accessibility-fontsize-170 h6, .accessibility-fontsize-170 .gallery .title, .accessibility-fontsize-170 .videosDetails .title{ font-size: 170% !important; max-height: none; } .accessibility-fontsize-180, .accessibility-fontsize-180 h1, .accessibility-fontsize-180 h2, .accessibility-fontsize-180 h3, .accessibility-fontsize-180 h4, .accessibility-fontsize-180 h5, .accessibility-fontsize-180 h6, .accessibility-fontsize-180 .gallery .title, .accessibility-fontsize-180 .videosDetails .title{ font-size: 180% !important; max-height: none; } .accessibility-fontsize-190, .accessibility-fontsize-190 h1, .accessibility-fontsize-190 h2, .accessibility-fontsize-190 h3, .accessibility-fontsize-190 h4, .accessibility-fontsize-190 h5, .accessibility-fontsize-190 h6, .accessibility-fontsize-190 .gallery .title, .accessibility-fontsize-190 .videosDetails .title{ font-size: 190% !important; max-height: none; } .accessibility-fontsize-200, .accessibility-fontsize-200 h1, .accessibility-fontsize-200 h2, .accessibility-fontsize-200 h3, .accessibility-fontsize-200 h4, .accessibility-fontsize-200 h5, .accessibility-fontsize-200 h6, .accessibility-fontsize-200 .gallery .title, .accessibility-fontsize-200 .videosDetails .title{ font-size: 200% !important; max-height: none; } .accessibility-fontsize-210, .accessibility-fontsize-210 h1, .accessibility-fontsize-210 h2, .accessibility-fontsize-210 h3, .accessibility-fontsize-210 h4, .accessibility-fontsize-210 h5, .accessibility-fontsize-210 h6, .accessibility-fontsize-210 .gallery .title, .accessibility-fontsize-210 .videosDetails .title{ font-size: 210% !important; max-height: none; } .accessibility-fontsize-220, .accessibility-fontsize-220 h1, .accessibility-fontsize-220 h2, .accessibility-fontsize-220 h3, .accessibility-fontsize-220 h4, .accessibility-fontsize-220 h5, .accessibility-fontsize-220 h6, .accessibility-fontsize-220 .gallery .title, .accessibility-fontsize-220 .videosDetails .title{ font-size: 220% !important; max-height: none; } .accessibility-fontsize-230, .accessibility-fontsize-230 h1, .accessibility-fontsize-230 h2, .accessibility-fontsize-230 h3, .accessibility-fontsize-230 h4, .accessibility-fontsize-230 h5, .accessibility-fontsize-230 h6, .accessibility-fontsize-230 .gallery .title, .accessibility-fontsize-230 .videosDetails .title{ font-size: 230% !important; max-height: none; } .accessibility-fontsize-240, .accessibility-fontsize-240 h1, .accessibility-fontsize-240 h2, .accessibility-fontsize-240 h3, .accessibility-fontsize-240 h4, .accessibility-fontsize-240 h5, .accessibility-fontsize-240 h6, .accessibility-fontsize-240 .gallery .title, .accessibility-fontsize-240 .videosDetails .title{ font-size: 240% !important; max-height: none; } .accessibility-fontsize-250, .accessibility-fontsize-250 h1, .accessibility-fontsize-250 h2, .accessibility-fontsize-250 h3, .accessibility-fontsize-250 h4, .accessibility-fontsize-250 h5, .accessibility-fontsize-250 h6, .accessibility-fontsize-250 .gallery .title, .accessibility-fontsize-250 .videosDetails .title{ font-size: 250% !important; max-height: none; } .accessibility-fontsize-260, .accessibility-fontsize-260 h1, .accessibility-fontsize-260 h2, .accessibility-fontsize-260 h3, .accessibility-fontsize-260 h4, .accessibility-fontsize-260 h5, .accessibility-fontsize-260 h6, .accessibility-fontsize-260 .gallery .title, .accessibility-fontsize-260 .videosDetails .title{ font-size: 260% !important; max-height: none; } .accessibility-fontsize-270, .accessibility-fontsize-270 h1, .accessibility-fontsize-270 h2, .accessibility-fontsize-270 h3, .accessibility-fontsize-270 h4, .accessibility-fontsize-270 h5, .accessibility-fontsize-270 h6, .accessibility-fontsize-270 .gallery .title, .accessibility-fontsize-270 .videosDetails .title{ font-size: 270% !important; max-height: none; } .accessibility-fontsize-280, .accessibility-fontsize-280 h1, .accessibility-fontsize-280 h2, .accessibility-fontsize-280 h3, .accessibility-fontsize-280 h4, .accessibility-fontsize-280 h5, .accessibility-fontsize-280 h6, .accessibility-fontsize-280 .gallery .title, .accessibility-fontsize-280 .videosDetails .title{ font-size: 280% !important; max-height: none; } .accessibility-fontsize-290, .accessibility-fontsize-290 h1, .accessibility-fontsize-290 h2, .accessibility-fontsize-290 h3, .accessibility-fontsize-290 h4, .accessibility-fontsize-290 h5, .accessibility-fontsize-290 h6, .accessibility-fontsize-290 .gallery .title, .accessibility-fontsize-290 .videosDetails .title{ font-size: 290% !important; max-height: none; } .accessibility-fontsize-300, .accessibility-fontsize-300 h1, .accessibility-fontsize-300 h2, .accessibility-fontsize-300 h3, .accessibility-fontsize-300 h4, .accessibility-fontsize-300 h5, .accessibility-fontsize-300 h6, .accessibility-fontsize-300 .gallery .title, .accessibility-fontsize-300 .videosDetails .title{ font-size: 300% !important; max-height: none; } var currentFontsize = 100; $(function () { $('.accessibility-toolbar-overlay a').click(function (event) { event.preventDefault(); var action = $(this).attr('action'); switch (action) { case 'increase-text': var newFontSize = currentFontsize + 10; if (newFontSize < 150) { newFontSize = 150; } setFontSize(newFontSize); break; case 'decrease-text': var newFontSize = currentFontsize - 10; if (newFontSize < 150) { newFontSize = 150; } setFontSize(currentFontsize - 10); break; case 'grayscale': $('body').toggleClass('accessibility-grayscale'); $(this).toggleClass('active'); break; case 'high-contrast': $('body').toggleClass('accessibility-high-contrast'); $(this).toggleClass('active'); break; case 'negative-contrast': $('body').toggleClass('accessibility-negative-contrast'); $(this).toggleClass('active'); break; case 'links-underline': $('body').toggleClass('accessibility-links-underline'); $(this).toggleClass('active'); break; case 'readable-font': $('body').toggleClass('accessibility-readable-font'); $(this).toggleClass('active'); break; case 'reset': resetAccessibility(); break; default: break; } }); }); function setFontSize(num) { if (num < 100) { num = 100; } else if (num > 300) { num = 300; } for (i = 10; i <= 200; i += 10) { var fontsizeNum = 100 + i; $('body').removeClass('accessibility-fontsize-' + fontsizeNum); } $('body').addClass('accessibility-fontsize-' + num); currentFontsize = num; } function resetAccessibility() { $('.accessibility-toolbar-overlay a').removeClass('active'); var classItems = $('body').attr('class').split(/\s+/); for (var item in classItems) { var className = classItems[item]; if (/^accessibility/.test(className)) { $('body').removeClass(className); } } } $(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"); } }); }); $(function(){ $('.carousel').carousel({ interval: 5000 }); });
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(); if (getPageHeight() <= $(window).height()) { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 1000); $("#mainFooter").css("position", "fixed"); } else { $("#mainFooter").css("position", "relative"); } } 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; } function showTrailer(iframe) { avideoModalIframe(iframe); } $('#TrailerModal').on('hidden.bs.modal', function () { $('#TrailerModal iframe').attr('src', ''); }); $('#bigVideoCarousel').bind('slide.bs.carousel', function (e) { setTimeout(function(){ lazyImage(); },500); });