function RegenrateslideImage(image,slideid) { var imagelink = document.getElementById('slideregenrateLink').value; var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"https://www.bloggalot.com/includes/editSlide.php", data:{image : image,'slideImageRegenrate':'slideImageRegenrate',slideid:slideid,imagelink:imagelink}, success: function(data) { $(".showalllist").html(data); $(window).scrollTop(0); } }); } function RegenrateListImage(image,listid) { var imagelink = document.getElementById('listregenrateLink').value; var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"https://www.bloggalot.com/includes/editList.php", data:{image : image,'listImageRegenrate':'listImageRegenrate',listid:listid,imagelink:imagelink}, success: function(data) { $(".showalllist").html(data); $(window).scrollTop(0); $("#listkeywords").tagsInput({ width:"auto", color:"blue" }); } }); } function ViewListGrid() { document.getElementById('viewOfListActive').value='1'; $.ajax ({ type:"POST", url:"https://www.bloggalot.com/includes/gridview.php", data:{gridview : 1}, success: function(ajaxresult) {} }); } function ViewListList() { document.getElementById('viewOfListActive').value='0'; $.ajax ({ type:"POST", url:"https://www.bloggalot.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 = '1'; if(status_of_loader == 1) $('#alert-message').html('
').fadeIn('fast'); $.ajax({ type:"POST", url: "https://www.bloggalot.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(){ //alert('in show list'); var st = getQueryVariable("st"); var item_number = getQueryVariable("item_number"); //alert(st); //alert(item_number); var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"https://www.bloggalot.com/includes/manageLists.php?st="+st+"&item_number="+item_number, success: function(ajaxresult) { // alert(ajaxresult); $(".showalllist").html(ajaxresult); } }); } function showSlides(listid,userid) { var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"https://www.bloggalot.com/includes/manageSlides.php", data:{listid : listid, userid : userid}, success: function(ajaxresult) { //$(".show-list").html(ajaxresult); $(".showalllist").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 triggerImage2() { $("#uploadimage2").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 readimage2(input) { if(input.files && input.files[0]) { document.getElementById("upload_img2").style.display="block"; var reader = new FileReader(); reader.onload = function (e) { $('#upload_img2') .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() { tinyMCE.triggerSave(); var data = new FormData(); var premiumads = $("input[name='premiumads']:checked").val(); if (typeof premiumads == 'undefined'){ alert('Please select post type.'); return false; //alert(premiumads); } var title = document.getElementById('listtitle').value; var category = document.getElementById('listCategory').value; var description = document.getElementById('listdescription').value; //alert(description); var keywords = $(".listkeywords").val(); var videocode = document.getElementById('videocode').value; var addvideo = document.getElementById('addvideo').value; var file = $("#uploadimage")[0].files; data.append('file',file[0]); var file2 = $("#uploadimage2")[0].files; data.append('file2',file2[0]); data.append('premiumads',premiumads); data.append('title',title); data.append('category',category); data.append('description',description); data.append('keywords',keywords); data.append('videocode',videocode); data.append('addvideo',addvideo); //alert(JSON.stringify(data)); //alert(data.toSource()); var status_of_loader = '1'; //alert(status_of_loader); if(status_of_loader == 1) $('#AddListSubmit').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.com/includes/submitList.php", data:data, processData: false, contentType: false, dataType: "json", success: function(data) { //alert(data.toSource()); //alert(data[0]); if(data[0] == 1) { if(data[5] == 1){ //alert(data[5]); //alert(data[6]); //var paypalurl = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=businesstest12345@gmail.com&invoice=1606288610¤cy_code=USD&item_name=Premium%20Post&item_number=' + data[7] + '&quantity=1&amount=' + data[6] +'&return=http://bloggalot.com/panel/my-lists&cancel_return=http://bloggalot.com/panel/my-lists&add=1'; var paypalurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=adspace@bloggalot.com&invoice=1606288610¤cy_code=USD&item_name=Premium%20Post&item_number=' + data[7] + '&quantity=1&amount=' + data[6] +'&return=http://bloggalot.com/panel/my-lists&cancel_return=http://bloggalot.com/panel/my-lists&add=1'; window.location.href = paypalurl; } else if(data[4] == 1){ //alert(data[4]); //ShowLists(); window.location.href = "https://www.bloggalot.com/panel/my-lists"; return; } else{ addslide(data[1],data[2],data[5],data[6]); } } else if(data[0] == 0) { $(window).scrollTop(0); $("#AddListSubmit").html(data[1]); } } }); } function ListUpdate(listid) { tinyMCE.triggerSave(); var data = new FormData(); var title = document.getElementById('listtitle').value; var category = document.getElementById('listCategory').value; var description = document.getElementById('listdescription').value; var videocode = document.getElementById('videocode').value; var VideoList = document.getElementById('VideoList').value; var userId = document.getElementById('userId').value; var keywords = $(".listkeywords").val(); var file = $("#uploadimage")[0].files; data.append('file',file[0]); var file2 = $("#uploadimage2")[0].files; data.append('file2',file2[0]); data.append('title',title); data.append('category',category); data.append('listid',listid); data.append('description',description); data.append('keywords',keywords); data.append('userId',userId); data.append('videocode',videocode); data.append('VideoList',VideoList); var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.com/includes/editList.php", data:data, processData: false, contentType: false, success: function(data) { //$(".show-list").html(data); $(".showalllist").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 = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.com/includes/editSlide.php", data:data, processData: false, contentType: false, success: function(data) { $(".showalllist").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; var ispremium = document.getElementById('ispremium').value; var premiumfee = document.getElementById('premiumfee').value; 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); data.append('ispremium',ispremium); data.append('premiumfee',premiumfee); var status_of_loader = '1'; if(status_of_loader == 1) $('#AddSlideSubmit').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.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(postVideo = 0, premiumads = 1, selectedplan = 0) { //alert('hi'); var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.com/includes/addlist.php?addVideo=" + postVideo + "&premiumads=" + premiumads + "&selectedplan=" + selectedplan, data:{addList:'addList'}, processData: false, contentType: false, success: function(data) { $(".show-add-list").html(data); $(".admin-content").hide(); $("#add-lists").show(); $("#listkeywords").tagsInput({ width:"auto", color:"blue" }); } }); } function addslide(userid,listid,ispremium,premiumfee) { var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.com/includes/addslide.php", data:{userid:userid,listid:listid,ispremium:ispremium,premiumfee:premiumfee}, success: function(data) { $(".showalllist").html(data); } }); } function editLists(listid, isvideo = 0) { var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.com/includes/editList.php?VideoList=" + isvideo, data:{listid:listid}, success: function(data) { //alert(data); //$(".show-list").html(data); $(".showalllist").html(data); $("#listkeywords").tagsInput({ width:"auto", color:"blue" }); } }); } function editSlides(slideid) { var status_of_loader = '1'; if(status_of_loader == 1) $('#list-loader').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.com/includes/editSlide.php", data:{slideid:slideid}, success: function(data) { $(".showalllist").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 = '1'; if(status_of_loader == 1) $('#UpdateSubmitProfileAlert').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.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 = '1'; if(status_of_loader == 1) $('#favourite-list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"https://www.bloggalot.com/includes/manageFavouriLists.php", success: function(ajaxresult) { $(".show-favourite-list").html(ajaxresult); } }); } $(document).ready(function(){ ShowHistoryLists(); }); function ShowHistoryLists() { var status_of_loader = '1'; if(status_of_loader == 1) $('#history-list-loader').html('
').fadeIn('fast'); $.ajax ({ type:"POST", url:"https://www.bloggalot.com/includes/manageHistoryiLists.php", success: function(ajaxresult) { $(".show-history-list").html(ajaxresult); } }); } function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0; i < vars.length; i++) { var pair = vars[i].split("="); if(pair[0] == variable){return pair[1];} } return(false); } $(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 = '1'; if(status_of_loader == 1) $('#UpdateSubmitAccountAlert').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.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 = '1'; if(status_of_loader == 1) $('#UpdateSubmitAdsAlert').html('
').fadeIn('fast'); $.ajax({ type: "POST", url: "https://www.bloggalot.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

"); $(function () { var chart; $(document).ready(function () { $('#total_chart').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false }, title: { text: '' }, tooltip: { pointFormat: '{series.name}: {point.y:.0f}' }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: false }, showInLegend: true } }, credits: { enabled: false }, series: [{ type: 'pie', name: 'Value', data: [ ['Clicks', 0], ['Shares', 7], ['Likes',3], ['DisLikes',0], ['Subscribes',0], ['Ads',0], ['Favourits',1] ] }] }); }); });