‘OK, boomer:’ Gen Z’s new rallying cry

0
5
'OK, boomer:' Gen Z's new rallying cry


<!–

Disguise Cell aspect

–>

MILWAUKEE (CBS 58) — Era Z has a brand new rallying cry. 

“OK, boomer” develop into common on the video app Tik Tok. It has since exploded right into a clapback towards adults.

Critics have known as it ageist. One legal professional warns it is not okay to say within the office.

“What the speaker intends is just not what’s important. It is how the recipient understands what’s being stated. And the phrase OK, boomer will be understood by the recipient as an ageist time period.”

There’s an “OK, boomer” track, t-shirt, even a write-up within the New York Instances. It is rubbing some individuals the flawed means, however one man says it is truthful play.

“I believe it is truthful play. I believe it is truthful play,” stated Michael Drescher of Milwaukee. “I get it. I believe typically boomers are simply as responsible as all the pieces we accuse them of.”


<!–

Are you positive you wish to flag this remark?

–>

Are you positive you wish to delete this remark?


<!–

Are you positive you wish to flag this remark?

–>

Are you positive you wish to delete this remark?

<![CDATA[<![CDATA[<![CDATA[
var WCS = WCS || ;
console.log('WCS: ', WCS)
WCS.SITE_URL = "//www.cbs58.com/";
WCS.THREAD_ID = 142415;
WCS.TALKUMS_SITE_ID = 9;
WCS.REPLY_PARENT_ID = -1;
WCS.REPLY_ANCESTOR_ID = -1;
WCS.REPLY_PARENT_ADMIN = -1;
WCS.REPLY_LEVEL = -1;
WCS.FLAG_ID = -1;
WCS.IS_POSTING = false;
WCS.IS_LIKING = false;
WCS.USER_ID = "-1";
WCS.USER = "";
WCS.USER_DISPLAY_NAME = "";
WCS.socket = null;
/*
WCS.socketoptions =
path: '/socketcluster/',
port: 3000,
hostname: '54.175.141.4'
;
*/
WCS.socketoptions =
path: '/socketcluster/',
port: 8000,
hostname: '127.0.0.1'
;
WCS.errorMax = 2;
WCS.errorCount = 0;
WCS.TOTAL_COMMENTS = 0;
WCS.termsAccepted = 0;
WCS.emailConfirmed = 0;
WCS.EMOJI_TARGET = 0;
WCS.YOUTUBE_TARGET = 0;
WCS.UPLOAD_TARGET = 0;
WCS.DROP_FILE_NAME = "";
WCS.DROP_FILE_TYPE = "";
WCS.THREAD_URL = "https://www.cbs58.com/news/ok-boomer-gen-zs-new-rallying-cry";
WCS.BASE_THREAD_URL = "https://www.cbs58.com/news/ok-boomer-gen-zs-new-rallying-cry";
WCS.THREAD_TITLE = ''OK, boomer:' Gen Z's new rallying cry';
WCS.SHARE_COMMENT_ID = '';
WCS.FACEBOOK_SHARE = 'https://www.facebook.com/sharer/sharer.php?u=' + WCS.THREAD_URL;
WCS.TWITTER_SHARE = 'https://twitter.com/home?status=' + WCS.THREAD_URL;
WCS.PROFILE_OPEN = false;
WCS.SIDEBAR_PAGE = "";
WCS.POPUP_OPEN = false;
WCS.CAPTCHA_SITE_KEY = '6LfwBUQUAAAAALPuABuclB4DSrMCClNMTn6204M7';
WCS.REPLY_BOX = null;
WCS.FILTER_TYPE = "newest"; //oldest, top
WCS.FILTER_PAGE = 0;
WCS.MODAL_CALLBACK = null;
WCS.MODAL_OPEN = false;
WCS.PROFILE_USER_ID = -1;
WCS.RETURN_USER = false;
WCS.SETTINGS_DATA = null;
WCS.MAX_ID = 0;
WCS.NEW_COMMENT_TOTAL = 0;
WCS.LOADING_NEW_COMMENTS = false;
WCS.PROFILE_COMMENT_PAGE = 0;
WCS.PROFILE_COMMENT_USER = -1;

WCS.OPEN_SIDEBAR = function()
$('#wcs-overlay-sidebar').addClass('wcs-overlay-open');
$('#wcs-slideout-wrapper').addClass('wcs-slideout-open');
$('body').addClass('wcs-no-scroll');

//dont set WCS.PROFILE_OPEN yet…
//sometimes have to wait for events to be done or it will close immediated
;

WCS.CLOSE_SIDEBAR = function()
$('#wcs-overlay-sidebar').removeClass('wcs-overlay-open');
$('#wcs-slideout-wrapper').removeClass('wcs-slideout-open');
$('#wcs-overlay-sidebar').removeClass('wcs-overlay-open');

$('body').removeClass('wcs-no-scroll');
WCS.PROFILE_USER_ID = -1;
WCS.PROFILE_OPEN = false;
;

(function(){
/****** USERNAME – SHOW SIDEBAR ********/
$('body').on("click", function(e)
if(WCS.PROFILE_OPEN)
if ($(e.target).closest('#wcs-slideout-wrapper').length === 0)
//alert("closing because " + $(e.target).closest('#wcs-slideout-wrapper').length);
//console.log(e.target);
WCS.CLOSE_SIDEBAR();

if(WCS.POPUP_OPEN)
if(e.target && $(e.target).closest('.wcs-post-comment-media-btns').length <= 0 &&
$(e.target).closest('.wcs-profile-header-user-avatar').length <= 0 &&
$(e.target).closest('.wcs-popout-wrapper').length 0)
totalText = ” (” + resp[‘total’] + ‘)’;

if(isLike == 1)
$(me).html(‘‘ + ” In contrast to” + totalText);
$(me).addClass(‘wcs-like-btn-active’);
else
$(me).html(‘‘ + ” Like” + totalText);
$(me).removeClass(‘wcs-like-btn-active’);

,
error: perform(response)

});
});

//assumes reply feedback are expanded
var getLevel = perform(cid, degree)

if($(‘#comment_’ + cid).hasClass(‘wcs-comment-item-parent’))
return degree;

var replyInfo = $(‘#comment_’ + cid).information(‘replyinfo’);
console.log(“replyinfo”);
console.log(replyInfo);
if(!replyInfo)
return degree;

var parentId = replyInfo.cut up(‘;

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-reply-trigger’, perform(e)’)[0];
var parentName = replyInfo.cut up(‘);

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-share-trigger’, perform(e)
e.preventDefault();
$(this).subsequent().addClass(‘wcs-popout-active’);
var $commentObj = $(this).closest(‘.wcs-comment-item’);
var shareId = $commentObj.information(‘id’);
// WCS.POPUP_OPEN = true;
var textual content = $commentObj.discover(‘.wcs-comment-item-text’).textual content().trim();
var cutString = perform(s, n)
var minimize= s.indexOf(‘ ‘, n);
if(minimize== -1) return s;
return s.substring(0, minimize)

textual content = cutString(textual content, 150)
WCS.FACEBOOK_SHARE = ‘https://www.fb.com/sharer/sharer.php?u=’ + WCS.THREAD_URL + “#comment_” + shareId;
WCS.TWITTER_SHARE = ‘https://twitter.com/residence?standing=’ + textual content + “… ” + WCS.THREAD_URL + “#comment_” + shareId;
$(this).subsequent().discover(‘.wcs-popout-share-btn-facebook’).attr(‘href’, WCS.FACEBOOK_SHARE);
$(this).subsequent().discover(‘.wcs-popout-share-btn-twitter’).attr(‘href’, WCS.TWITTER_SHARE);

WCS.THREAD_TITLE = WCS.THREAD_TITLE.replaceAll(‘'’, “‘”);
WCS.THREAD_TITLE = WCS.THREAD_TITLE.replaceAll(‘"’, “‘”);
WCS.THREAD_TITLE = WCS.THREAD_TITLE.replaceAll(‘&’, “&”);

var mailData = “topic=” + encodeURIComponent(“Svengoolie – ” + WCS.THREAD_TITLE) + “&physique=” + encodeURIComponent(textual content);
var mailShare = “mailto:?” + mailData;
$(this).subsequent().discover(‘.wcs-popout-share-btn-email’).attr(‘href’, mailShare);

$(this).subsequent().discover(‘.wcs-popout-share-btn-facebook’).prop(“goal”,”_blank”);
$(this).subsequent().discover(‘.wcs-popout-share-btn-twitter’).prop(“goal”,”_blank”);

WCS.POPUP_OPEN = true;
);
$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-popout-share-btn’, perform(e)
$(‘.wcs-popout’).removeClass(‘wcs-popout-active’);
WCS.POPUP_OPEN = false;
);

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-delete-trigger’, perform(e){
e.preventDefault();
var me = this;
WCS.showModal(“Are you positive you wish to delete this remark?”, “Delete”, perform(doit){
if(!doit)
return false;

var $commentObj = $(me).closest(‘.wcs-comment-item’);
var deleteId = $commentObj.information(‘id’);
$.ajax({
url: ‘/ajax_comments/delete_comment’,
information:
comment_id: deleteId
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

if(resp[‘success’] == ‘true’)
if(resp[‘delete_type’] == 2)
var $elem = $(‘#comment_’ + deleteId);
$elem.addClass(‘wcs-comment-item-deleted’);
setTimeout(perform()
$elem.take away();
, 500);
else
WCS.setDeleted(deleteId);

else
WCS.showModal(resp[‘msg’], “OK”, perform());

,
error: perform(response)

alert(“Error”);
console.log(response.responseText);
console.log(response);

});
});
});

/******** Profile Avatar Choose Popup ***********/
$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-update-avatar-trigger’, perform(e)
e.preventDefault();
$(this).subsequent().addClass(‘wcs-popout-active’);
WCS.POPUP_OPEN = true;
);

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.selectmoji’, perform(e){
e.preventDefault();
var currEmoji = $(this).information(’emoji’);
$.ajax({
url: ‘/ajax_comments/update_emoji’,
information:
emoji_file: currEmoji,
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

console.log(“emokiji arespoinse”);
console.log(resp);
if(resp[‘success’] == ‘false’)
WCS.showModal(resp[‘msg’], “OK”, perform());
else
$(‘.wcs-popout’).removeClass(‘wcs-popout-active’);
WCS.POPUP_OPEN = false;
//undergo every remark, activate delete if person matches
$(‘.wcs-comment-item-reply’).every(perform()’)[0];
//console.log(“remark userid ” + userId + ” vs ” + WCS.USER_ID);
if(WCS.USER_ID == userId)
//console.log(“setting avatar1 ” + resp[‘profile_image’]);
$(this).discover(‘.wcs-avatar’).attr(‘src’, resp[‘profile_image’]);
//new Date().getTime()

);
$(‘.wcs-comment-item-parent’).every(perform()
var replyInfo = $(this).information(‘replyinfo’);
var userId = replyInfo.cut up(‘);
//loggedinDisplay(resp);
loginSuccess(resp, true, true);

,
error: perform(response)

alert(“Error”);
console.log(response.responseText);
console.log(response);

});
});
/******** emoji, youtube, picture embed **********/

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-post-comment-media-emoji,.wcs-post-comment-media-video,.wcs-post-comment-media-image’, perform(e){

//add wcs-selected-textarea to the realm we wish to insert emoji
var $topComment = $(this).closest(‘.wcs-comment-item-parent’);
$(‘.wcs-selected-textarea’).removeClass(‘wcs-selected-textarea’);
var $textarea = $(‘#topcomment_text’);
if($topComment.size > 0)
$textarea = $topComment.discover(‘.wcs-reply-textarea’);

$textarea.addClass(‘wcs-selected-textarea’);
//show the popup
$(‘.wcs-popout’).removeClass(‘wcs-popout-active’);
$(this).subsequent().addClass(‘wcs-popout-active’);
WCS.POPUP_OPEN = true;
console.log(“that is”);
console.log(this);
var me = this;
//solely add these occasions when popup is open
if($(this).hasClass(‘wcs-post-comment-media-image’)){
var holder = $(this).subsequent().discover(‘.wcs-popout-file-upload-dropzone’).get(0);

holder.ondragenter = perform(e) holder.textContent = ‘Or drag a file right here to add’;
e.stopPropagation(); e.preventDefault();;
holder.ondragover = perform (e) e.stopPropagation(); e.preventDefault(); return false; ;
holder.ondragend = perform ()
//this.className = ”;
return false;
;
holder.ondrop = perform (e)
//this.className = ”;
e.preventDefault();
e.stopPropagation();
$(this).closest(‘.wcs-post-comment-media-btns’).discover(‘.wcs-popout-file-upload-dropzone’).html(‘‘);

WCS.readfiles(e.dataTransfer.information, perform(theid, msg)
if(theid === null)
WCS.showModal(msg, “OK”, perform());
return;

var imageUrl = ‘https://weigel-comments.s3.us-east-1.amazonaws.com/’ + theid;
$(‘.wcs-selected-textarea’).val($(‘.wcs-selected-textarea’).val() + “[image=” + imageUrl + “]”);
$(me).closest(‘.wcs-post-comment-media-btns’).discover(‘.wcs-popout-file-upload-dropzone’).html(‘Or drag a file right here to add’);
$(‘.wcs-popout’).removeClass(‘wcs-popout-active’);
WCS.POPUP_OPEN = false;
);

}

e.preventDefault();
return false;
});

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.selectemoji’, perform()
var elem =$(‘#talkums_text’).get(0);
var theEmoji = $(this).information(’emoji’);
$(‘.wcs-selected-textarea’).val($(‘.wcs-selected-textarea’).val() + “:” + theEmoji + “:”);

$(‘.wcs-popout’).removeClass(‘wcs-popout-active’);
WCS.POPUP_OPEN = false;
);

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.youtube-add’, perform(e)v/);

$(‘#wcs-main-wrapper’).on(‘change’, ‘.image_uploader’, perform()
var me = this;
$(this).closest(‘.wcs-post-comment-media-btns’).discover(‘.wcs-popout-file-upload-dropzone’).html(‘‘);
WCS.doS3Upload(null, perform(theid, msg)
if(theid === null)
WCS.showModal(msg, “OK”, perform());
return;

var imageUrl = ‘https://weigel-comments.s3.us-east-1.amazonaws.com/’ + theid;
$(‘.wcs-selected-textarea’).val($(‘.wcs-selected-textarea’).val() + “[image=” + imageUrl + “]”);
$(me).closest(‘.wcs-post-comment-media-btns’).discover(‘.wcs-popout-file-upload-dropzone’).html(‘Or drag a file right here to add’);
$(‘.wcs-popout’).removeClass(‘wcs-popout-active’);
WCS.resetFormElement($(me));

WCS.POPUP_OPEN = false;
);
);
$(‘#wcs-main-wrapper’).on(‘change’, ‘#avatar_uploader’, perform(){
$(this).closest(‘.wcs-popout-avatar’).discover(‘#avatar_upload_notice’).html(‘‘);
var me = this;
WCS.doS3Upload(‘avatar’, perform(theid, msg){
if(theid === null)
WCS.resetFormElement($(me));
$(me).closest(‘.wcs-popout-avatar’).discover(‘#avatar_upload_notice’).html(”);
WCS.CLOSE_SIDEBAR();
WCS.showModal(msg, “OK”, perform());
return;

var imageUrl = ‘https://weigel-comments.s3.us-east-1.amazonaws.com/’ + theid;

console.log(imageUrl);
$.ajax({
url: ‘/ajax_comments/update_avatar’,
information:
user_upload: imageUrl,
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

WCS.resetFormElement($(me));
$(me).closest(‘.wcs-popout-avatar’).discover(‘#avatar_upload_notice’).html(”);
if(resp[‘success’] == ‘true’)
//shut avatar window
//undergo every remark, activate delete if person matches
$(‘.wcs-comment-item-reply’).every(perform()
var replyInfo = $(this).information(‘replyinfo’);
var userId = replyInfo.cut up(‘);
$(‘.wcs-comment-item-parent’).every(perform()
var replyInfo = $(this).information(‘replyinfo’);
var userId = replyInfo.cut up(‘);
//loggedinDisplay(resp);
loginSuccess(resp, true, true);
else
if(resp[‘msg’])
WCS.showModal(resp[‘msg’], “OK”, perform());

,
error: perform(response)

alert(“Error”);
console.log(response.responseText);
console.log(response);

});

});

});

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-post-comment-button’, perform(e)
var textual content = $(‘#topcomment_text’).val();
var isReply = $(this).closest(‘.wcs-reply-container’).size > 0 ? true : false;
if(isReply)
var $textarea = $(this).closest(‘.wcs-reply-container’).discover(‘.wcs-reply-textarea’);
textual content = $textarea.val();
$textarea.addClass(‘wcs-reply-textarea-submitting’);

WCS.doComment(isReply, textual content);
e.preventDefault();
return;
);

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-login-google’, perform(e)
e.preventDefault();
WCS.doAuthWindow(‘google’);
return false;

);
$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-login-twitter’, perform(e)
e.preventDefault();
WCS.doAuthWindow(‘twitter’);
return false;
);
$(‘#wcs-main-wrapper’).on(‘click on’, ‘.wcs-login-facebook’, perform(e)
e.preventDefault();
WCS.doAuthWindow(‘fb’);
return false;
);
$(‘.wcs-login-email’).on(‘click on’, perform(e)
if(WCS.RETURN_USER)
WCS.loadSidebarTemplate(‘login’)
WCS.setupProfileForm(‘login’);
else
WCS.loadSidebarTemplate(‘register’)
WCS.setupProfileForm(‘register’);

);

$(‘.wcs-comment-filter-trigger’).on(‘click on’, perform(e)
e.preventDefault();
$(‘.wcs-comment-filter-trigger’).removeClass(‘wcs-comments-filter-active’);
var newFilterType = this.id.cut up(‘-‘)[2];
if(newFilterType == WCS.FILTER_TYPE)
//do nothing, we’re utilizing the identical filter
$(this).addClass(‘wcs-comments-filter-active’);
return false;

WCS.FILTER_TYPE = newFilterType;
WCS.FILTER_PAGE = 0;

$(this).addClass(‘wcs-comments-filter-active’);

WCS.refreshAllComments();
);

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.view-more-btn’, perform(e)
if($(this).hasClass(‘view-more-topcomment’))
WCS.FILTER_PAGE++;
WCS.refreshAllComments();
else if($(this).hasClass(‘view-more-newcomment’))
WCS.LOADING_NEW_COMMENTS = true;
WCS.loadNewComments();
var html = $(‘#template_loadinganimation’).html();
$(‘.view-more-newcomment’).after(html);
$(‘.view-more-newcomment’).cover();
else if($(this).hasClass(‘view-more-profilecomment’))
WCS.PROFILE_COMMENT_PAGE++;
//WCS.PROFILE_COMMENT_USER = userId;
WCS.loadMoreProfileComments();

);

var comCheckInterval;
perform startCheck()
console.log(“focus”);
WCS.checkNewComments();
comCheckInterval = window.setInterval(WCS.checkNewComments,120000);

perform stopCheck()
console.log(‘blur’);
window.clearInterval(comCheckInterval);

window.addEventListener(‘focus’, startCheck);
window.addEventListener(‘blur’, stopCheck);

comCheckInterval = setInterval(perform()
WCS.checkNewComments();
, 120000);

$(‘#wcs-main-wrapper’).on(‘click on’, ‘.view-prev-replies’, perform(e){
var ancestorId = $(this).information(‘ancestorid’);
var $container = $(‘#comment_’ + ancestorId);
var loadingHtml = $(‘#template_loadinganimation’).html();

$container.discover(‘.view-more-subcomment’).earlier than(loadingHtml);
$container.discover(‘.view-more-subcomment’).take away();
$.ajax(
url: ‘/ajax_comments/get_all_children_comments’,
information:
ancestor_id: ancestorId,
thread_id: WCS.THREAD_ID,
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(information)

if(information.size 0)
var possibleComment = window.location.href.cut up(“https://www.cbs58.com/#”)[1];
if(possibleComment.indexOf(‘comment_’) === 0)
var commentId = parseInt(possibleComment.cut up(‘_’)[1]);

WCS.loadNewComments(commentId, perform()
setTimeout(perform()
//so we are able to add the hash right here… in any other case it will likely be similar and never transfer to location
var elem = doc.getElementById(possibleComment);
elem.scrollIntoView();
//hash would not work if you have already got the hash
//window.location.href = origUrl + “https://www.cbs58.com/#” + possibleComment;
, 2000);
);

}, 500);
})();

WCS.loadSidebarTemplate = perform(theType, isSocial)
$(‘#wcs-slideout-wrapper’).empty();
if(theType == ‘register’)
var $container = $(‘

‘);
var innerHtml = $(‘#template_registration_header_email’).html() + $(‘#template_profile_form’).html();
if(isSocial)
innerHtml = $(‘#template_registration_header_social’).html() + $(‘#template_profile_form’).html();

$container.append(innerHtml);

$(‘#wcs-slideout-wrapper’).append($container);

else if(theType == ‘login’)
var $container = $(‘

‘);
var innerHtml = $(‘#template_login_header’).html() + $(‘#template_login_form’).html();
$container.append(innerHtml);
$(‘#wcs-slideout-wrapper’).append($container);

else if(theType == ‘profile_user’)
var headerHtml = $(‘#template_profile_header’).html();
var formHtml = $(‘#template_profile_form’).html();
var $settingsBody = $($(‘#template_profile_display_wrapper’).html());
$settingsBody.discover(‘.wcs-profile-settings-wrap’).append(formHtml);

$(‘#wcs-slideout-wrapper’).append(headerHtml);

$(‘#wcs-slideout-wrapper’).append($settingsBody);

else if(theType == ‘profile_other’)
var headerHtml = $(‘#template_profile_header’).html();
var wrapper = $(‘#template_profile_display_wrapper’).html();

$(‘#wcs-slideout-wrapper’).append(headerHtml + wrapper);

else if(theType == ‘forgot_password’)
var wrapper = $(‘#template_forgotpass_form’).html();
$(‘#wcs-slideout-wrapper’).append(wrapper);

else if(theType == ‘update_password’)
var wrapper = $(‘#template_update_password’).html();
$(‘#wcs-slideout-wrapper’).append(wrapper);

else if(theType == ‘loading’)
var html = $(‘#template_loadinganimation’).html();
$(‘#wcs-slideout-wrapper’).append(html);

;

WCS.doAuthWindow = perform(authType)
var windowWidth = 600;
var windowHeight = 360;
if(authType == ‘fb’)
windowWidth = 800;
windowHeight = 480;
else if(authType == ‘twitter’)
windowWidth = 500;
windowHeight = 700;

var authWindow = window.open(WCS.SITE_URL + ‘iframelogin/social_login?service=’ + authType, ‘_blank’, ‘toolbars=0,width=’ + windowWidth + ‘,top=’ + windowHeight + ‘,left=200,high=200,scrollbars=1,resizable=1,location=no’);
;

WCS.doComment = perform(isReply, theText){

var parentId = 0;
var parentAdmin = 0;
var ancestorId = 0;
var replyLevel = 0;
if(isReply)
parentId = WCS.REPLY_PARENT_ID;
parentAdmin = WCS.REPLY_PARENT_ADMIN;
ancestorId = WCS.REPLY_ANCESTOR_ID;
replyLevel = parseInt(WCS.REPLY_LEVEL);
replyLevel++;

if(WCS.IS_POSTING)
return false;

//Decrement counter, so person’s personal remark would not present up as ‘new’
newCommentCount = newCommentCount – 1;

WCS.IS_POSTING = true;
$.ajax({
url: ‘/ajax_comments/post_comment’,
information:
thread_id: WCS.THREAD_ID,
site_id: WCS.TALKUMS_SITE_ID,
ancestor_id : ancestorId,
parent_id : parentId,
parent_admin: parentAdmin,
degree : replyLevel,
post_text: theText
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

console.log(“put up remark information”);
console.log(resp);
if(resp[‘success’] == ‘false’)
if(resp[‘action’])
WCS.force_action(resp[‘action’]);

else if(resp[‘msg’])
WCS.showModal(resp[‘msg’], “OK”, perform());

WCS.IS_POSTING = false;
return;

if(parentId > 0)
$(‘.subcomment_text’).val(“”);
else
$(‘#topcomment_text’).val(“”);

//$(‘.wcs-reply-container’).take away();
WCS.IS_POSTING = false;
var $remark = $($(‘#template_acomment’).html());

$remark.discover(‘.wcs-user-trigger img’).attr(‘src’, resp[‘profile_image’]);
$remark.discover(‘.wcs-user-trigger’).attr(‘data-userid’, resp[‘user_id’]);

if(resp[‘parent_userid’])” + resp[‘display_name’] + “else” + parentId);
$remark.attr(‘data-isadmin’, resp[‘is_admin’]);

$remark.addClass(‘wcs-comment-item-parent’);
$remark.discover(‘.wcs-other-user’).take away();
$remark.discover(‘.wcs-comment-item-username i’).take away();
//want so as to add reply field
var replyBox = $(‘#template_reply_container’).html();
$remark.append(replyBox);

$remark.discover(‘.wcs-user-displayname’).html(resp[‘display_name’]);
if(resp[‘is_admin’] == 1)
$remark.discover(‘.wcs-user-displayname’).addClass(‘wcs-verified-user’);
else
$remark.discover(‘.wcs-user-displayname’).removeClass(‘wcs-verified-user’);

$remark.discover(‘.wcs-user-displayname’).attr(‘data-userid’, WCS.USER_ID);
$remark.discover(‘.wcs-user-displayname’).attr(‘data-isadmin’, resp[‘is_admin’]);
$remark.discover(‘.wcs-comment-item-date’).html(‘Simply Now’);
$remark.discover(‘.wcs-comment-item-text’).html(resp[‘post_html’]);
$remark.discover(‘.wcs-like-trigger’).html(‘‘ + ” Like “);
$remark.attr(‘data-id’, resp[‘insert_id’]);
$remark.attr(‘id’, “comment_” + resp[‘insert_id’]);

if(parentId > 0)
$remark.addClass(‘wcs-comment-item-reply’);
var $container = $(‘#comment_’ + ancestorId);
$container.discover(‘.wcs-reply-container’).earlier than($remark);

else
$(‘.wcs-comment-container’).prepend($remark);

// provides/removes class to animate entrance
$remark.addClass(‘wcs-comment-item-added’);
setTimeout(perform()
$remark.removeClass(‘wcs-comment-item-added’);
, 500);

if($(‘.wcs-comments-no-comments’).size > 0)
$(‘.wcs-comments-no-comments’).take away();

if(WCS.socket !== null)
WCS.socket.publish(‘thread’ + WCS.TALKUMS_THREADID, person: ‘person456’,
message: ‘Hello!’);

,
error: perform(response)

//Set new remark rely again up if error (no precise commment)
newCommentCount++;
alert(“Error”);
console.log(response.responseText);
console.log(response);

});

};

WCS.setupProfileForm = perform(formType, isSocial){
WCS.SIDEBAR_PAGE = formType;

//bind evends
if(formType == ‘register’ || formType == ‘settings’){
$(‘#zipcode’).on(‘keypress’, perform(ev) keyCode > 57)
//codes for backspace, delete, enter
if (keyCode != 0 && keyCode != 8 && keyCode != 13 && !ev.ctrlKey)
ev.preventDefault();

);
$(‘#zipcode’).change(perform()
//load_providers();
);

$(“#zipcode”).keyup(perform()
//load_providers();
);

$(‘#supplier’).on(‘change’, perform()
var aProvider = $(this).val();
if(aProvider == ‘supplier not listed’)
$(‘.wcs-profile-settings-other-provider’).present();

else if(aProvider == ”)

else
$(‘.wcs-profile-settings-other-provider’).cover();

);
if(formType == ‘register’)
$(‘#username’).on(‘keyup’, perform(ev)
//codes for 0-9
var newVal = $(this).val();
var code, i, len;
var isAlphanumeric = true;
for (i = 0, len = newVal.size; i 47 && code 64 && code 96 && code < 123) && // decrease alpha (a-z)
!(code == 95) ) // underscore
isAlphanumeric = false;

if(!isAlphanumeric)
$('.wcs-settings-form-err-username').html("Username Invalid: areas, hyphens and particular characters are NOT allowed.");
else
$('.wcs-settings-form-err-username').html("");

);

}
if(formType == "register")
$('.wcs-profile-settings-form').attr('id', 'wcs-registration-form');
grecaptcha.render('recaptcha_site',
'sitekey' : WCS.CAPTCHA_SITE_KEY
);
$('.wcs-profile-settings-email-username').cover();
$('.wcs-profile-signup-username').present();
$('.wcs-profile-signup-password').present();

else if(formType == "settings")
$('.wcs-profile-settings-form').attr('id', 'wcs-edit-form');
$('enter[name="social_username"]').attr('readonly', 'readonly');
$('enter[name="social_username"]').addClass("wcs-profile-settings-form-readonly");
$('enter[name="username1"]').attr('readonly', 'readonly');
$('enter[name="username1"]').addClass("wcs-profile-settings-form-readonly");
$('enter[name="password"]').attr('readonly', 'readonly');
$('enter[name="password"]').addClass("wcs-profile-settings-form-readonly");
if(isSocial)
$('enter[name="social_username"]').after('Your username can’ +
“‘” + ‘t be edited’);
else
$(‘enter[name=”username1″]’).after(‘Your username can’ +
“‘” + ‘t be edited’);

$(‘.wcs-settings-form-password-container’).take away();
$(‘.wcs-settings-form-password-updater’).present();
//$(‘.wcs-settings-form-password-updater’).cover();

if(WCS.termsAccepted == 1)
$(‘.wcs-profile-registration-terms’).take away();

else if(formType == “login”)
$(‘.wcs-profile-settings-form’).attr(‘id’, ‘wcs-login-form’);

else if(formType == “forgot_password”)
$(‘.wcs-profile-settings-form’).attr(‘id’, ‘wcs-forgotpass-form’);
grecaptcha.render(‘recaptcha_site’,
‘sitekey’ : WCS.CAPTCHA_SITE_KEY
);

else if(formType == ‘update_password’)
$(‘.wcs-profile-settings-form’).attr(‘id’, ‘wcs-updatepass-form’);
grecaptcha.render(‘recaptcha_site’,
‘sitekey’ : WCS.CAPTCHA_SITE_KEY
);

$(‘.wcs-cancel-btn’).on(‘click on’, perform()
WCS.CLOSE_SIDEBAR();
);

//ugly – delay to permit dom to replace, so can bind occasions
setTimeout(perform()
if(formType == “register”)
WCS.setupRegistrationForm();
else if (formType == “login”)
WCS.setupLoginForm();
else if(formType == “settings”)
WCS.setupSettingsForm();

else if(formType == “forgot_password”)
WCS.setupForgotPass();

else if(formType == ‘update_password’)
WCS.setupUpdatePass();

if(!$(‘#wcs-overlay-sidebar’).hasClass(‘wcs-overlay-open’))
WCS.OPEN_SIDEBAR();
WCS.PROFILE_OPEN = true;

, 10);
};

WCS.setupRegistrationForm = perform(){
//WCS.PROFILE_OPEN = true;
$(‘#wcs-signin-link’).on(‘click on’, perform(e)
e.preventDefault();
WCS.loadSidebarTemplate(‘login’);
WCS.setupProfileForm(‘login’);

return false;
);

$(‘#wcs-registration-form’).submit(perform(e){
// alert(“submitting”);
e.preventDefault();
var html = $(‘#template_loadinganimation’).html();
$(‘#wcs-overlay-sidebar’).append(html);

//lets strive HTML5 formdata object…
var formData = new FormData(doc.getElementById(“wcs-registration-form”));

var xhr = new XMLHttpRequest();
xhr.open(‘POST’, ‘/ajax_comments/register_update_site_user/’, true);
xhr.onload = perform () {
if (xhr.standing === 200)

var consequence = JSON.parse(xhr.responseText);
$(‘#wcs-overlay-sidebar’).discover(‘.wcs-loading-animation-overlay’).take away();
if(consequence[‘success’] == “true”)
//do modal
// alert(“do modal shut”);
var successHtml = $(‘#template_registration_header_success’).html();
$(‘.wcs-profile-registration-wrap’).empty();
$(‘.wcs-profile-registration-wrap’).html(successHtml);
loginSuccess(consequence, true, true);
WCS.termsAccepted = 1;
var defaultComment = $(‘#topcomment_text’).val();
if(defaultComment.trim().size > 0)
$.ajax(
url: ‘/ajax_comments/set_default_comment_text’,
information:
default_comment: defaultComment
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

,
error: perform(response)

);

/*
setTimeout(perform()
WCS.CLOSE_SIDEBAR();
, 10000);
*/

else
grecaptcha.reset();
//alert(“failure: ” + );
var setError = perform(errorName)
if(consequence[‘errors’][errorName])
$(‘.wcs-settings-form-err-‘ + errorName).html(consequence[‘errors’][errorName]);

else
$(‘.wcs-settings-form-err-‘ + errorName).html(“”);

;

setError(‘full-name’);
setError(‘e-mail’);
setError(‘username’);
setError(‘password’);
setError(‘social-username’);
setError(‘dob’);
setError(‘gender’);
setError(‘zipcode’);
setError(‘supplier’);
setError(‘other-provider’);
//setError(‘terms-of-service’);
setError(‘captcha’);
if(consequence[‘msg’])
alert(consequence[‘msg’]);

else

alert(‘An error occurred!’);

};

xhr.ship(formData);
});

}
WCS.setupForgotPass = perform(){
$(‘#wcs-login-link’).on(‘click on’, perform(e)
e.preventDefault();
WCS.loadSidebarTemplate(‘login’);
WCS.setupProfileForm(‘login’);
return false;
);

$(‘#wcs-forgotpass-form’).submit(perform(e){
e.preventDefault();
var html = $(‘#template_loadinganimation’).html();
$(‘#wcs-overlay-sidebar’).append(html);
var formData = new FormData(doc.getElementById(“wcs-forgotpass-form”));
var xhr = new XMLHttpRequest();
xhr.open(‘POST’, ‘/ajax_comments/reset_password/’, true);
xhr.onload = perform () {
if (xhr.standing === 200)

var consequence = JSON.parse(xhr.responseText);
console.log(“outcomes”)
console.log(consequence);
$(‘#wcs-overlay-sidebar’).discover(‘.wcs-loading-animation-overlay’).take away();
if(consequence[‘success’] == “true”)
var successHtml = $(‘#template_forgotpass_success’).html();
$(‘.wcs-profile-settings-wrap’).empty();
$(‘.wcs-profile-settings-wrap’).html(successHtml);

else
grecaptcha.reset();
//alert(“failure: ” + );
var setError = perform(errorName)
if(consequence[‘errors’][errorName])
$(‘.wcs-settings-form-err-‘ + errorName).html(consequence[‘errors’][errorName]);

else
$(‘.wcs-settings-form-err-‘ + errorName).html(“”);

;
setError(‘e-mail’);
setError(‘captcha’);

else

alert(‘An error occurred!’);

};

xhr.ship(formData);

return false;
});

};

WCS.setupUpdatePass = perform(){
$(‘.wcs-update-password-settings-link’).on(‘click on’, perform(e)
e.preventDefault();
//Simply reload with ajax name – in any other case this may get actually messy
WCS.PROFILE_USER_ID = -1;
$(‘.wcs-post-comment-user-settings’).set off(‘click on’);
return false;
);

$(‘#wcs-updatepass-form’).submit(perform(e){
e.preventDefault();
var html = $(‘#template_loadinganimation’).html();
$(‘#wcs-overlay-sidebar’).append(html);
var formData = new FormData(doc.getElementById(“wcs-updatepass-form”));
var xhr = new XMLHttpRequest();
xhr.open(‘POST’, ‘/ajax_comments/update_password/’, true);
xhr.onload = perform () {
if (xhr.standing === 200)

var consequence = JSON.parse(xhr.responseText);
console.log(“outcomes”)
console.log(consequence);
$(‘#wcs-overlay-sidebar’).discover(‘.wcs-loading-animation-overlay’).take away();
if(consequence[‘success’] == “true”)
var successHtml = $(‘#template_updatepass_success’).html();
$(‘.wcs-profile-settings-wrap’).empty();
$(‘.wcs-profile-settings-wrap’).html(successHtml);

else
grecaptcha.reset();
//alert(“failure: ” + );
var setError = perform(errorName)
if(consequence[‘errors’][errorName])
$(‘.wcs-settings-form-err-‘ + errorName).html(consequence[‘errors’][errorName]);

else
$(‘.wcs-settings-form-err-‘ + errorName).html(“”);

;
setError(‘password’);
setError(‘password1’);
setError(‘captcha’);

else

alert(‘An error occurred!’);

};

xhr.ship(formData);

return false;
});

};

WCS.setupLoginForm = perform(){

$(‘#wcs-register-link’).on(‘click on’, perform(e)
e.preventDefault();
WCS.loadSidebarTemplate(‘register’);
WCS.setupProfileForm(‘register’);
return false;
);

$(‘.wcs-login-forgot-un-pw’).on(‘click on’, perform(e)
e.preventDefault();
WCS.loadSidebarTemplate(‘forgot_password’);
WCS.setupProfileForm(‘forgot_password’);
return false;
);

$(‘#wcs-login-form’).submit(perform(e){
e.preventDefault();
var html = $(‘#template_loadinganimation’).html();
$(‘#wcs-overlay-sidebar’).append(html);

var formData = new FormData(doc.getElementById(“wcs-login-form”));
var xhr = new XMLHttpRequest();
xhr.open(‘POST’, ‘/ajax_comments/login_site_user/’, true);
xhr.onload = perform () {
if (xhr.standing === 200)

var consequence = JSON.parse(xhr.responseText);
console.log(“consequence”);
console.log(consequence);
$(‘#wcs-overlay-sidebar’).discover(‘.wcs-loading-animation-overlay’).take away();

if(consequence[‘success’] == “true”)
//make person do the issues
loginSuccess(consequence, true, false);
//do modal
//$(‘#wcs-edit-form’).after(“

Thanks for updating your info!”);

else
//alert(“failure: ” + );
var setError = perform(errorName)
if(consequence[‘errors’][errorName])
$(‘.wcs-settings-form-err-‘ + errorName).html(consequence[‘errors’][errorName]);

else
$(‘.wcs-settings-form-err-‘ + errorName).html(“”);

;

setError(‘username’);
setError(‘password’);
setError(‘generic’);
//if(consequence[‘msg’])
// WCS.showModal(consequence[‘msg’], “OK”, perform());
//

else

alert(‘An error occurred!’);

};

xhr.ship(formData);

return false;
});

}

WCS.setupSettingsForm = perform(){
$(‘.wcs-profile-nav-tab’).on(‘click on’, perform(e)
e.preventDefault();
$(‘.wcs-profile-nav-tab’).removeClass(‘wcs-profile-nav-active’);
$(this).addClass(‘wcs-profile-nav-active’);
if($(this).textual content() == ‘Settings’)
$(‘.wcs-profile-settings-wrap’).present();
$(‘.wcs-profile-comments-wrap’).cover();
else
$(‘.wcs-profile-settings-wrap’).cover();
$(‘.wcs-profile-comments-wrap’).present();

);

$(‘.wcs-view-in-discussion-trigger’).on(‘click on’, perform(e)
e.preventDefault();
var viewUrl = $(this).information(‘url’);
var vus = viewUrl.cut up(“https://www.cbs58.com/#”);
var baseUrl = vus[0];
var commentDomId = vus[1];
if(WCS.BASE_THREAD_URL == baseUrl && $(“https://www.cbs58.com/#” + commentDomId).size 0)
//fetch ancestor and it’ll pull in little one
commentId = ancestorId;

WCS.loadNewComments(commentId, perform()
setTimeout(perform()
var elem = doc.getElementById(commentDomId);
elem.scrollIntoView();
WCS.CLOSE_SIDEBAR();
, 100);
);

else

window.location.href = viewUrl;

setTimeout(perform()
WCS.CLOSE_SIDEBAR();
, 250);

);

//WCS.PROFILE_OPEN = true;
$(‘#wcs-signin-link’).on(‘click on’, perform(e)
e.preventDefault();
WCS.loadSidebarTemplate(‘login’);
WCS.setupProfileForm(‘login’);

return false;
);

$(‘.wcs-profile-settings-update-password’).on(‘click on’, perform(e)
e.preventDefault();
WCS.loadSidebarTemplate(‘update_password’);
WCS.setupProfileForm(‘update_password’);

return false;
);

//alert(“establishing settings kind”);
$(‘#wcs-edit-form’).submit(perform(e){
e.preventDefault();
//lets strive HTML5 formdata object…
var formData = new FormData(doc.getElementById(“wcs-edit-form”));

var html = $(‘#template_loadinganimation’).html();
$(‘#wcs-overlay-sidebar’).append(html);

var xhr = new XMLHttpRequest();
xhr.open(‘POST’, ‘/ajax_comments/register_update_site_user/’, true);
xhr.onload = perform () {
if (xhr.standing === 200)

var consequence = JSON.parse(xhr.responseText);
$(‘#wcs-overlay-sidebar’).discover(‘.wcs-loading-animation-overlay’).take away();
if(consequence[‘success’] == “true”)
//do modal
// alert(“do modal shut”);
//alert(“Some success message will show in some location”);
$(‘.wcs-profile-settings-edit-message’).html(“

Your settings have up to date efficiently!]]]]]]>]]]]>]]>

“);

else
//alert(“failure: ” + );
var setError = perform(errorName)
if(consequence[‘errors’][errorName])
$(‘.wcs-settings-form-err-‘ + errorName).html(consequence[‘errors’][errorName]);

else
$(‘.wcs-settings-form-err-‘ + errorName).html(“”);

;

setError(‘full-name’);
setError(‘e-mail’);
setError(‘username’);
setError(‘password’);
setError(‘social-username’);
setError(‘dob’);
setError(‘gender’);
setError(‘zipcode’);
setError(‘supplier’);
setError(‘other-provider’);
//setError(‘terms-of-service’);
setError(‘captcha’);
if(consequence[‘errors’][‘msg’])
alert(consequence[‘errors’][‘msg’]);

else

alert(‘An error occurred!’);

};

xhr.ship(formData);
});

};

WCS.force_action = perform(theAction, skipQuestion){
if(theAction == ‘accept_terms’){
var res = false;
if(!skipQuestion)
WCS.showModal(“You haven’t accomplished registration. Do you wish to full registration to carry out this motion?”, “Sure”,
perform(doit)

if(!doit)
return false;

WCS.loadSidebarTemplate(‘register’, true);
WCS.setupProfileForm(‘register’, true);
$.ajax(
url: ‘/ajax_comments/get_user_private_profile’,
information:
non-public: ‘true’
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

var person = resp[‘user’];
person[‘newsletter_signup’] = 1;
WCS.fillSettingsData(person);

);
);
else
//it should be social registration… as a result of you’ll be able to’t be logged in in any other case
WCS.loadSidebarTemplate(‘register’, true);
WCS.setupProfileForm(‘register’, true);
$.ajax(
url: ‘/ajax_comments/get_user_private_profile’,
information:
non-public: ‘true’
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

var person = resp[‘user’];
person[‘newsletter_signup’] = 1;
WCS.fillSettingsData(person);

);

}
else if(theAction == ‘confirm_email’){
WCS.showModal(“You haven’t confirmed your e-mail. Do you wish to resend the registration e-mail?”, “Sure”, perform(doit)

if(doit)
$.ajax(
url: ‘/ajax_comments/resend_registration_email’,
information:
ship: 1
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(resp)

,
error: perform(response)

);

);
}
};

WCS.fillSettingsData = perform(person) person[‘service’] == ‘fb’ ;

WCS.showModal = perform(msg, buttonText, callback)

$(‘#wcs-overlay-modal’).addClass(‘wcs-overlay-open’);

$(‘.wcs-modal-innertext’).html(msg);
$(‘.wcs-modal-btns-cancel’).off(‘click on’);
$(‘.wcs-modal-btns-cancel’).on(‘click on’, perform()
callback(false);
$(‘#wcs-overlay-modal’).removeClass(‘wcs-overlay-open’);
WCS.MODAL_OPEN = false;
);

$(‘.wcs-modal-btns-submit’).html(buttonText);
$(‘.wcs-modal-btns-submit’).off(‘click on’);
$(‘.wcs-modal-btns-submit’).on(‘click on’, perform()
callback(true);
$(‘#wcs-overlay-modal’).removeClass(‘wcs-overlay-open’);
WCS.MODAL_OPEN = false;
);
WCS.MODAL_CALLBACK = callback;
setTimeout(perform()
WCS.MODAL_OPEN = true;
, 500);
;

WCS.setDeleted = perform(commentId)
var $remark = $(‘#comment_’ + commentId);
var dateHtml = $remark.discover(‘.wcs-comment-item-date’).html();
$remark.discover(‘.wcs-comment-flag’).first().take away();
$remark.discover(‘.wcs-comment-item-header’).first().take away();
$remark.discover(‘.wcs-comment-item-text’).first().take away();
$remark.discover(‘.wcs-comment-item-footer’).first().take away();

var $deleteHeader = $($(‘#template_deleted_comment’).html()).discover(‘.wcs-comment-item-header’).unwrap();
var $deleteText = $($(‘#template_deleted_comment’).html()).discover(‘.wcs-comment-item-text-removed’).unwrap();
$remark.prepend($deleteText);
$remark.prepend($deleteHeader);
setTimeout(perform()
$remark.discover(‘.wcs-comment-item-date’).html(dateHtml);
, 10);
;

var newCommentCount = 0;
var conn;
if (window[“WebSocket”])
conn = new ReconnectingWebSocket(“wss://socket2me.weigelbroadcasting.com:8080/newsthread/”+WCS.THREAD_ID);
conn.onmessage = perform (evt)
//alert(evt.information);
newCommentCount++;
if(newCommentCount>0)
$(‘.view-more-newcomment’).html(“Load ” + newCommentCount + ” new feedback “);
$(‘.view-more-newcomment’).present();

//var information = JSON.parse(evt.information);
//var track = information[0];
;
else
//var merchandise = doc.createElement(“div”);
//merchandise.innerHTML = “Your browser doesn’t assist WebSockets.“;
appendLog(merchandise);

var commentsLastChecked = Date.now();

WCS.checkNewComments = perform()
//console.log(“checking”);
return;
nownow = Date.now();
timediff = nownow – commentsLastChecked;
if(timediff 0)
//already up to date button
if(WCS.NEW_COMMENT_TOTAL == newTotal)
return;

WCS.NEW_COMMENT_TOTAL = newTotal;
//alert(“has new feedback”);
$(‘.view-more-newcomment’).html(“Load ” + newTotal + ” new feedback “);
$(‘.view-more-newcomment’).present();

,
error: perform(response)

console.log(response.responseText);
console.log(response);

});

};

WCS.loadNewComments = perform(specificId, callback){
var requestUrl = ‘/ajax_comments/get_specific_topcomment’;
if(!specificId)
requestUrl = ‘/ajax_comments/get_new_comments’;

$.ajax({
url: requestUrl,
information:
max_id: WCS.MAX_ID,
thread_id: WCS.THREAD_ID,
comment_id : specificId
,
sort: ‘POST’,
dataType: ‘json’,
success: perform(information)
{
var whole = parseInt(information[‘new_total’]);
if(whole > 0)
if(information[‘new_max’] > 0)
WCS.MAX_ID = parseInt(information[‘new_max’]);
WCS.NEW_COMMENT_TOTAL = 0;

var topComments = information[‘topcomments’];
var subComments = information[‘subcomments’];

$(topComments).every(perform(i, resp)
var $remark = $($(‘#template_acomment’).html());
if(resp[‘active’] == 0)
$remark = $($(‘#template_deleted_comment’).html());
if(!resp[‘has_children’])
return;

$remark.discover(‘.wcs-user-trigger img’).attr(‘src’, resp[‘profile_image’]);
$remark.discover(‘.wcs-user-trigger’).attr(‘data-userid’, resp[‘user_id’]);

$remark.attr(‘data-replyinfo’, resp[‘user_id’] + ”
);
setTimeout(perform()

$(subComments).every(perform(i, resp)
console.log(“including little one “);
console.log(resp);
var $remark = $($(‘#template_acomment’).html());

$remark.discover(‘.wcs-user-trigger img’).attr(‘src’, resp[‘profile_image’]);
$remark.discover(‘.wcs-user-trigger’).attr(‘data-userid’, resp[‘user_id’]);

$remark.discover(‘.wcs-other-user’).attr(‘data-userid’, resp[‘parent_userid’]);
$remark.attr(‘data-replyinfo’, resp[‘parent_id’] + “else
$remark.discover(‘.wcs-comment-item-text’).html(resp[‘generated_comment’]);

if(WCS.USER_ID != resp[‘user_id’])
$remark.discover(‘.wcs-delete-trigger’).attr(‘model’, ‘show:none’);

if(resp.parent_id == 0)
$remark.discover(‘.wcs-other-user’).take away();
$remark.discover(‘.wcs-comment-item-username i’).take away();
else
$remark.discover(‘.wcs-other-user’).attr(‘data-userid’, resp.parent_userid);
$remark.discover(‘.wcs-other-user’).html(resp.parent_username);

var totalText = “”;
if(resp[‘upvotes’] > 0)
totalText = ” (” + resp[‘upvotes’] + ‘)’;

var html = “”;
if(resp[‘upvoted’])
html = ‘‘ + ” In contrast to” + totalText;
$remark.discover(‘.wcs-like-trigger’).addClass(‘wcs-like-btn-active’);
else
html = ‘‘ + ” Like” + totalText;

$remark.discover(‘.wcs-like-trigger’).html(html);
$remark.attr(‘data-id’, resp[‘id’]);
$remark.attr(‘id’, “comment_” + resp[‘id’]);
$(‘.wcs-comment-container’).append($remark);

);
setTimeout(perform()

$(information).every(perform(i, parentComment)

if(parentComment[‘has_more’])
var moreHtml = ”;
var $container = $(‘#comment_’ + parentComment[‘id’]);
$container.discover(‘.wcs-reply-container’).earlier than(moreHtml);

console.log(“mother or father remark ” + parentComment[‘id’]);
console.log(“has youngsters ” + parentComment[‘children’].size);
$(parentComment[‘children’]).every(perform(i, resp)” + resp[‘parent_id’]);
$remark.attr(‘data-isadmin’, resp[‘is_admin’]);

$remark.discover(‘.wcs-other-user’).html(resp[‘parent_username’]);
$remark.discover(‘.wcs-user-displayname’).html(resp[‘display_name’]);
$remark.discover(‘.wcs-comment-item-date’).html(resp[‘timeago’]);
$remark.discover(‘.wcs-comment-item-text’).html(resp[‘generated_comment’]);
var totalText = “”;
if(resp[‘upvotes’] > 0)
totalText = ” (” + resp[‘upvotes’] + ‘)’;

var html = “”;
if(resp[‘upvoted’])
html = ‘‘ + ” In contrast to” + totalText;
$remark.discover(‘.wcs-like-trigger’).addClass(‘wcs-like-btn-active’);
else
html = ‘‘ + ” Like” + totalText;

$remark.discover(‘.wcs-like-trigger’).html(html);

$remark.attr(‘data-id’, resp[‘id’]);
$remark.attr(‘id’, “comment_” + resp[‘id’]);
if(WCS.USER_ID != resp[‘user_id’])
$remark.discover(‘.wcs-delete-trigger’).attr(‘model’, ‘show:none’);

$remark.addClass(‘wcs-comment-item-reply’);
var $container = $(‘#comment_’ + resp[‘ancestor_id’]);
//alert(“including little one to ” + ‘#comment_’ + resp[‘parent_id’]);
$container.discover(‘.wcs-reply-container’).earlier than($remark);
);
);
, 500);

if(hasMore && commentsLeft > 0)
if(hasExtraMore)
var textual content = “Load extra feedback “; //”Load subsequent 10 out of ” + commentsLeft + ” feedback left “;
$(‘.view-more-topcomment’).html(textual content);
$(‘.view-more-topcomment’).present();
else
var textual content = “Load extra feedback “; //”Load subsequent ” + commentsLeft + ” feedback”;
$(‘.view-more-topcomment’).html(textual content);
$(‘.view-more-topcomment’).present();

else
//cover button fully
$(‘.view-more-topcomment’).cover();

}, error : perform(information)

});

};

WCS.resetFormElement = perform(e)
e.wrap(”).closest(‘kind’).get(0).reset();
e.unwrap();

// Stop kind submission
;

String.prototype.replaceAll = perform(str1, str2, ignore)
-&])/g,”$&”),(ignore?”gi”:”g”)),(typeof(str2)==”string”)?str2.change(/$/g,”$$$$”):str2);
;

perform load_providers(exactText)
{
$(“#supplier”).val(exactText);
//var zipcode = $(“#zipcode”).val(exactText)
/*
var selbox = $(“#supplier”);
//$(‘#dk_container_channel’).take away();

if(zipcode.size > 4){
provider_status(“Looking suppliers…”);

$.ajax({
url:’/ajax_comments/zipsearch/’,
information:zipcode:zipcode,
dataType:’json’,
sort:’POST’,
success:perform(information){
var locators = information.channels;
var rely = information.rely;
console.log(locators);
var formData = ”;
var val;
if(rely){
provider_status(“”);
if(” != ‘supplier not listed’)
$(“#provider_input”).fadeOut();

selbox.empty();
selbox.append(‘– Choose from this checklist –‘);
$(“#provider_input_select”).fadeIn();

if(exactText)n)/g, ”);
else
exactText = “”;

$.every(locators,perform(index,channels)
if(index)
var key = index.replaceAll(” “,”_”).replaceAll(“https://www.cbs58.com/”,”);
key = key.change(” “, ”);
key = key.change(/(?:rn
);

if(exactText == ‘supplier not listed’)
selbox.append(‘Supplier not listed’);
else
selbox.append(‘Supplier not listed’);

} else
provider_status(“”);
selbox.empty();
selbox.append(”);
if(exactText == ‘supplier not listed’)
selbox.append(‘Supplier not listed’);
else
selbox.append(‘Supplier not listed’);

//selbox.dropkick(‘refresh’);
},
error:perform(packet)

});
}
*/
}

perform provider_status()

perform loginSuccess(loggeduser, noParse, skipDialogs)

//have to have
//id, display_name, profile_image, terms_accepted, email_confirmed

var userData;
if(noParse)
userData = loggeduser;
else
userData = JSON.parse(loggeduser);

//console.log(“person information”);
//console.log(userData);
WCS.USER_ID = userData[‘id’];

//if simply registered should not shut the sidebar
//could possibly be on login web page…
if(WCS.SIDEBAR_PAGE != ‘register’)
WCS.CLOSE_SIDEBAR();

$(‘.wcs-post-comment-header .wcs-user-displayname’).html(userData[‘display_name’]);
$(‘.wcs-post-comment-header .wcs-user-displayname’).information(‘userid’, WCS.USER_ID);
$(‘.wcs-post-comment-user-settings’).information(‘userid’, WCS.USER_ID);
$(‘.wcs-post-comment-header .wcs-avatar’).attr(‘src’, userData[‘profile_image’]);
$(‘.wcs-post-comment-header .wcs-avatar’).information(‘userid’, WCS.USER_ID);
$(‘.wcs-profile-header-user-avatar .wcs-avatar’).attr(‘src’, userData[‘profile_image’]);
$(‘.wcs-post-comment-login’).cover();
$(‘.wcs-post-comment-header’).present();

//undergo every remark, activate delete if person matches
$(‘.wcs-comment-item-reply’).every(perform()
var replyInfo = $(this).information(‘replyinfo’);
var userId = replyInfo.cut up(‘);
$(‘.wcs-comment-item-parent’).every(perform()’)[0];
//console.log(“remark userid ” + userId + ” vs ” + WCS.USER_ID);
if(WCS.USER_ID == userId)
//console.log(“activating delete for topcomment ” + this.id);
$(this).discover(‘.wcs-delete-trigger’).first().present();

);

//ought to cover the opposite one
// $(‘.wcs-post-comment-header’).present();
$(‘.wcs-post-comment-header-loggedout’).cover();

$(‘.wcs-post-comment-logged-in-btns’).present();

WCS.termsAccepted = userData[‘terms_accepted’];
WCS.emailConfirmed = userData[’email_confirmed’];
if(!skipDialogs)
if(WCS.termsAccepted == 0)
WCS.force_action(‘accept_terms’, true);
return false;
else if(WCS.emailConfirmed == 0)
WCS.force_action(‘confirm_email’);
return false;

;

<![CDATA[<![CDATA[]]]]>]]>

var theAppId = “808704082583441”;

(perform(d, s, id)
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “https://join.fb.web/en_US/sdk.js#xfbml=1&model=v2.8&appId=” + theAppId;
fjs.parentNode.insertBefore(js, fjs);
(doc, ‘script’, ‘facebook-jssdk’));



Supply hyperlink

This site uses Akismet to reduce spam. Learn how your comment data is processed.