$j = jQuery.noConflict(); $j(document).ready(function() { // When click browser back and forward button close the skigit modal popup and stay with the current location! if (window.history && window.history.pushState) { window.history.pushState('', null, './'); $j(window).on('popstate', function() { if (($j("#skigit-modal").data('bs.modal') || {}).isShown) { $j("#skigit-modal").modal("hide"); } }); } imagedLoaded = function(id) { sk_id = "#sk-" + id img_id = "#vid-" + id $j(sk_id).css("display", "none"); $j(img_id).css("display", "block"); } imagedError = function(id) { sk_id = "#sk-" + id img_id = "#vid-" + id $j(sk_id).css("display", "none"); $j(img_id).css("display", "block"); } var img1 = new Image(); var img2 = new Image(); var myMessages = ['info', 'warning', 'error', 'success']; // define the messages types //var DELETE_ICON = 'static/skigit/wp-content/themes/detube/images/deleteIcon.png'; //var RIGHT_ICON = 'ttp://static.skigit.com/skigit/wp-content/themes/detube/images/success_icon.png'; var DELETE_ICON = '/static/skigit/wp-content/themes/detube/images/deleteIcon.png'; var RIGHT_ICON = '/static/skigit/wp-content/themes/detube/images/success_icon.png'; var DELETE_ICON_IMG = ''; var RIGHT_ICON_IMG = ''; var BASE_URL = '/'; function get_skigit_statistics(skigit_id){ $j.ajax({ type: "POST", url: "/skigit_statistics/", data: {'skigit_id': skigit_id, 'csrfmiddlewaretoken': getCookie('csrftoken')}, success: function (response) { if (response.is_success) { $j('li').find('#id_plug_count').html(response.plug_count); $j('li').find('#id_view_count').html(response.view_count); $j('li').find('#id_favorites').html(response.fav_count); $j('li').find('#id_likes').html(response.like_count); $j('li').find('#id_share').html(response.share_count) } }, error: function (rs, e) { $j("#popup_msg").text("Error into Skigit Statistic Please try again"); $j("#popScreen").show(); } }); }; function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie !== '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = $j.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) === (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } function is_empty(str) { return !str || !/[^\s]+/.test(str); } function rem_msg() { $j(".notify_msg_div").html(''); } function set_msg(tag, msg) { msg_string = '
'; $j(".notify_msg_div").append(msg_string); } function show_msg() { hideAllMessages(); to = 0; for (var i = 0; i < myMessages.length; i++) { if ($j('.' + myMessages[i]).length > 0) { $j('.' + myMessages[i]).show(); $j('.' + myMessages[i]).animate({ top: to }, 1200); to += $j('.' + myMessages[i]).outerHeight(); } showMessage(myMessages[i]); } // When message is clicked, hide it $j('.message').click(function() { $j(this).animate({ top: -$j(this).outerHeight() }, 500); }); setTimeout(function() { hidemsg(); }, 12000) } function hidemsg() { to = 0; for (var i = 0; i < myMessages.length; i++) { if ($j('.' + myMessages[i]).length > 0) { to += $j('.' + myMessages[i]).outerHeight(); $j('.' + myMessages[i]).animate({ top: -to }, 1200); } showMessage(myMessages[i]); } } function hideAllMessages() { var messagesHeights = []; // this array will store height for each for (var i = 0; i < myMessages.length; i++) { messagesHeights[i] = $j('.' + myMessages[i]).outerHeight(); $j('.' + myMessages[i]).css('top', '-' + messagesHeights[i]); //move element outside viewport } } function showMessage(type) { $j('.' + type + '-trigger').click(function() { hideAllMessages(); $j('.' + type).animate({ top: "0" }, 500); }); } function logo_imgURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function(e) { $j('#logo_img') .attr('src', e.target.result); }; reader.readAsDataURL(input.files[0]); } } function profile_imgURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function(e) { $j('#user_profile_image') .attr('src', e.target.result); }; reader.readAsDataURL(input.files[0]); } } function password_reset_email_check() { var id_email = $j('#id_email').val().trim(); var is_error = false; //var is_success = false var msg = "..."; if (id_email && !is_empty(id_email)) { $j.ajax({ url: "/email_exits_check/", // the endpoint type: "POST", // http method data: { 'email': id_email }, // data sent with the delete request success: function(response) { if (response) { if (response.is_success) { is_error = false; msg = response.message; } else { is_error = true; msg = response.message; } } else { is_error = true; msg = "Oops! Server encountered an error."; } }, error: function(xhr, errmsg, err) { is_error = true; msg = "Oops! We have encountered an error." + xhr.status + ": " + xhr.responseText; } }); } else { is_error = true; msg = "Please enter a valid email address." } setTimeout(function() { if (is_error) { $j("#password_reset_error").html("" + msg + "
"); return is_error } else { $j("#password_reset_error").html("" + msg + "
"); return is_error } }, 80000); } var forceSubmitForm = false; $j("img.img2").hide(); show_msg(); $j("#header .navbar-nav li a").hover(function() { var $jimg1 = $j(this).children('.img1'); var $jimg2 = $j(this).children('.img2'); if ($jimg1 && $jimg1.length === 1 && $jimg2 && $jimg2.length === 1) { img1.src = $jimg1.attr('src'); img2.src = $jimg2.attr('src'); $jimg2.attr('src', img1.src); $jimg1.attr('src', img2.src); } }, function() { var $jimg1 = $j(this).children('.img2'); var $jimg2 = $j(this).children('.img1'); if ($jimg1 && $jimg1.length === 1 && $jimg2 && $jimg2.length === 1) { img1.src = $jimg1.attr('src'); img2.src = $jimg2.attr('src'); $jimg2.attr('src', img1.src); $jimg1.attr('src', img2.src); } }); $j('.dropdown-menu').click(function(event) { event.stopPropagation(); }); $j.ajaxSetup({ beforeSend: function(xhr, settings) { if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) { if(!getCookie('csrftoken')) window.location.reload() // incase csrf token is removed from cookies e.g clear cache xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken')); } } }); // $j("form#form_login").submit(function (e) { // e.preventDefault() // $j("#chat_msg_submit").attr('disabled', 'disabled'); // var form_data = $j(this).serialize(); // var user_login = $j('#user_login').val().trim(); // var user_pass = $j("#user_pass").val().trim(); // var is_error = false // var is_success = false // var $jsubmit = $j("form#form_login").children().find("input[type='submit']"); // $jsubmit.attr('disabled', 'disabled'); // var msg = ""; // if (user_login && !is_empty(user_login.trim())) { // if (user_pass && !is_empty(user_pass.trim())) { // $j.ajax({ // url: "/login_ajax/", // the endpoint // type: "POST", // http method // data: form_data, // data sent with the delete request // success: function (response) { // // hide the post // if (response) { // if (response.is_success) { // is_success = true // msg = response.message // setTimeout(function () { // window.location = response.base_location; // }, 500); // }//message send // else { // is_success = false // msg = response.message // } // } // else { // is_success = false // msg = " Oops! Server encountered an error."; // } // if (is_success) { // $j("#login_ingo_msg").html('' + msg + '
'); // } // else { // $j("#login_ingo_msg").html('' + msg + '
'); // } // setTimeout(function () { // $j("#login_ingo_msg > * ").fadeOut('slow'); // $j("#login_ingo_msg").empty(); // }, 6000); // $jsubmit.removeAttr('disabled'); // }, // error: function (xhr, errmsg, err) { // // Show an error // is_error = true; // msg = " Oops! We have encountered an error." + xhr.status + ": " + xhr.responseText; // $j("#smallModal").hide(); // $jsubmit.removeAttr('disabled'); // if (is_error) { // rem_msg(); // set_msg('error', msg); // show_msg(); // } // } // }); // } // else { // is_error = true; // msg = "Your username and/or password are incorrect. Please try again."; // } // } // else { // is_error = true; // msg = "Your username and/or password are incorrect. Please try again."; // } // // if (is_error) { // $j("#login_ingo_msg").html('' + msg + '
'); // } // // setTimeout(function () { // $j("#login_ingo_msg > * ").fadeOut('slow'); // $j("#login_ingo_msg").empty(); // }, 5000); // $jsubmit.removeAttr('disabled'); // }); $j('.img-zoom').hover(function() { $j(this).addClass('transition'); }, function() { $j(this).removeClass('transition'); }); if ($j("#id_logo_img").length === 1) { $j("#id_logo_img").attr("onchange", "logo_imgURL(this);"); } if ($j("#id_profile_img").length === 1) { $j("#id_profile_img").attr("onchange", "profile_imgURL(this);"); } // ############# Validator methods ############# // Custom email checker! $j.validator.addMethod("customemail", function (value, element) { return /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(value); }, " Please enter a valid email address." ); // Custom uppercase letter checker $j.validator.addMethod("oneuppercaseletter", function (value, element) { return /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,16}$/.test(value); }, "Your New Password does not meet the minimum requirements. Please try again." ); // username space checker $j.validator.addMethod("nospace", function (value, element) { return /^[A-Za-z0-9_]*$/.test(value); }, "Your username must contain only letters, numbers and underscores. Spaces are NOT allowed." ); // ############# Validator methods End ############# viewCount = function(video_id) { var skigit_id = video_id; $j.ajax({ url: "/view_count_update/", type: "POST", data: { 'skigit_id': skigit_id, csrfmiddlewaretoken: getCookie('csrftoken') }, success: function(response) { if (response.is_success) { $j('#view_count' + skigit_id).text(parseInt(response.view_count)) } } }); }; $j('#user_action #general_notify').click(function() { $j.post("/notification/get/", {}, function(data, status) { if (data.is_success) { msg = data.message; $j('#gen_notification').fadeToggle('slow').html(msg); } }); }); /*$j('.dropdown').hover(function () { $j(this).addClass('show'); $j(this).children('.dropdown-menu').addClass('show'); }, function () { $j(this).removeClass('show'); $j(this).children('.dropdown-menu').removeClass('show'); });*/ // Drop down shown mouseover in large devices and click in small devices function toggleNavbarMethod() { if ($j(window).width() > 768) { $j('.dropdown').on('mouseover', function() { $j('.dropdown-toggle', this).trigger('click'); }).on('mouseout', function() { $j('.dropdown-toggle', this).trigger('click').blur(); }); } else { $j('.dropdown').off('mouseover').off('mouseout'); } } toggleNavbarMethod(); $j(window).resize(toggleNavbarMethod); $j('.image-business').hover(function() { var vid = $j(this).data('vid'); var id = '#business_enlarge' + vid; $j(id).fadeIn(); }, function() { var vid = $j(this).data('vid'); var id = '#business_enlarge' + vid; $j(id).fadeOut(); }); $j("#friendPopover").popover({ html: true, title: "Friends and Invites", placement: "bottom", content: $j("#friendContent").html() }); $j('body').mouseup(function(e) { $j('[data-original-title]').each(function() { //the 'is' for buttons that trigger popups //the 'has' for icons within a button that triggers a popup if (!$j(this).is(e.target) && $j(this).has(e.target).length === 0 && $j('.popover').has(e.target).length === 0) { var popoverElement = $j(this).data('bs.popover').tip(); var popoverWasVisible = popoverElement.is(':visible'); if (popoverWasVisible) { $j(this).popover('hide'); $j(this).click(); } } }); }); shareClose = function(video_id) { $j('[data-original-title]').each(function(e) { //the 'is' for buttons that trigger popups //the 'has' for icons within a button that triggers a popup if (!$j(this).is(e.target) && $j(this).has(e.target).length === 0 && $j('.popover').has(e.target).length === 0) { var popoverElement = $j(this).data('bs.popover').tip(); var popoverWasVisible = popoverElement.is(':visible'); if (popoverWasVisible) { $j("#share_overlay" + video_id).removeClass("popupdisplay"); $j(".overlayview").css("display", "none"); $j(".skigit_play img").css("display", "block"); $j(this).popover('hide'); $j(this).click(); } } }); }; logoclick = function(logo_id, url) { var message; $j.ajax({ url: "/invoice/business-logo/", type: "POST", data: { 'logo_id': logo_id }, success: function(data) { if (data.is_success) { window.location.href = url } else { message = data.message; } } }); }; learnMoreClick = function(login_id, skigit_id, url) { var message; $j.ajax({ url: "/invoice/learn-more/", type: "POST", data: { 'login_id': login_id, 'skigit_id': skigit_id }, success: function(data) { if (data.is_success) { window.open(url, '_blank'); } else { message = data.message; } } }); }; plugInClick = function(skigit_id, url) { var message; $j.ajax({ url: "/invoice/plugin-click/", type: "POST", data: { 'skigit_id': skigit_id }, success: function(data) { if (data.is_success) { window.location.href = url } else { message = data.message; } } }); }; $j("#generalNPopover").popover({ html: true, title: "Skigit Notifications", placement: "bottom", content: $j('#notifyContaint').html() }); $j('#bug_report').on("click", function() { $j('#bugModal').modal('show'); }); $j('#id_bug_submit').click(function() { if ($j('#bug_description').val() != '' && $j("input[type='radio'][name=repeat]:checked").val() != undefined) { var data = { 'skigit_id': $j('#id_bug_skigit').val(), 'skigit_title': $j('#id_bug_skigit_title').val(), 'bug_url': $j('#id_bug_page_url').val(), 'bug_title': $j('#id_bug_title').val(), 'bug_desc': $j('#bug_description').val(), 'bug_repeated': $j("input[type='radio'][name=repeat]:checked").val() } $j('#id_bug_submit').attr("disabled", "disabled"); $j('#id_bug_close').attr("disabled", "disabled"); $j("#bug_msg").html('...').css('color', 'orange'); $j.ajax({ url: "/bug-management/", type: "POST", data: data, success: function(responce_data) { $j('#bug_report_form')[0].reset(); $j("#bug_msg").html(responce_data.message).css('color', '#b1fab7'); $j('#id_bug_submit').removeAttr('disabled'); $j('#id_bug_close').removeAttr('disabled'); } }); } else { $j('#id_bug_submit').removeAttr('disabled'); $j('#id_bug_close').removeAttr('disabled'); if (($j("input[type='radio'][name=repeat]:checked").val() == '' || $j("input[type='radio'][name=repeat]:checked").val() == undefined ) && $j('#bug_description').val() == '') { $j("#bug_msg").html("Please enter a bug description and select an option") } else if ($j("#bug_description").val() == '') { $j("#bug_msg").html(" Please enter a bug description and select an option").css({"color" : "#ffa3a3", "font-size" : "14px"}); } else if (($j("input[type='radio'][name=repeat]:checked").val() == '' || $j("input[type='radio'][name=repeat]:checked").val() == undefined )) { $j("#bug_msg").html("Please select an option").css({"color" : "#ffffff", "font-size" : "14px", "text-align" : "center"}); } else { $j("#bug_msg").html("Please select an option").css({"color" : "#ffa3a3", "font-size" : "14px", "text-align" : "center"}); } } /* setTimeout(function() { $j("#bug_msg > * ").fadeOut('slow'); $j("#bug_msg").empty(); }, 25000);*/ }); bugSubmit = function(skigit) { if ($j.trim($j('#id_bug_description' + skigit).val()).length > 0 && $j("input[type='radio'][name=repeat]:checked").val() != undefined) { var data = { 'skigit_id': $j('#id_bug_skigit').val(), 'bug_url': window.location.origin + '/skigit_data/' + $j('#id_bug_skigit').val() + '/', 'bug_title': $j('#id_bug_title').val(), 'bug_description': $j('#id_bug_description' + skigit).val(), 'bug_repeated': $j("input[type='radio'][name=repeat]:checked").val() }; $j('#id_bug_submit1').attr("disabled", "disabled"); $j('#inapp_form_can').attr("disabled", "disabled"); $j("#bug_msg" + skigit).html('...').css('color', 'orange'); $j.ajax({ url: "/bug-management/", type: "POST", data: data, success: function(responce_data) { if (responce_data.is_success) { $j('#bug_report_form' + skigit)[0].reset(); $j("#bug_msg" + skigit).empty(); /* $j('.msg_success').html('Thanks for making Skigit better!') $j('#id_bug_submit1').removeAttr('disabled') $j('#inapp_form_can').removeAttr('disabled') $j(".dropdown").removeClass('open'); $j('.msg_success').show() setTimeout(openPopup, 2500);*/ $j('#id_bug_submit1').removeAttr('disabled'); $j('#inapp_form_can').removeAttr('disabled'); $j("#bug_msg" + skigit).html(" Thanks for making Skigit better!").css('color', '#c8f2d1 ', 'margin-left' , '70px' , 'font-family' , 'v'); setTimeout(function () { $j('#id_bug_submit1').removeAttr('disabled'); $j('#inapp_form_can').removeAttr('disabled'); $j('#bug_report_form' + skigit)[0].reset(); $j("#bug_msg" + skigit).empty(); $j('.dropdown').removeClass('open'); }, 2500); } } }); } else { $j('#id_bug_submit1').removeAttr('disabled'); $j('#inapp_form_can').removeAttr('disabled'); if ($j.trim($j('#id_bug_description' + skigit).val()).length <= 0) { $j("#bug_msg" + skigit).html(" Please enter a bug description. and select an option").css({"color" : "#ffa3a3", "font-family" : "laoui sans, sans-serif" , "font-size" : "14px"}); } else { $j("#bug_msg" + skigit).html("Please select an option").css({"color" : "#ffa3a3", "font-family" : "Laoui sans, sans-serif" , "font-size" : "12px" , "text-align" : "center"}); } /* setTimeout(function () { $j('#id_bug_submit1').removeAttr('disabled'); $j('#inapp_form_can').removeAttr('disabled'); //$j('#bug_report_form'+skigit)[0].reset() $j("#bug_msg" + skigit).empty() }, 25000);*/ } }; bugCancel = function(skigit) { $j(".dropdown").removeClass('open'); $j('#id_bug_submit1').removeAttr('disabled'); $j('#inapp_form_can').removeAttr('disabled'); $j('#bug_report_form' + skigit)[0].reset(); $j("#bug_msg" + skigit).empty() }; flagSubmit = function(skigit) { input_tag = $j("input:radio[name=skigit_reasons]:checked"); skigit_reasons = input_tag.attr("skigit_reasons"); skigit_id = input_tag.attr("skigit_id"); skigit_reasons_title = input_tag.attr("skigit_reasons_title"); data = $j("#inapp_form").serialize(); if ($j("input[name='skigit_reasons']:checked").val()) { $j('#flag_msg' + skigit).empty(); $j('#flag_msg' + skigit).html('...').css('color', 'orange'); $j('#inapp_form_sub').attr("disabled", "disabled"); $j('#inapp_flag_can').attr("disabled", "disabled"); $j.post("/skigit_inapp_reason/", { skigit_reasons: skigit_reasons, skigit_id: skigit_id }, function(data, status) { if (data.is_success) { /*$j('#inapp_form'+skigit)[0].reset() $j(".dropdown").removeClass('open'); $j('#inapp_form_sub').removeAttr('disabled'); $j('#inapp_flag_can').removeAttr('disabled'); $j('#flag_msg'+skigit).empty() $j('.msg_success').html(" Your request will be reviewed!").css('color','#b1fab7'); $j('.msg_success').show() setTimeout(openPopup, 2500);*/ $j('#inapp_form_sub').removeAttr('disabled'); $j('#inapp_flag_can').removeAttr('disabled'); $j('#flag_msg' + skigit).empty(); $j('#flag_msg' + skigit).html(" Thank you. Your request will be reviewed!").css({"color" : "#b1fab7", "font-family" : "Laoui sans, sans-serif", "font-size" : "14px"}); $j('#flag_msg' + skigit).html(""+ data.message +"").css({"color" : "#b1fab7", "font-family" : "Laoui sans, sans-serif", "font-size" : "14px"}); if (skigit_reasons_title == "Block User") { /// redirect to previouse page setTimeout(function() { window.location.href = document.referrer; return false; }, 2000); } setTimeout(function() { $j('#inapp_form' + skigit)[0].reset(); $j("#flag_msg" + skigit).empty(); $j('.dropdown').removeClass('open'); }, 4000); } else { $j('#inapp_form_sub').removeAttr('disabled'); $j('#inapp_flag_can').removeAttr('disabled'); $j('#flag_msg' + skigit).empty() $j('#flag_msg' + skigit).html(" " + data.message + "").css({"color" : "#ffa3a3", "font-family" : "Laoui sans, sans-serif", "font-size" : "14px"}); setTimeout(function() { $j('#inapp_form' + skigit)[0].reset(); $j("#flag_msg" + skigit).empty(); $j('.dropdown').removeClass('open'); }, 4000); } }); } else { $j('#inapp_form_sub').removeAttr('disabled'); $j('#inapp_flag_can').removeAttr('disabled'); $j('#flag_msg' + skigit).empty(); $j('#flag_msg' + skigit).html(" Please mark an appropriate reason.").css({"color" : "#ffa3a3", "font-family" : "Laoui sans, sans-serif", "font-size" : "14px"}); /*setTimeout(function() { $j('#inapp_form' + skigit)[0].reset(); $j("#flag_msg" + skigit).empty() }, 2000);*/ } }; flagCancel = function(skigit) { $j(".dropdown").removeClass('open'); $j(".dropdown").removeClass('show'); $j('#inapp_form' + skigit)[0].reset(); $j("#flag_msg" + skigit).empty() }; $j('#bug_description').on('keydown', function() { $j("#bug_msg").empty(); }); $j('#id_bug_close').click(function() { $j('#bug_report_form')[0].reset() }); $j('#bugModal').on('hidden.bs.modal', function() { $j('#bug_report_form')[0].reset() }); openMessage = function() { // $j(".modal-content").html(""); // $j('#smallModal').css('top', '35'); // $j('.modal').css('top', '35'); // $j('.modal-content').css('border', 'none'); $j('.notify_join_msg').find('div').css('top', ''); $j('.notify_join_msg').find('div').css('top', '0'); $j('.notify_join_msg').show(); // $j('.notify_msg_div').append(" "); setTimeout(function() { $j('.notify_join_msg').find('div').animate({ 'top': "-=52px" }, 1200); }, 5000); setTimeout(function() { $j('.notify_join_msg').hide(); }, 6000); }; get_date = function(video_id) { var currentTimezone = jstz.determine(); var timezone = currentTimezone.name(); $j.ajax({ url: "/friends/share-skigit-date/", type: "POST", data: { 'video_id': video_id, 'time_zone': timezone, csrfmiddlewaretoken: getCookie('csrftoken') }, success: function(result) { if (result.is_success) { for (var i = 0; i < (result.share_data).length; i++) { $j('#id_date_label' + video_id + result.share_data[i]['id']).text(result.share_data[i]['share_date']) } } } }); }; acceptFriendNotification = function(user_id) { // To view general profile in friends page for Business users! view_general_profile = ''; if (VIEW_GENERAL_PROFILE == 'yes') { var view_general_profile = '?view-general=yes'; } var user = user_id; $j.ajax({ url: "/friends/friends-request-approve/", type: "POST", data: { 'to_user': user_id, csrfmiddlewaretoken: getCookie('csrftoken') }, success: function(data) { $j('#friend_li' + user).remove(); if (data.result) { $j('#friend_li' + user).remove(); $j('li').find('#friend_li' + user).remove(); $j('#id_internal_friens' + user).attr('style', 'color:gray; font-size:large'); $j('button[id^="id_invite_btn' + user + '"]').attr('disabled', true, 'title', 'Friend Request Accepted'); var friend_box = 'Congratulations!
' li += 'Congratulations!
' li += 'Congratulations!
' li += 'Congratulations!
' li += 'Coincidence? I think not!
' li += 'Coincidence? I think not!
' li += 'Wanna new friend?
' li += 'Wanna new friend?
' li += 'Sure, let’s be friends!
' li += 'Sure, let’s be friends!
' li += 'We’re sorry.. your got unplugged.
' li += 'Congratulations!
' li += 'Your Skigit ' li += ' ' li += data.notify_list[n].vid_title li += ' has been posted to Skigit!
' li += 'Video uploaded!
' li += 'Your Skigit named ' li += '' li +=data.notify_list[n].vid_title li += ' has been uploaded! You will be notified when it\'s posted
' li += 'Video not uploaded!
' li += 'Your Skigit was not uploaded! Please try again
' li += 'Congratulations!
' li += 'Your business has been verified.
' li += 'We’re sorry..
' li += 'Your business has not been verified by our administrative staff so you cannot use Skigit at this time. We will send an email to the registered account when verification is completed.
' li += 'You're Following this Post!
' li += 'Congratulations!
' li += 'We’re sorry..
' li += 'We\'' + 're sorry...
'; li += 'Your Skigit ' li += '' li += data.notify_list[n].vid_title li += ' has been rejected for posting.
' li += 'Video uploaded!
' li += 'Your Skigit named ' li += '' li +=data.notify_list[n].vid_title li += ' has been uploaded! You will be notified when it\'s posted
' li += '' */ } else if (data.notify_list[n].msg_type == 'block') { $j('#nf_loader').show(); li += 'You have been Blocked!
' li += '' li += '
You have been Unblocked!
' li += '' li += '
You're on the Radar!
' li += '' li += '' li += data.notify_list[n].vid_title li += ' with you !
The Primary skigit
' li += 'The Primary skigit
' li += '' + '
' + '' + '' + '