.lds-62854818bbd80ring { display: inline-block; position: relative; width: 80px; height: 80px; } .lds-62854818bbd80ring div { box-sizing: border-box; display: block; position: absolute; width: 64px; height: 64px; margin: 8px; border: 8px solid #fff; border-radius: 50%; animation: lds-62854818bbd80ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; border-color: #fff transparent transparent transparent; } .lds-62854818bbd80ring div:nth-child(1) { animation-delay: -0.45s; } .lds-62854818bbd80ring div:nth-child(2) { animation-delay: -0.3s; } .lds-62854818bbd80ring div:nth-child(3) { animation-delay: -0.15s; } @keyframes lds-62854818bbd80ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } var avideoLoader = '
'; var webSiteRootURL = 'https://video.hoboworld.net/'; var my_users_id = 0; var my_identification = "Unknown User"; var player; var _serverTime = "1652901912"; var _serverDBTime = "1652901912"; var _serverTimeString = "2022-05-18 21:25:12"; var _serverDBTimeString = "2022-05-18 21:25:12"; var _serverTimezone = "Europe/Copenhagen"; var avideoModalIframeFullScreenCloseButton = " $(document).ready(function () { YPTHidenavbar(); });
  • $(function () { /** showAlertMessage **/ /** showAlertMessage END **/ });
    #liveSearchResult{ position: fixed; display: none; z-index: 9999; margin-right: 10px; width: 400px; } #liveSearchResult li:last-child { margin-right: 0 !important; } .ui-autocomplete{ z-index: 2000 !important; width: 300px; overflow-y: auto; overflow-x: hidden; max-height: 75%; } .ui-autocomplete .srow{ padding: 5px; margin: 0; } .ui-autocomplete div{ font-size: 11px; } .ui-autocomplete .col{ padding: 2px; margin: 0; } .ui-autocomplete .col .btn{ color: #FFF; } $(document).ready(function () { $("#searchForm").attr("onsubmit", "return false;"); // tu="off" $("#searchForm input[name=search]").click(function () { if ($("#searchForm input[name=search]").val() != "") { $("#liveSearchResult").show(); } else { $("#liveSearchResult").hide(); } }); $("#searchForm input[name=search]").focus(function () { if ($("#searchForm input[name=search]").val() != "") { $("#liveSearchResult").show(); } else { $("#liveSearchResult").hide(); } }); $(document).mouseup(function (e) { var container = $("#liveSearchResult"); if (!container.is(e.target) && container.has(e.target).length === 0) { container.hide(); } }); //$("#searchForm").append(""); $("#searchForm input[name=search]").on("input", function () { if ($("#searchForm input[name=search]").val() == "") { $("#liveSearchResult").hide(); } }); }); var linksToFullscreenAutocompleteTimeout; var livesearchAutocompleteSelected = false; var livesearchAutocompleteCliked = false; $(function () { $("#searchForm input[name=search]").autocomplete({ minLength: 0, source: function (req, res) { $.ajax({ url: webSiteRootURL + 'plugin/Livesearch/myVideos.json.php', type: "GET", data: { search: req.term }, success: function (data) { console.log("autocomplete data received"); res(data.rows); if (typeof linksToFullscreen == 'function') { clearTimeout(linksToFullscreenAutocompleteTimeout); linksToFullscreenAutocompleteTimeout = setTimeout(function () { console.log('autocomplete linksToFullscreen .ui-autocomplete a'); }, 50); } } }); }, focus: function (event, ui) { //$("#searchForm input[name=search]").val(ui.item.title); return false; }, select: function (event, ui) { console.log("autocomplete select"); if (livesearchAutocompleteCliked) { console.log("autocomplete select already clicked"); return true; } livesearchAutocompleteSelected = true; clearTimeout(linksToFullscreenAutocompleteTimeout); linksToFullscreenAutocompleteTimeout = setTimeout(function () { console.log("autocomplete trigger click"); livesearchAutocompleteCliked = true; if (!$('#livesearch_autocomplete_' + ui.item.id).hasClass('linksToFullscreen')) { document.location = $('#livesearch_autocomplete_' + ui.item.id).attr('href'); } else { $('#livesearch_autocomplete_' + ui.item.id).trigger('click'); } setTimeout(function () { livesearchAutocompleteCliked = false; }, 1000); }, 50); return false; }, search: function (event, ui) { //$("#liveSearchResult").empty(); console.log("autocomplete search"); } }).autocomplete("instance")._renderItem = function (ul, item) { var sr = $("#searchRow").clone(); sr.css("display", "block"); var html = sr.html(); html = html.replace(new RegExp("{id}", 'g'), item.id); html = html.replace(new RegExp("{href}", 'g'), item.href); html = html.replace(new RegExp("{embed}", 'g'), item.hrefembed); html = html.replace(new RegExp("{filename}", 'g'), item.filename); html = html.replace(new RegExp("{imgURL}", 'g'), ''); html = html.replace(new RegExp("{clean_category}", 'g'), item.clean_category); html = html.replace(new RegExp("{category}", 'g'), item.category); html = html.replace(new RegExp("{title}", 'g'), item.title); html = html.replace(new RegExp("{description}", 'g'), item.description); //$("#liveSearchResult").show(); var append = $("
  • ").append(html).appendTo(ul); return append; }; $("#searchForm input[name=search]").keydown(function (event) { if (event.keyCode == 13) { if (livesearchAutocompleteSelected) { console.log("autocomplete keydown already selected"); livesearchAutocompleteSelected = false; return false; } if ($("#searchForm input[name=search]").val().length == 0) { event.preventDefault(); return false; } else { clearTimeout(linksToFullscreenAutocompleteTimeout); linksToFullscreenAutocompleteTimeout = setTimeout(function () { console.log("autocomplete trigger keydown"); $("#searchForm").submit(); }, 50); } } }); }); var webSocketSelfURI = 'https://video.hoboworld.net/view/'; var webSocketVideos_id = '0'; var webSocketLiveKey = 'false'; var webSocketServerVersion = '3.0'; var webSocketToken = ''; var webSocketURL = ''; var webSocketTypes = {"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 { socketNewConnection(response); } catch (e) { console.log('onUserSocketConnect:error', e.message); } } function onUserSocketDisconnect(response) { try { socketDisconnection(response); } catch (e) { console.log('onUserSocketConnect:error', e.message); } } 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://video.hoboworld.net/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://video.hoboworld.net/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(); }); var liveLinkAppsCalled = {}; function liveLinkApps($liveLi, className, live_starts) { if (new Date(live_starts).getTime() < new Date().getTime()) { return false; } if (typeof liveLinkAppsCalled[className] !== 'undefined') { // do not call it twice //return false; } //console.log('liveLinkApps', $liveLi, className, live_starts, $liveLi.find('.liveNow')); liveLinkAppsCalled[className] = live_starts; $liveLi.find('.liveNow').html("Starts in " + live_starts + ""); $liveLi.find('.liveNow').attr("class", 'label label-primary liveFuture'); //console.log('liveLinkApps', '.'+className+' '+live_starts); startTimerToDate(live_starts, '.Timer_' + className, false); return $liveLi; } $(document).ready(function () { }); /*selected=en_US*/function getLangSelectformatStateResult (state) { if (!state.id) { return state.text; } if(state.text!==' -- '){ json = JSON.parse(state.text); var $state = $( ''+ ' - ' + json.text + '' ); return $state; } return state.text; };function getLangFlagsOnlySelectformatStateResult (state) { if (!state.id) { return state.text; } if(state.text!==' -- '){ json = JSON.parse(state.text); var $state = $( '' ); return $state; } return state.text; }; $(document).ready(function() {$('#navBarFlag').select2({templateSelection: getLangFlagsOnlySelectformatStateResult, templateResult: getLangFlagsOnlySelectformatStateResult,width: '100%'});}); $(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"); } }); });
  • 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); });