First grass laid on field tray at Raiders’ Allegiant Stadium – Las Vegas Review-Journal

thumbnail

Sign up for our free RJ Politics newsletter.

‘};
newsletter_2nd_lv[‘Debra J. Saunders’] = {‘id’:’44’, ‘title’:’YOUR WEEKLY
POLITICAL FIX‘, ‘subtitle’:’Sign up for our free DC-LV newsletter with political stories from the swamp to the Strip.’};
newsletter_2nd_lv[‘CES 2020’] = {‘id’:’49’, ‘title’:’GET YOUR FREE CES
UPDATES‘, ‘subtitle’:’Don’t miss any of our CES coverage.’};
newsletter_2nd_lv[‘TV’] = {‘id’:’50’, ‘title’:’GET YOUR
TV LISTINGS‘, ‘subtitle’:’Your Weekly TV Briefing.’};
newsletter_2nd_lv[‘UNLV’] = {‘id’:’52’, ‘title’:’UNLV SPORTS
YOUR WAY‘, ‘subtitle’:’Stay up to date on the Rebels with our free newsletter.’};
newsletter_2nd_lv[‘Rodeo’] = {‘id’:’48’, ‘title’:’RODEO NEWS
YOUR WAY‘, ‘subtitle’:’Don’t miss any of the action! Sign up for our free newsletter.’};
newsletter_2nd_lv[‘Raiders’] = {‘id’:’30’, ‘title’:’WANT EVEN MORE
RAIDERS NEWS?‘, ‘subtitle’:’Sign up for our free Vegas Nation newsletter.’};
newsletter_2nd_lv[‘Golden Knights’] = {‘id’:’29’, ‘title’:’WANT MORE KNIGHTS IN
YOUR DAY?‘, ‘subtitle’:’Read our free Golden Edge newsletter for all the latest updates.’};

var main_cat = ”;
var m_hierarchy = [];
var m_cat = [];
var m_hl_cat = ”;
if (window.dataLayer[0].metrics) {
main_cat = window.dataLayer[0].metrics.section;
m_hierarchy = window.dataLayer[0].metrics.hierarchy.split(‘ | ‘);
m_cat = window.dataLayer[0].metrics.categories;
m_hl_cat = window.dataLayer[0].metrics[‘hl-category’];
}

var i, k, found, newsletter;

newsletter = false;
found = false;
if (default_category_to_show.includes(m_hl_cat)) {
newsletter = newsletter_1st_lv[‘default’];
}

if (newsletter_1st_lv.hasOwnProperty(m_hl_cat)) {
newsletter = newsletter_1st_lv[m_hl_cat];
}

// check main category
if (newsletter_2nd_lv.hasOwnProperty(main_cat)) {
found = true;
newsletter = newsletter_2nd_lv[main_cat];
}

if (!found) {
// check in hierarchy (main category hierarchy)
i = m_hierarchy.length;
while (!found && i >= 0) {
i–;
if (i > 0) {
if (newsletter_2nd_lv.hasOwnProperty(m_hierarchy[i])) {
found = true;
newsletter = newsletter_2nd_lv[m_hierarchy[i]];
}
} else {
// check first level
if (newsletter_1st_lv.hasOwnProperty(m_hierarchy[i])) {
found = true;
newsletter = newsletter_1st_lv[m_hierarchy[i]];
}
}
}
}

if (!found) {
// check in category
i = m_cat.length;
while (!found && i > 0 && cat_has_subcat.includes(m_hl_cat)) {
i–;
if (newsletter_2nd_lv.hasOwnProperty(m_cat[i])) {
found = true;
newsletter = newsletter_2nd_lv[m_cat[i]];
}
}
}

if (newsletter !== false && !$(‘.rj-story-full’).hasClass(‘tag-hide-newsletter’)) {
$(‘#nlsm-all .nlsm-widget’).attr(‘data-prefid’, newsletter.id);
$(‘#nlsm-all .nlsm-widget .rj-widget-title’).html(newsletter.title);
$(‘#nlsm-all .nlsm-widget .field-sub-title’).html(newsletter.subtitle);
$(‘#nlsm-all’).show();
}

});
})(jQuery);

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top