Madison - This video possesses no journalistic value.
But. I. Could. Not. Resist.
Enjoy.
'; return comment; } var validateForm = function(form) { if(isnowSite == true){ var response_cap = document.getElementById("recaptcha_response_field").value; var captchaValidated = ""; var comment_input = document.getElementById("main-comment-input").value; if(response_cap=="") { alert("Please enter the captcha values."); }else{ var remoteip = "127.0.0.1"; var challenge_cap = document.getElementById("recaptcha_challenge_field").value; var url = "/templates/UGC_captchaResponse.html?remoteIP="+remoteip+"&privatekey=6Lci7ckSAAAAAD6XDahCz7lhtMJmvRO8P150ScXT&recaptcha_challenge_field="+challenge_cap+"&recaptcha_response_field="+response_cap; var xmlHttp; if (window.XMLHttpRequest) { // Mozilla, Safari, ... var xmlHttp = new XMLHttpRequest(); }else if (window.ActiveXObject) { // IE var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlHttp.open('GET', url, false); xmlHttp.send(); /* xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { var resp = xmlHttp.responseText; alert(resp); if(resp.indexOf(true) > -1){ captchaValidated= true; Recaptcha.reload(); setTimeout('if(' + captchaValidated + '){alert("captcha validated in set timeout");return true;}', 1000); }else{ alert("Invalid captcha value, please try again."); Recaptcha.reload(); return false; } } } */ var resp = xmlHttp.responseText; if(resp.indexOf(true) > -1){ captchaValidated= true; Recaptcha.reload(); return true; }else{ alert("Invalid captcha value, please try again."); Recaptcha.reload(); return false; } } }else{return true;} } $("#comments").delegate(".edit-comment-form,.reply-to-comment-form,#comment-form","submit",function(e){ e.preventDefault(); var thisForm = $(this); var mainMessageContainer = $("#comment-form-messages"); if(thisForm.is(".reply-to-comment-form")){ var messageCont = thisForm.parent(".reply").siblings(".active-reply-container"); if(messageCont.length == 0){ messageCont = $(''); thisForm.parent("li").before(messageCont); } if(_commentUser.isLoggedIn){ insertComment(this,true,function(obj){ //debugResponse(obj); if(obj.error){ if(obj.error == "User must be logged in to perform the action."){ messageCont.html("Please login to post your comment.
"); thisForm.hide().parent("li").hide(); }else{ messageCont.html("Sorry, there was a problem when submitting your comment, please try again.
"); } messageCont.removeClass("hide"); }else{ // possible status APPROVED,NOTAPPROVED, FLAGGED, AUTHOR, BOT, REJECTED if(obj.status == "APPROVED"){ messageCont.attr("id","comment-"+obj.id).html(buildCommentHTMLString(obj)); _commentUser.refreshComments = true; $.cookie('_commentSession',_commentUser,{expires:_commentUser.expires,path:'/'}); }else{// handle all other cases with this blanket messageCont.html("Your comment has been received. If you do not see it immediately, it is being routed for approval.
"); } //reset form messageCont.removeClass("active-reply-container hide"); thisForm.find(".reply-to-comment-body").val("").css("height","18px").trigger("blur"); } }); }else{ messageCont.html("Please login to post your comment.
"); thisForm.hide().parent("li").hide(); messageCont.removeClass("hide"); } }else{ // new if(thisForm.is("#comment-form")){ if(validateForm(thisForm)){ if(_commentUser.isLoggedIn){ insertComment(this,true,function(obj){ //debugResponse(obj); if(obj.error){ if(obj.error == "User must be logged in to perform the action."){ mainMessageContainer.html("Please login to post your comment.
"); thisForm.hide(); }else{ mainMessageContainer.html("Sorry, there was a problem when submitting your comment, please try again.
"); } }else{ // possible status APPROVED,NOTAPPROVED, FLAGGED, AUTHOR, BOT, REJECTED if(obj.status == "APPROVED"){ $("#comments-list ol").eq(0).prepend(''); _commentUser.refreshComments = true; $.cookie('_commentSession',_commentUser,{expires:_commentUser.expires,path:'/'}); }else{// handle all other cases with this blanket mainMessageContainer.html("Your comment has been received. If you do not see it immediately, it is being routed for approval.
"); } //reset form mainMessageContainer.html(""); $("#comment-body").val("").trigger("blur"); } }); }else{ mainMessageContainer.html("Please login to post your comment.
"); thisForm.hide(); } } } } }); $("#comments-list").delegate(".pagination a","click",function(e){ e.preventDefault(); _gaq.push(['_trackPageview']); $("#comments-list").html('Loading comments...
'); $("html,body").animate({scrollTop:$("#comments").offset().top},"fast"); if($(e.currentTarget).is(".all")){ _paging.setHash(true,{event:"viewall",viewAll:$(e.currentTarget).html().indexOf("Page") > -1 ? 0 : 1}); }else{ var p = $(e.currentTarget).attr("href").replace("#comments",""); p = p.substring(p.indexOf("page=")+5); if(p.indexOf("&") > -1){ p = p.substring(0,p.indexOf("&")); } var srt = $(".sorting select option:selected").val(); srt = srt.substring(srt.indexOf("sort=")+5); _paging.setHash(true,{event:"loadpage",sortString:srt,page:parseInt(p)}); } }); $(".sorting select").change(function(){ _gaq.push(['_trackPageview']); $("#comments-list").html('Sorting comments...
'); var srt = $(".sorting select option:selected").val(); srt = srt.substring(srt.indexOf("sort=")+5); var p = srt.indexOf("newest") > -1 ? _paging.pages : 1; _paging.setHash(true,{event:"sort",sortString:srt,page:p}); }); $(".pagesize a").click(function(e){ e.preventDefault(); _gaq.push(['_trackPageview']); $("#comments-list").html('Adjusting page size...
'); var srt = $(".sorting select option:selected").val(); srt = srt.substring(srt.indexOf("sort=")+5); var p = srt.indexOf("newest") > -1 ? _paging.pages : 1; _paging.setHash(true,{event:"pagesize",pageSize:parseInt($(this).html()),sortString:srt,page:p}); $(this).addClass('active').siblings().removeClass('active'); }); var getCommentBody = function(__comment){ var j = []; j.push('',__comment.body,'
'); if(__comment.hasResponses && __comment.level == 0){ j.push('Hide replies
'); } j.push(''); return j.join(""); } function spew(array, process, context){ setTimeout(function(){ var item = array.shift(); process.call(context, item); if (array.length > 0){ setTimeout(arguments.callee, 100); } }, 100); } function createCommentsList(__data){ var __comnts = __data.comments; var __comntsLength = __comnts.length; if(__comntsLength > 0){ var comts = []; var appendNth = 10; if(__comntsLength ',getCommentBody(__comment),'- ');
if(__comment.hasResponses){
var __commentResponses = __comment.responses;
var __commentResponsesLength = __commentResponses.length;
for (var r=0; r ',getCommentBody(__response),'');
}
}
comts.push('
- '+comts.join('')+'
- '+comts.join('')+'
Refreshing comments...
'); $(".sorting select option:selected").removeAttr('selected'); $(".sorting select .newestfirst").attr('selected', 'selected'); _paging.setHash(false,{event:"pagerefresh",sortString:"newestfirst",page:_paging.pages,pageSize:_paging.pageSize}); } } $.ajax({ url:_paging.url(), cache:false, dataType: 'json', success:function(__data){ createCommentsList(__data); }, error: function(a,b,c){ //alert("ajax error:" + a+","+b+","+c); $("#comments-list").html(__data.html+'Oops, its taking too long to retrieve comments, please try again.
Refreshing comments...
'); $(".sorting select option:selected").removeAttr('selected'); $(".sorting select .newestfirst").attr('selected', 'selected'); _paging.setHash(true,{event:"pagerefresh",sortString:"newestfirst",page:_paging.pages}); } $(window).hashchange();Source: http://www.jsonline.com/blogs/sports/217320881.html
state of the union fat tuesday ash wednesday Zero Hour Funny Valentines Chris Kyle Russian meteor
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.