Tue Apr 24 2018
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
var exp = 1   // change this to 1 or 2



if (exp === 1)
{      
 var destination = {
        sitewide: 		'taxday24M749',
        rmsitewide: 	'taxday24M699',
        sale: 			'taxday24M699',
        earthday749: 	'earthday24m749',
        earthday699:	'earthday24m699',
        taxday749: 		'taxday24m749',
        taxday699:		'taxday24m699',
        aprilshowers11: 'aprilshowers24m11',
        aprilshowers749:'aprilshowers24m749',
        aprilshowers699:'aprilshowers24m699',
        earthday599:	'earthday24m599',
        taxday599:		'taxday24m599'   
    }

    Object.keys(destination).forEach(function(e,i) {    
        if (e == RSI.rsi) {
            var re = new RegExp(e, "g");
            var dst = window.location.href.replace(re, destination[e]);	
            window.location.href = dst
        }
    })
}
else
{
//LP 3M redirects  
var destination = {
        sitewide: 		'aprilshowers3M27',
        rmsitewide: 	'aprilshowers3M1899',
        sale: 			'aprilshowers3M1899',
        earthday749: 	'earthday3M1899',
        earthday699:	'earthday3M1799',
        taxday749: 		'taxday3M1899',
        taxday699:		'taxday3m1799',
        aprilshowers11: 'aprilshowers3M27',
        aprilshowers749:'aprilshowers3M1899',
        aprilclose699:  'aprilshowers3M1799',
        earthday599:	'earthday3M1699',
        taxday599:		'taxday3M1699' 
// Update best offer
    var bv = $('.oct_2016_best_value').html('Introductory Offer').detach()
    $('a[data-lvl="03"]').parents('.oct_2016_product_square_content').prepend(bv)

    // mobile
    if ($('.mobile_products_container.js_oct_2016_product').is(':visible'))
    {
        var bvm = $('.labelcontain.topper').css({margin: '11px 0 -13px', padding: '.5em 0'}).html('Introductory Offer').detach()
        $('.mobile_msrp[data-lvl="03"]').parents('.monthly_mobilebottom.labelcontain').siblings('label.mobile_product_label').eq(3).before(bvm)
        try
        {
            $('.js_onemonth_toggle_3').before(bvm)
        }
        catch (e)   { }
        $('.mobile_product_label').eq(0).css({'border-top-left-radius' : '5px'})
        $('.mobile_product_label').eq(0).css({'border-top-right-radius' : '5px'})
    }
}