Friday, June 17, 2011

Was J. J. Abrams & Steven Spielberg's Box-Office Champ 'Super 8' Really Saved by Twitter?

';

this.output = function(msg) {
this.container.html(msg);
}
this.message = function(msg, err) {
style = (err) ? 'red' : 'green';
document.setClass(this.messager, style);
document.getElementById(this.messager).innerHTML = msg;
}
this.begin = function() {
this.output(this.loadingMessage);
thisComment=this;

$.ajax({
url: "/ajax/get_comments.php?article_id=" + this.articleId,
global: false,
type: "GET",
dataType: 'html',
success: function(data){
thisComment.output(data);
//init twitter hovercards
twttr.anywhere(function (T) {
T(".tw").hovercards();
});
}
});

}
}
//end load_comment.js

var article_id = 228179;

$(document).ready(function() {
var comments = new CommentController(article_id);
if (1) {
comments.begin();
}

//init fb like buttons
$('.fb-like').onefblike();
});

var current_clicked = 0;

function showHide(shID, commentCount, commentID) {
if (document.getElementById(shID)) {
if (document.getElementById(shID+'-show').style.display != 'none') {
$('#comment_form0').show();
document.getElementById(shID+'-show').style.display = 'none';
//document.getElementById(shID).style.display = 'block';
//document.getElementById('comment_0').style.display = 'block';
//document.getElementById('login_form_0').style.display = 'block';
//document.getElementById('post_comment_button_0').style.display = 'block';
showRecaptcha('recaptcha_div_0', 'submit_0', 'recaptcha_required_0', 'white');
document.getElementById('reply_link_' + commentCount).innerHTML= 'Reply';
current_clicked = 0;
//current_clicked = commentCount;
}
else {
$('#comment_form0').hide();

//document.getElementById('login_form_0').style.display = 'none';
document.getElementById(shID+'-show').style.display = 'block';
//document.getElementById(shID).style.display = 'none';
//document.getElementById('comment_0').style.display = 'none';
//document.getElementById('post_comment_button_0').style.display = 'none';
document.getElementById('reply_link_' + commentCount).innerHTML= 'Close';
/*
var i = 0;
for (i = 1; i 1 || vote_value 1 || vote_value Click here to login or take a moment to register.');
},

respond:function(comment_id, response_type, message, up, down){

// HIDE THE PROCESSING DIV
this.hide_processing(comment_id);

switch(response_type){

case 1:

// SETTING THE SUCCESS MESSAGE
var the_div = document.getElementById('comment_feedback_'+comment_id);
the_div.className = 'comment_vote_success';
the_div.innerHTML = message;


// COMMENT VOTING COUNTS
var comments_up = document.getElementById('thumbs_up_'+comment_id);
var comments_down = document.getElementById('thumbs_down_'+comment_id);
if(comments_up && comments_down){
comments_up.innerHTML = (up == 0)?'':'+'+up;
comments_down.innerHTML = (down == 0)?'':'-'+down;
}

break;

case 0:

// SETTING THE ERROR MESSAGE
var the_div = document.getElementById('comment_feedback_'+comment_id);
the_div.className = 'comment_vote_error';
the_div.innerHTML = message;

break;

default:
// THIS IS A PRETTY AMAZING ERROR
return;
break;
}
},



show_processing:function(id) {
document.getElementById('processing_'+id).innerHTML = ''; }, hide_processing:function(id){ document.getElementById('processing_'+id).innerHTML = ''; }, show:function(id, mode){ if(!mode){ mode = 'show'; } var the_object = document.getElementById(id); if(the_object && mode == 'show'){ the_object.style.display = 'block'; the_object.style.visibility = 'visible'; }else if(the_object){ the_object.style.display = 'none'; the_object.style.visibility = 'hidden'; } }, hide:function(id){ this.show(id,'hide'); }, parse_spam_json:function(json) { // THE DIV TARGET var the_target = document.getElementById('comment_container_id_'+json.comment_id); document.getElementById('voting_links_'+json.comment_id).innerHTML = ''; if (!comment_container_ids[json.comment_id]) { comment_container_ids[json.comment_id] = the_target.innerHTML; } // WHAT WE WILL BE BUILDING NAD USING AS A REPLACEMENT, ULTIMATELTY var the_output = ''; // VOTING BLOCK var voting_links_html = ''; // LOGIC THAT IS INCLUDED var attribution = (isEmail(json.username) && json.firstName != "")?json.firstName:json.username; var state = (trim(json.state) != "")?', '+json.state.toUpperCase():''; var viewer_id = (trim(json.user_id) != "")?json.user_id:-1; var thumbs_up = (json.thumbs_up == 0)?'':'+'+json.thumbs_up; var thumbs_down = (json.thumbs_down == 0)?'':'-'+json.thumbs_down; // BUILD THE ACTUAL CONTENTS - START WITH WETHER OR NOT THE ITEM HAS BEEN MARKED AS SPAM if(json.spam == 0){ // BUILD THE VOTING BLOCK var voting_html = []; // IF THE USER IS LOGGED IN if(viewer_id != -1){ if(json.spam == 1){ voting_html.push('

Source: http://feedproxy.google.com/~r/adage/homepage/~3/JBw9GcImYKQ/

james arness salmonella tripadvisor zoosk adventure games qatar take me home tonight

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.