function RegenrateslideImage(image,slideid) { var imagelink = document.getElementById('slideregenrateLink').value; var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/editSlide.php", data:{image : image,'slideImageRegenrate':'slideImageRegenrate',slideid:slideid,imagelink:imagelink}, success: function(data) { $(".show-list").html(data); $(window).scrollTop(0); } }); } function RegenrateListImage(image,listid) { var imagelink = document.getElementById('listregenrateLink').value; var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/editList.php", data:{image : image,'listImageRegenrate':'listImageRegenrate',listid:listid,imagelink:imagelink}, success: function(data) { $(".show-list").html(data); $(window).scrollTop(0); $("#listkeywords").tagsInput({ width:"auto", color:"blue" }); } }); } function ViewListGrid() { document.getElementById('viewOfListActive').value='1'; $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/gridview.php", data:{gridview : 1}, success: function(ajaxresult) {} }); } function ViewListList() { document.getElementById('viewOfListActive').value='0'; $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/gridview.php", data:{listview : 1}, success: function(ajaxresult) {} }); } function mailsend() { var name = document.getElementById('name').value; var email = document.getElementById('email').value; var subject = document.getElementById('subject').value; var message_box = document.getElementById('message_box').value; if(document.getElementById('captcha_code')) { var captcha_code = document.getElementById('captcha_code').value; var signUpAjaxCapctha = document.getElementById('signUpAjaxCapctha').value; } else { var captcha_code = ''; var signUpAjaxCapctha = ''; } var status_of_loader = ''; if(status_of_loader == 1) $('#alert-message').html('
').fadeIn('fast'); $.ajax({ type:"POST", url: "http://www.freexnxxxvideos.com/includes/contact.php", data: {'name':name,'email':email,'subject':subject,'message_box':message_box,'captcha_code':captcha_code,signUpAjaxCapctha:signUpAjaxCapctha}, dataType: "json", success: function(data) { $('#load-message').html(''); $(window).scrollTop(0); if(data[0] == 0) $("#alert-message").html(data[1]); else if(data[0] == 1) { $("#alert-message").html(data[1]); $('input[type="text"]').val(''); $('input[type="email"]').val(''); $('#message_box').val(''); } } }); } $(document).ready(function(){ ShowLists(); }); function ShowLists() { var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/manageLists.php", success: function(ajaxresult) { $(".show-list").html(ajaxresult); } }); } function showSlides(listid,userid) { var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/manageSlides.php", data:{listid : listid, userid : userid}, success: function(ajaxresult) { $(".show-list").html(ajaxresult); } }); } function triggerprofileImage() { $("#uploadprofileimage").trigger('click'); }; function readprofileimage(input) { if(input.files && input.files[0]) { document.getElementById("upload_profileimg").style.display="block"; var reader = new FileReader(); reader.onload = function (e) { $('#upload_profileimg') .attr('src', e.target.result) .width(200) .height(200); }; reader.readAsDataURL(input.files[0]); } } function triggercoverImage() { $("#uploadcoverimage").trigger('click'); }; function readcoverimage(input) { if(input.files && input.files[0]) { document.getElementById("upload_coverimg").style.display="block"; var reader = new FileReader(); reader.onload = function (e) { $('#upload_coverimg') .attr('src', e.target.result) .width(200) .height(200); }; reader.readAsDataURL(input.files[0]); } } function triggerImage() { $("#uploadimage").trigger('click'); }; function readimage(input) { if(input.files && input.files[0]) { document.getElementById("upload_img").style.display="block"; var reader = new FileReader(); reader.onload = function (e) { $('#upload_img') .attr('src', e.target.result) .width(200) .height(200); }; reader.readAsDataURL(input.files[0]); } } function SlideOption() { document.getElementById("showSlideOption").style.display = 'none'; document.getElementById("selectedSlideOption").style.display = 'block'; } function SelectedImageSlideOption() { document.getElementById("selectedSlideOption").style.display = 'none'; document.getElementById("showuploadSlide").style.display = 'block'; } function SelectedVideoSlideOption() { document.getElementById("selectedSlideOption").style.display = 'none'; document.getElementById("showEmbedLink").style.display = 'block'; } function resetOption() { $('#uploadslide').val(''); document.getElementById("showSlideOption").style.display = 'block'; document.getElementById("selectedSlideOption").style.display = 'none'; document.getElementById("showuploadSlide").style.display = 'none'; document.getElementById("showEmbedLink").style.display = 'none'; document.getElementById("srcslide").style.display = 'none'; } function triggerslide() { $("#uploadslide").trigger('click'); }; function readslide(input) { if(input.files && input.files[0]) { document.getElementById("srcslide").style.display="block"; var reader = new FileReader(); reader.onload = function (e) { $('#srcslide') .attr('src', e.target.result) .width(200) .height(200); }; reader.readAsDataURL(input.files[0]); } } function ListSubmits() { var data = new FormData(); var title = document.getElementById('listtitle').value; var permalink = document.getElementById('listpermalink').value; var category = document.getElementById('listCategory').value; var description = document.getElementById('listdescription').value; var keywords = $(".listkeywords").val(); var file = $("#uploadimage")[0].files; data.append('file',file[0]); data.append('title',title); data.append('permalink',permalink); data.append('category',category); data.append('description',description); data.append('keywords',keywords); var status_of_loader = ''; if(status_of_loader == 1) $('#AddListSubmit').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/submitList.php", data:data, processData: false, contentType: false, dataType: "json", success: function(data) { if(data[0] == 1) { addslide(data[1],data[2]); } else if(data[0] == 0) { $(window).scrollTop(0); $("#AddListSubmit").html(data[1]); } } }); } function ListUpdate(listid) { var data = new FormData(); var title = document.getElementById('listtitle').value; var permalink = document.getElementById('listpermalink').value; var category = document.getElementById('listCategory').value; var description = document.getElementById('listdescription').value; var userId = document.getElementById('userId').value; var keywords = $(".listkeywords").val(); var file = $("#uploadimage")[0].files; data.append('file',file[0]); data.append('title',title); data.append('permalink',permalink); data.append('category',category); data.append('listid',listid); data.append('description',description); data.append('keywords',keywords); data.append('userId',userId); var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/editList.php", data:data, processData: false, contentType: false, success: function(data) { $(".show-list").html(data); $(window).scrollTop(0); $("#listkeywords").tagsInput({ width:"auto", color:"blue" }); } }); } function SlideUpdate(slideid) { var data = new FormData(); var title = document.getElementById('slidetitle').value; var description = document.getElementById('slidedescription').value; var vlink = document.getElementById('slidevideoLink').value; var article = document.getElementById('slidearticle').value; var optionallink = document.getElementById('slidelink').value; var file = $("#uploadslide")[0].files; data.append('file',file[0]); data.append('title',title); data.append('article',article); data.append('vlink',vlink); data.append('description',description); data.append('slideid',slideid); data.append('optionallink',optionallink); var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/editSlide.php", data:data, processData: false, contentType: false, success: function(data) { $(".show-list").html(data); $(window).scrollTop(0); } }); } function slideSubmit() { var data = new FormData(); var title = document.getElementById('slidetitle').value; var description = document.getElementById('slidedescription').value; var vlink = document.getElementById('slidevideoLink').value; var article = document.getElementById('slidearticle').value; var optionallink = document.getElementById('slidelink').value; var file = $("#uploadslide")[0].files; data.append('file',file[0]); data.append('title',title); data.append('article',article); data.append('vlink',vlink); data.append('description',description); data.append('optionallink',optionallink); var status_of_loader = ''; if(status_of_loader == 1) $('#AddSlideSubmit').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/sumitslide.php", data:data, processData: false, contentType: false, dataType: "json", success: function(data) { if(data[0] == 1) { document.getElementById('slidetitle').value=""; document.getElementById('slidedescription').value=""; document.getElementById('slidevideoLink').value=""; document.getElementById('slidelink').value=""; document.getElementById("srcslide").style.display="none"; $(window).scrollTop(0); $("#AddSlideSubmit").html(data[1]); } else if(data[0] == 0) { $(window).scrollTop(0); $("#AddSlideSubmit").html(data[1]); } } }); } function addList() { var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/addlist.php", data:{addList:'addList'}, processData: false, contentType: false, success: function(data) { $(".show-list").html(data); $("#listkeywords").tagsInput({ width:"auto", color:"blue" }); } }); } function addslide(userid,listid) { var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/addslide.php", data:{userid:userid,listid:listid}, success: function(data) { $(".show-list").html(data); } }); } function editLists(listid) { var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/editList.php", data:{listid:listid}, success: function(data) { $(".show-list").html(data); $("#listkeywords").tagsInput({ width:"auto", color:"blue" }); } }); } function editSlides(slideid) { var status_of_loader = ''; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/editSlide.php", data:{slideid:slideid}, success: function(data) { $(".show-list").html(data); } }); } $(function() { $('#updateProfile').click(function() { var data = new FormData(); var fname = document.getElementById('userFirstname').value; var lname = document.getElementById('userLastname').value; var username = document.getElementById('updateUsername').value; var email = document.getElementById('updateEmail').value; var facebook = document.getElementById('facebookLink').value; var twitter = document.getElementById('twitterLink').value; var google = document.getElementById('googleLink').value; var website = document.getElementById('websiteLink').value; var biography = document.getElementById('biography').value; var description = document.getElementById('userdescription').value; var keywords = document.getElementById('userkeywords').value; var file1 = $("#uploadcoverimage")[0].files; var file = $("#uploadprofileimage")[0].files; if(document.getElementById('notificationStatus').checked) notificationStatus=1; else notificationStatus=0; data.append('file',file[0]); data.append('file1',file1[0]); data.append('fname',fname); data.append('lname',lname); data.append('username',username); data.append('email',email); data.append('facebook',facebook); data.append('twitter',twitter); data.append('google',google); data.append('biography',biography); data.append('description',description); data.append('website',website); data.append('keywords',keywords); data.append('notificationStatus',notificationStatus); var status_of_loader = ''; if(status_of_loader == 1) $('#UpdateSubmitProfileAlert').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/profileSetting.php", data:data, dataType: "json", processData: false, contentType: false, success: function(data) { if(data[0] == 1) { $(window).scrollTop(0); $("#UpdateSubmitProfileAlert").html(data[1]); } else if(data[0] == 0) { $(window).scrollTop(0); $("#UpdateSubmitProfileAlert").html(data[1]); } } }); }); }); $(document).ready(function(){ ShowFavouriteLists(); }); function ShowFavouriteLists() { var status_of_loader = ''; if(status_of_loader == 1) $('#favourite-list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/manageFavouriLists.php", success: function(ajaxresult) { $(".show-favourite-list").html(ajaxresult); } }); } $(document).ready(function(){ ShowHistoryLists(); }); function ShowHistoryLists() { var status_of_loader = ''; if(status_of_loader == 1) $('#history-list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"http://www.freexnxxxvideos.com/includes/manageHistoryiLists.php", success: function(ajaxresult) { $(".show-history-list").html(ajaxresult); } }); } $(function() { $('#UpdateLoginAccount').click(function() { var data = new FormData(); var username = document.getElementById('accountUsername').value; var email = document.getElementById('accountEmail').value; var oldpassword = document.getElementById('accountoldpassword').value; var password = document.getElementById('accountPassword').value; data.append('email',email); data.append('oldpassword',oldpassword); data.append('username',username); data.append('password',password); var status_of_loader = ''; if(status_of_loader == 1) $('#UpdateSubmitAccountAlert').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/UpdateAccountSettings.php", data:data, dataType: "json", processData: false, contentType: false, success: function(data) { if(data[0] == 1) { $(window).scrollTop(0); $("#UpdateSubmitAccountAlert").html(data[1]); } else if(data[0] == 0) { $(window).scrollTop(0); $("#UpdateSubmitAccountAlert").html(data[1]); } } }); }); }); $(function() { $('#updateAds').click(function() { var data = new FormData(); if(document.getElementById('firstads')) { var firstads = document.getElementById('firstads').value; if(document.getElementById('TopLeaderboardStatus').checked) TopLeaderboardStatus=1; else TopLeaderboardStatus=0; if(document.getElementById('responsive1').checked) responsive1=1; else responsive1=0; data.append('firstads',firstads); data.append('TopLeaderboardStatus',TopLeaderboardStatus); data.append('responsive1',responsive1); } if(document.getElementById('secondads')) { var secondads = document.getElementById('secondads').value; if(document.getElementById('BottomLeaderboardStatus').checked) BottomLeaderboardStatus=1; else BottomLeaderboardStatus=0; if(document.getElementById('responsive2').checked) responsive2=1; else responsive2=0; data.append('secondads',secondads); data.append('BottomLeaderboardStatus',BottomLeaderboardStatus); data.append('responsive2',responsive2); } if(document.getElementById('thirdads')) { var thirdads = document.getElementById('thirdads').value; if(document.getElementById('BannerAdStatus').checked) BannerAdStatus=1; else BannerAdStatus=0; if(document.getElementById('responsive3').checked) responsive3=1; else responsive3=0; data.append('thirdads',thirdads); data.append('BannerAdStatus',BannerAdStatus); data.append('responsive3',responsive3); } var userId = document.getElementById('CurrentuserID').value; data.append('userId',userId); var status_of_loader = ''; if(status_of_loader == 1) $('#UpdateSubmitAdsAlert').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "http://www.freexnxxxvideos.com/includes/updateAds.php", data:data, dataType: "json", processData: false, contentType: false, success: function(data) { if(data[0] == 1) { $(window).scrollTop(0); $("#UpdateSubmitAdsAlert").html(data[1]); } else if(data[0] == 0) { $(window).scrollTop(0); $("#UpdateSubmitAdsAlert").html(data[1]); } } }); }); }); $("#home-chart").html("

No web searches in this week

"); $("#total_month_chart").html("

Not Found

"); $("#total_chart").html("

Not Found

");