General

Joe’s Mansion

‘);
}
});

/Scroll IF # id exist in URL
*/
if(url_id!=”){
var s = url_id;
var n = s.indexOf(‘/’);
if(n!=”&& typeof n!= ‘undefined’){
var id_var = s.substring(0, n != -1 ? n : s.dimension);
$(‘html, physique’).animate({
scrollTop: $(‘#’+id_var).offset().top
},2000);
return false;
}
}

/Check for audio
*/

/script to address Help Button Tournament
*/

if(window.attachEvent){
window.attachEvent(‘onpopstate’, datHash);
}

characteristic datHash(match){
var str = $(‘#goback’).val();
if(str==”){
window.history.plod(-Math.abs(pageChange));
}else{
window.history.plod(-Math.abs(pageChange));
}
return false;
}

//
$(‘.submit-edit-link’).attr(‘href’, characteristic( _, action){
return action.change(‘https’, ‘http’);
});

/@characteristic for load article in countless scroll
*/

$(‘a.inifiniteLoader’).cowl();

characteristic loadArticle(pageNumber){

$(‘a.inifiniteLoader’).list(‘posthaste’);

$.ajax({

url : “https://www.thenation.com/wp-admin/admin-ajax.php”,
kind : ‘POST’,
cache : false,
dataType : ‘json’,
info : {action:’infinite_scroll’,page_no: pageNumber,loop_file: ‘articleload’,slug:’activism,economy,authorities,law,political-figures,politics,society,world’,curr_post_id:’390204′},
success : characteristic(receivedHTML){

if ( typeof receivedHTML == ‘object’ && receivedHTML!=null ){
if(typeof receivedHTML.html!==’undefined’ && receivedHTML.html!=”){
html = receivedHTML.html;
}
}else{
$(‘a.inifiniteLoader’).cowl();
$(“#single_article_footer”).list();
}

$(‘a.inifiniteLoader’).cowl(‘1000’);

if ( typeof receivedHTML == ‘object’ && receivedHTML!=null ){

$(“#wrap”).append(html); // This would perhaps perhaps be the div the save our advise will seemingly be loaded

var postID = $($.parseHTML(html)).filter(“.scrolltrace”).attr(‘article-submit-id’);
var postLink = $($.parseHTML(html)).filter(“.scrolltrace”).attr(‘articlelistlinks’);
var postTitle = $($.parseHTML(html)).filter(“.scrolltrace”).attr(‘articlelisttitle’);

$(‘.abody-‘+postID+’ .article-physique-interior’).children(‘p:first-of-kind’).html(characteristic (i, html) {
if ( $(‘.abody-‘+postID).children(‘img’).dimension == “0” ){
var text = $(‘.abody-‘+postID+’ .article-physique-interior’).children(‘p:first-of-kind’).html();
$(‘.abody-‘+postID+’ .article-physique-interior’).children(‘p:first-of-kind’).html(text.change(/^(
<.>)?([A-Za-z0-9])/g,’$1$2‘));
}
});

if( !$(‘.abody-‘ + postID +”).dad or mum().dad or mum().hasClass(‘textContainer_Truncate’) ){
$(‘

‘).insertAfter(‘.abody-‘ + postID);
}

/Article Divider Depend
*/
article_divider = article_divider+1;
$(‘.abody-‘+postID+”).attr(“article-number”,article_divider);

/*for hiding meterpaywall popups when pixel classified ads call starts right here*/
var hidePixelBool = false;
var meetkatstep1 = jQuery(‘#paywall .step.one’);
var meetkatstep2 = jQuery(‘#paywall .step.two’);
var meetkatstep3 = jQuery(‘#paywall .step.three’);
var meetkatstep4 = jQuery(‘#paywall .step.four’);
if( typeof meetkatstep1!=’undefined’ && meetkatstep1.is(‘:seen’) ){
hidePixelBool = correct;
}
if ( typeof meetkatstep2!=’undefined’ && meetkatstep2.is(‘:seen’) ){
hidePixelBool = correct;
}
if( typeof meetkatstep3!=’undefined’ && meetkatstep3.is(‘:seen’) ){
hidePixelBool = correct;
}
if( typeof meetkatstep4!=’undefined’ && meetkatstep4.is(‘:seen’) ){
hidePixelBool = correct;
}
if( hidePixelBool===false ){
/*for hiding meterpaywall popups when pixel classified ads call ends right here*/
/Alternate Popup code open/
var enable_alterpopup_check;
enable_alterpopup_check =”;
if( typeof(enable_alterpopup_check) != “undefined” && enable_alterpopup_check == 1 ){
var alternate_article_no;
alternate_article_no = ”;
if( pageCounterPaywall % alternate_article_no == 0 && pageCounterPaywall!=0 ){
show_lightbox(”,”);
}
}
/Alternate Popup code Discontinue/
}

pageCounterPaywall++;
ajaxCarousel(postID);
ajaxGallery(postID);
articleNLogo(postID);

/Slider Remark /
flag = false;
$(‘part.article-physique:closing img’).every(characteristic(){
if($(this).dad or mum(“a”).dad or mum(“figure”).hasClass(‘bx-merchandise’)){
flag = correct;
}else{
$(this).dad or mum(“a”).addClass(“gallery”);
}
});

if(flag){
var okay = $(‘part.article-physique:closing’).uncover(‘.gallery-2’).bxSlider({
adaptiveHeight: correct,
adaptiveHeightSpeed: 500,
infiniteLoop: false,
hideControlOnEnd: false,
pager: false
});
okay.reloadSlider();
}
/Slider Remark Discontinue */

var usera = navigator.userAgent.toLowerCase();
if ( $(‘.article-net page’).dimension ) {
var slickWidth = $(‘.article-list.slick-lumber’).width();

if ($(‘.ie9’).dimension){
slickWidth = $(‘.recirc-carousel.slick-initialized.slick-slider’).width();
}
$(‘.slick-list.draggable’).css({‘width’ : slickWidth});
if( !/android|webos|iphone|ipad|ipod|blackberry/i.test(usera) ){
$(‘.article-list.slick-lumber’).children(‘li’).css({‘width’ : slickWidth});
$(‘.slick-list’).css({‘width’ : slickWidth});
}
}

var $newArticles = $(html);
var imagesLoading = [];

$newArticles.uncover(‘img’).every(characteristic() {

// For every image, accomplish a fresh deferred object that resolves when the
// image has loaded and add that to an array of deferred objects.

var loadingImage = $.Deferred();
imagesLoading.push(loadingImage);

// “this” is the image ingredient right here and can fair smooth earn a total property.
// Glimpse http://stackoverflow.com/a/24201249

if (this.total){
loadingImage.salvage to the bottom of();
}else{
var adTimeout = window.setTimeout(characteristic() {
loadingImage.salvage to the bottom of();
}, 3000);

this.addEventListener(‘load’, characteristic() {
loadingImage.salvage to the bottom of();
window.clearTimeout(adTimeout);
});

this.addEventListener(‘error’, characteristic() {
// We indubitably salvage no longer care if the image never loads, but we smooth need
// to salvage to the bottom of the promise so that we can reset the waypoints.
loadingImage.salvage to the bottom of();
window.clearTimeout(adTimeout);
});

// Natty up match listeners
this.removeEventListener(‘load’, characteristic() {
loadingImage.salvage to the bottom of();
window.clearTimeout(adTimeout);
});
this.removeEventListener(‘error’, characteristic() {
loadingImage.salvage to the bottom of();
window.clearTimeout(adTimeout);
});
}
});
$.when.observe(this, imagesLoading).then(characteristic() {
fixedAds($(‘.postid-‘ + postID).children(‘article’));
}, characteristic() {
console.log(arguments);
});
/Inifnite Scroll Half This */
var newSharePostID = window.__sharethis__.config[‘inline-share-buttons’];
newSharePostID.id=”inline-share-button-“+postID;
newSharePostID.url= postLink;
newSharePostID.title= postTitle;
window.__sharethis__.load(‘inline-share-buttons’, newSharePostID);

}
}
});
return false;
}

/Load 2d article on scroll
*/

$(window).bind(‘scroll’, characteristic(){

$(‘.scrolltrace’).every(characteristic(){

var submit = $(this);
var topp = submit.location().top;
var bott = submit.location().top + submit.top();
var pos = $(window).scrollTop();

if ( pos>=topp && pos 0){

}else{
window.history.pushState({}, “”, $(‘.currentScr’).attr(‘articlelistlinks’));

articlePostId = $(‘.currentScr’).attr(“article-submit-id”);

/*Unusual non subscriber For Infinite Scroll*/
if (null != is_user_logged_in) {
var tn_sfg_local = localStorage.getItem(“tn_sfg_local”);
if (null != tn_sfg_local && undefined != tn_sfg_local && ” != tn_sfg_local) {
tn_sfg_local = JSON.parse(tn_sfg_local);
if (tn_sfg_local.entails(parseInt(articlePostId))) {
$(‘.currentScr’).uncover(‘.tn-sfg-add-to-list’).addClass(‘selected’);
$(‘.currentScr’).uncover(‘.tn-sfg-add-to-list’).removeClass(‘cowl’);
}else {
$(‘.currentScr’).uncover(‘.tn-sfg-add-to-list’).removeClass(‘cowl’);
}
} else {
$(‘.currentScr’).uncover(‘.tn-sfg-add-to-list’).removeClass(‘cowl’);
}
}
/*Unusual non subscriber For Infinite Scroll*/

var allSubject = $(‘.postid-‘+articlePostId+’.currentScr input[name=”tpTags”]’).val();
var allAuthor = $(‘.postid-‘+articlePostId+’.currentScr input[name=”tpContentAuthor”]’).val();

var username = getCookie(‘SESSname’);
if(username != null){
_cbq.push([‘_acct’, ‘paid’]);
}else{
_cbq.push([‘_acct’, ‘anon’]);
}

console.log(“Chartbeat”);
pSUPERFLY.virtualPage({
sections: allSubject,
authors : allAuthor,
direction : window.save.pathname,
title : $(‘.currentScr’).attr(‘articlelisttitle’)
});
}

/Taxonomy and Creator Location off in GA Tournament Initiating */
var allSubject = allSubject.slice up(‘,’);
$.every( allSubject, characteristic( i, allsubval ) {
gaTaxonomyAuthor( allsubval, $(‘.currentScr’).attr(‘articlelisttitle’), $(‘.currentScr’).attr(‘articlelistlinks’) );
});

var allAuthor = allAuthor.slice up(‘,’);
$.every( allAuthor, characteristic( i, allautval ) {
gaTaxonomyAuthor( allautval, $(‘.currentScr’).attr(‘articlelisttitle’), $(‘.currentScr’).attr(‘articlelistlinks’) );
});
/Taxonomy and Creator Location off in GA Tournament Discontinue */

/Call E-mail Signup for countless scroll
*/
if( !$(‘.postid-‘+articlePostId+’ .article-physique img’).dad or mum(“a”).dad or mum(“figure”).hasClass(‘bx-merchandise’) ){

if( !$(“.abody-“+articlePostId+””).hasClass(“e mail-signup-visited”) ){
email_signup_module( articlePostId );
}
}

/Remark Page Look Tournament */
dataLayer.push({
‘match’: ‘gaPageViewEvent’,
‘gaEventCategory’: ‘article’,
‘gaEventAction’: $(‘.currentScr’).attr(‘articlelisttitle’),
‘gaEventLabel’: articlePostId,
});
/Remark Page Look Tournament */

/Article Divider Scrolled Over Total Depend
*/
dataLayer.push({
‘match’: ‘gaRecirculationEvent’,
‘gaEventCategory’: ‘recirculation’,
‘gaEventAction’: ‘article-divider-scrolled-over’,
‘gaEventLabel’: $(‘.currentScr’).attr(‘articlelistlinks’),
});

/Article Divider Scrolled Over Person Depend
*/
article_number = $(‘.abody-‘+articlePostId+”).attr(“article-number”);
if (typeof article_number !== typeof undefined && article_number !== false) {
dataLayer.push({
‘match’: ‘gaRecirculationEvent’,
‘gaEventCategory’: ‘recirculation’,
‘gaEventAction’: ‘article-divider-scrolled-over-‘+article_number+”,
‘gaEventLabel’: $(‘.currentScr’).attr(‘articlelistlinks’),
});
}

// Google Analytics for Infinite Scroll
/*ga(‘ship’, ‘pageview’, {
‘net page’: $(‘.currentScr’).attr(‘articlelistlinks’),
‘title’: $(‘.currentScr’).attr(‘articlelisttitle’)
});*/
console.log(“Google”);
ga(‘save’, ‘dimension1’, $(‘.currentScr’).uncover(‘.tn_publish_date’).text());
ga(‘ship’, ‘pageview’, {
‘net page’: window.save.pathname,
‘title’: $(‘.currentScr’).attr(‘articlelisttitle’)
});

dataLayer.push({
‘match’:’InfiniteScrollPageView’,
‘virtualPageURL’: window.save.pathname,
‘virtualPageTitle’ : $(‘.currentScr’).attr(‘articlelisttitle’)
});

$(“nav.main ul li.article-meta h2”).html($(‘.currentScr’).attr(‘articlelisttitle’).substring(0,100));
$(“title”).html($(‘.currentScr’).attr(‘articlelisttitle’));

var linktext = $(‘.currentScr’).uncover(“.anchor_subject”).html();
if ( linktext!=” ){

var linkredirectval =$(‘.currentScr’).uncover(“.anchor_subject”).attr(‘subjectlink’);

if(typeof linkredirectval!=’undefined’){
var subject_head_link = ““+linktext+”“;
$(‘.tophead_subject’).html(subject_head_link);
}else{
var subject_head_link = “”;
$(‘.tophead_subject’).html(subject_head_link);
}

}

pageChange = parseInt(pageChange) + 1;
}

}else{
$(this).removeClass(‘currentScr’);
}
});

$current_article = $(‘.scrolltrace.currentScr’);
// Load next leaderboard ad on reach to bottom action tout
if($current_article.hasClass(‘currentScr’)){

articlePostId = $(‘.currentScr’).attr(“article-submit-id”);

var windowTop = $(window).scrollTop();

if( $current_article.uncover(‘.lengthen-in the reduction of’).dimension != 0 ){

if( !$(‘#lengthen-in the reduction of-‘+articlePostId+”).hasClass(‘lengthen-conclude’) && !$(‘#lengthen-in the reduction of-‘+articlePostId+”).hasClass(‘tn-first-lengthen’)){

if( $(‘.abody-‘+articlePostId+”).hasClass(‘take care of-learning’) ){

/Overflow Hidden Guardian Div */
$(‘.abody-‘+articlePostId+”).dad or mum().addClass(“take care of-learning-dad or mum”);

/Conceal Article Footer */
$(‘#article-footer-‘+articlePostId+”).cowl();

/Conceal Rev Remark Block */
$(‘#tabola-block-‘+articlePostId+”).cowl();

/Conceal aside wrap modules */
$(‘.scrolltrace.currentScr .aside-wrap .ad-wrap’).no longer(‘:eq(0)’).cowl();

/Reveal lengthen In the reduction of */
$(‘#lengthen-in the reduction of-‘+articlePostId+”).list();
}else{

// Assemble when the net page loaded
eval(“pushDataPianoOnInfinite_”+articlePostId+”()”);
tp.skills.salvage();

}
}
}
}

var loadPoint = $(‘.article-physique:closing’).offset().top – 68;

if (loadPoint!=false && $(window).scrollTop() >= loadPoint){
if( $(‘.scrolltrace’).dimension==rely ){

loagAgn = correct;

if(loagAgn){
rely++;

if(rely
eval(“pushDataPianoOnInfinite_”+$article_id+”()”);
// Assemble when the net page loaded
tp.skills.salvage();

$(‘.abody-‘+$article_id+”).removeClass(‘take care of-learning’);

$(‘.abody-‘+$article_id+”).removeClass(‘no-learning’);

/Overflow Visible Guardian */
$(‘.abody-‘+$article_id+”).dad or mum().removeClass(“take care of-learning-dad or mum”);

/Reveal Article Footer */
$(‘#article-footer-‘+$article_id+”).list();

/Reveal Rev Remark Block */
$(‘#tabola-block-‘+$article_id+”).list();

/Reveal aside wrap modules */
$(‘.postid-‘+$article_id+’ .aside-wrap .ad-wrap’).no longer(‘:eq(0)’).list();

/Conceal lengthen In the reduction of */
$(‘#lengthen-in the reduction of-‘+$article_id+”).cowl();

/Linked Single Article Music
*/
relatedSingleArticle( $article_id );

/Linked A pair of Article Music
*/
relatedMultiArticle( $article_id );

/Present Arena Module Music
*/
currentIssueModule( $article_id );

/Inline CTA One Music
*/
inlineCtaOne( $article_id );

/Inline CTA Two Music
*/
inlineCtaTwo( $article_id );

/Inline CTA Two Music
*/
inlineCtaSignup( $article_id );

/Creator Highlight Music
*/
authorHighlight( $article_id );

/Series Module Music
*/
seriesModule( $article_id );

/Statement Module Music
*/
commentModule( $article_id );

/Books Salad Music
*/
booksSalad( $article_id );

/Circulate Tout Module Music
*/
actionToutModule( $article_id );

/Sidebar Neighborhood Module Music
*/
sidebarCommunityModule( $article_id );
tp.push([“setCustomVariable”, “book_and_arts_article”, “false”]);
console.log(“pushed variable book_and_arts_article false”);

if (sharethis_infinite.entails($article_id) === false && 0 a’,characteristic(){
/Click on Tournament
*/
dataLayer.push({
‘match’: ‘gaAuthorHighlight’,
‘gaEventCategory’: ‘creator-Highlight’,
‘gaEventAction’: ‘creator-Highlight-click on’,
‘gaEventLabel’: $(this).attr(‘href’),
});
});

/Click on Tournament Monitoring for Series Module
*/

$(doc).on(‘click on’, ‘.series-modules .series-modules-blocks .series-blocks > a’,characteristic(){
/Click on Tournament
*/
dataLayer.push({
‘match’: ‘gaSeriesModule’,
‘gaEventCategory’: ‘series-module’,
‘gaEventAction’: ‘series-module-click on’,
‘gaEventLabel’: $(this).attr(‘href’),
});
});

/Click on Tournament Monitoring for Statement Module
*/

$(doc).on(‘click on’, ‘.observation-module .observation-blocks .cta input’,characteristic(){
/Click on Tournament
*/
dataLayer.push({
‘match’: ‘gaCommentsModule’,
‘gaEventCategory’: ‘feedback-module’,
‘gaEventAction’: ‘feedback-module-click on’,
‘gaEventLabel’: $(this).val(),
});
});

/Click on Tournament Monitoring for Books Salad
*/

$(doc).on(‘click on’, ‘.book-module .newrelated-blocks a’,characteristic(){
/Click on Tournament
*/
dataLayer.push({
‘match’: ‘gaBooksSalad’,
‘gaEventCategory’: ‘books-salad’,
‘gaEventAction’: ‘books-salad-click on’,
‘gaEventLabel’: $(this).dad or mum().dad or mum().uncover(‘h5’).text(),
});

});

/Click on Tournament Monitoring for Circulate Tout Module
*/

$(doc).on(‘click on’, ‘aside.takeaction .cta input’,characteristic(){
/Click on Tournament
*/
dataLayer.push({
‘match’: ‘gaActionToutModule’,
‘gaEventCategory’: ‘action-tout-module’,
‘gaEventAction’: ‘action-tout-module-click on’,
‘gaEventLabel’: doc.URL,
});
});

/Click on Tournament Monitoring for Protect Reading 2/3/4/5
*/

$(doc).on(‘click on’, ‘.lengthen-in the reduction of a’,characteristic(){

var article_number = $(this).fogeys(‘.scrolltrace’).uncover(‘.article-physique’).attr(‘article-number’);

if (typeof article_number !== typeof undefined && article_number !== false) {
/Click on Tournament
*/
dataLayer.push({
‘match’: ‘gaKeepReading’,
‘gaEventCategory’: ‘take care of-learning’,
‘gaEventAction’: ‘take care of-learning-‘+article_number+’-click on’,
‘gaEventLabel’: doc.URL,
});
}
});

/Article E-mail Signal Up
*/

$(doc).on(‘click on’,’.para_one_button_email’,characteristic(){
/Music Click on On Signal Up Button GTM
*/
var current_email_signup = $(this).fogeys(“.e mail-signup-module”);
var current_step = current_email_signup.attr(“info-part”);
var article_id = $(this).fogeys(“#url-title”).dad or mum().attr(“article-submit-id”);
paragraphOneClickEvent(article_id, current_step);

var e mail = current_email_signup.uncover(“#para-one-e mail-input-“+current_step+””).val();
var sailthru_list = current_email_signup.uncover(“#para-one-sailthru-list-“+current_step+””).val();
var current_parent = $(this).dad or mum();

if( e mail!=” && typeof e mail!==typeof undefined){
jQuery.ajax({
url :ajax_object.ajax_url,
kind :”POST”,
info :”sailthru_email_take_action=”+e mail+”&take_action_sailthru_list_final=”+sailthru_list+”&action=action_tout_sailthru”,
success : characteristic(info){
if( info.indexOf(‘errormsg’) > 0 ){
current_parent.uncover(‘.footer_email_error’).html(info);
}else{
/Music Successful Signal Up GTM
*/

if( typeof article_id !== typeof undefined && typeof current_step !== typeof undefined && (typeof paragraph_module !== typeof undefined) && (paragraph_module[article_id][current_step].event_name!=””) ){
dataLayer.push({
‘match’: ‘gaParagraphOneEvent’,
‘gaEventCategory’: ”+ paragraph_module[article_id][current_step].event_name +”,
‘gaEventAction’: ”+ paragraph_module[article_id][current_step].event_name +’-list’,
‘gaEventLabel’: e mail,
});
}

var nextTNstep = parseInt(current_step)+1;
nextTNstep = ( nextTNstep > 5 )? 0 : nextTNstep;
var step = getParaOneNextStep(article_id, nextTNstep);

var cookieDateTNstep = fresh Date();
cookieDateTNstep.setTime(cookieDateTNstep.getTime() + (30*24*60*60*1000));
doc.cookie = “TNstep=”+step+”;expires=”+cookieDateTNstep.toUTCString()+”;direction=/”;

var cookieDateTNlifetime = fresh Date();
cookieDateTNlifetime.setTime(cookieDateTNlifetime.getTime() + (10*365*24*60*60*1000));
doc.cookie = “TNlifetime=”+step+”;expires=”+cookieDateTNlifetime.toUTCString()+”;direction=/”;

$(“.abody-“+article_id+” .e mail-signup-module”).cowl();
current_email_signup.next(“#para-one-thankyou-“+article_id+””).list();
}
}
});
}else{
current_parent.uncover(‘.footer_email_error’).html(‘Please Enter E-mail’);
}
});

/Paragraph one other module
*/

$(doc).on(‘click on’,’.para_one_button’,characteristic(){
/Music Click on On Signal Up Button GTM
*/
var current_step = $(this).fogeys(“.e mail-signup-module”).attr(“info-part”);
var article_id = $(this).fogeys(“#url-title”).dad or mum().attr(“article-submit-id”);
var nextTNstep = parseInt(current_step)+1;

nextTNstep = ( nextTNstep > 5 )? 0 : nextTNstep;
var step = getParaOneNextStep(article_id, nextTNstep);

var cookieDateTNstep = fresh Date();
cookieDateTNstep.setTime(cookieDateTNstep.getTime() + (30*24*60*60*1000));
doc.cookie = “TNstep=”+step+”;expires=”+cookieDateTNstep.toUTCString()+”;direction=/”;

var cookieDateTNlifetime = fresh Date();
cookieDateTNlifetime.setTime(cookieDateTNlifetime.getTime() + (10*365*24*60*60*1000));
doc.cookie = “TNlifetime=”+step+”;expires=”+cookieDateTNlifetime.toUTCString()+”;direction=/”;

paragraphOneClickEvent(article_id, current_step);
});

$(doc).on(‘click on’,’.inline_cta_signup’,characteristic(){

var current_email_signup = $(this).fogeys(“.inline-cta-create-module”);
var article_id = $(this).fogeys(“#url-title”).dad or mum().attr(“article-submit-id”);
$(“.inline_cta__form_error_”+article_id).html(“”);
$(“.inline_cta__form_toperror_”+article_id).html(“”);
var e mail = $(“#inline_cta__email_”+article_id).val();
var sailthru_list = $(“#inline_cta__sail_list_”+article_id).val();
var current_parent = $(this).dad or mum();

if( e mail!=” && typeof e mail!==typeof undefined){
if(!isValidEmailAddress(e mail)){
$(“.inline_cta__form_error_”+article_id).html(”);
}
else{
jQuery.ajax({
url :ajax_object.ajax_url,
kind :”POST”,
info :”article_id=”+article_id+”&e mail=”+e mail+”&list=”+sailthru_list+”&action=inlinecta-signup”,
success : characteristic(info){
if( info.indexOf(‘errormsg’) > 0 ){
$(“.inline_cta__form_error_”+article_id).html(info);
}else{
$(“.inline_cta__signup_module_”+article_id).cowl();
if (info.indexOf(‘verify_email’) > 0) {
$(“#inline_cta__form_thanks”+article_id).html(info);
}
$(“#inline_cta__form_thanks”+article_id).list();
}
}
});
}
}else{
$(“.inline_cta__form_error_”+article_id).html(”);
}
});

});

Related Articles

Back to top button
%d bloggers like this: