- 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
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- 241
- 242
- 243
- 244
- 245
- 246
- 247
- 248
- 249
- 250
- 251
- 252
- 253
- 254
- 255
- 256
- 257
- 258
- 259
- 260
- 261
- 262
- 263
- 264
- 265
- 266
- 267
- 268
- 269
- 270
- 271
- 272
- 273
- 274
- 275
- 276
- 277
- 278
- 279
- 280
- 281
- 282
- 283
- 284
- 285
- 286
- 287
- 288
- 289
- 290
- 291
- 292
- 293
- 294
- 295
- 296
- 297
- 298
- 299
- 300
- 301
- 302
- 303
- 304
- 305
- 306
- 307
- 308
- 309
- 310
- 311
- 312
- 313
- 314
- 315
- 316
- 317
- 318
- 319
- 320
- 321
- 322
- 323
- 324
- 325
- 326
- 327
- 328
- 329
- 330
- 331
- 332
- 333
- 334
- 335
- 336
- 337
- 338
- 339
- 340
- 341
- 342
- 343
- 344
- 345
- 346
- 347
- 348
- 349
- 350
- 351
- 352
- 353
- 354
- 355
- 356
- 357
- 358
- 359
- 360
- 361
- 362
- 363
- 364
- 365
- 366
- 367
- 368
- 369
- 370
- 371
- 372
- 373
- 374
- 375
- 376
- 377
- 378
- 379
- 380
- 381
- 382
- 383
- 384
- 385
<script>
RSUI.util.setCookie('cartexp', 'cart-overlay')
var carthtml = `
<div class="toggler mobile">
<img src="https://www.rosettastone.com/nuxt-assets/img/icons/cart.svg" alt="view cart" class='open'>
</div>
<div id="cart-overlay"></div>
<div id="cart-iframe-wrap">
<div class="toggler desktop">
<img src="https://www.rosettastone.com/nuxt-assets/img/icons/cart.svg" alt="view cart" class='open'>
<img src="https://www.rosettastone.com/nuxt-assets/img/icons/x-thick.svg" alt="hide cart" class='close'>
</div>
<div class="cart-header">
<div class="cart-items">
<span></span> in your cart
</div>
<div class="cart-secure"></div>
<a href="" class="close-cart">×</a>
</div>
<div class="loading-div">
<div class="lds-dual-ring"></div>
<div style="font-size:90%">Loading cart</div>
</div>
<iframe src="" frameborder="0" id='cart-iframe'></iframe>
</div>
`
$(document.body).append(carthtml)
document.domain="rosettastone.com";
var isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent)
var smallerThan1024 = window.innerWidth <= 1024
// SBSR Desktop
var desktopAnchor = '.add-to-cart'
var mobileAnchor = '.product-m.product'
var $cartwrap = $('#cart-iframe-wrap')
var $cartOverlay = $('#cart-overlay')
var $iframe = $('#cart-iframe')
$(desktopAnchor).unbind()
$(desktopAnchor).off()
$(mobileAnchor).unbind()
$(mobileAnchor).off()
// unbind click on mobile's arrow
$('.product-m.product div.arrow').off().unbind()
// If catalog, add 83px margin top because of sticky nav
if (/buy-/.test(window.location.href) ) {
$cartwrap.css({top: '83px', 'min-height':0, 'max-height': (window.innerHeight - 83) + 'px'})
//$cartwrap.css({top: '83px', 'min-height':0})
$('.toggler.mobile').css({right: '82px', height: '67px'})
}
/** Android needs this or iframe isn't visible. */
if (smallerThan1024) {
$cartwrap.css('left', 0)
}
$(desktopAnchor).click(function(e) {
e.preventDefault()
openCartIFrame(e.target.href )
})
/**
* Clicking mobile cta opens cart,
* passing cart url to openCartOverlay()
*/
$(mobileAnchor).click(function(e) {
var href = null
if (e.target.tagName == 'A') {
href = e.target.href
} else {
href = $(this).closest('a').attr('href')
}
e.preventDefault()
openCartIFrame(href)
})
/** The 'x' icon' */
$('.close-cart').click(function(e) {
e.preventDefault()
closeCartOverlay()
})
$('.toggler.desktop').click(function(e) {
if ($cartwrap.css('margin-right') == '0px') {
closeCartOverlay()
} else {
openCartIFrame('https://secure.rosettastone.com/us_en_store_view/checkout/cart/')
}
})
$('.toggler.mobile').click(function(e) {
openCartIFrame('https://secure.rosettastone.com/us_en_store_view/checkout/cart/')
})
function openCartIFrame (href) {
$cartOverlay.fadeIn()
if ( !isIOS && !smallerThan1024) {
$cartwrap.animate({"margin-right": '+=580px'});
} else {
$cartwrap.fadeIn()
}
$cartwrap.fadeIn().css({display: 'flex'})
$('.toggler.desktop .open').fadeOut()
$('.toggler.desktop .close').fadeIn()
// In mobile, we dont show toggler icon. we show 'X'
if (smallerThan1024) {
$('.toggler.mobile').css({display: 'none'});
}
$("body").css({"position": "fixed", width: '100%'});
if (/stgcart=1/.test(window.location.href)) {
href = href.split('secure')
href = href.join('secure.stg')
}
if (/devcart=1/.test(window.location.href)) {
href = href.split('secure')
href = href.join('secure.dev')
}
if (/prepcart=1/.test(window.location.href)) {
href = href.split('secure')
href = href.join('secure.prep')
//href += (window.location.search ? '&' : '?') + 'theme=overlay'
}
if (!$iframe.attr('src')) {
//$iframe.attr('src', href)
}
if (!/sku/.test(href) && !/sku/.test($iframe.attr('src')) ) {
console.log('condition 1')
return
}
if ( /sku/.test(href)) {
console.log('condition 2')
$iframe.attr('src', href)
}
//if (!/sku/.test()) {
// hide livechat
$('#launcher').fadeOut()
}
function closeCartOverlay (itemCount) {
$('.toggler.desktop .close').fadeOut()
$('.toggler.desktop .open').fadeIn()
if ( !isIOS && window.innerWidth > 1024) {
$cartwrap.animate({"margin-right": '-=580px'});
} else {
$cartwrap.fadeOut()
}
$('#launcher').fadeIn()
// In mobile, we dont show toggler icon. we show 'X'
if (smallerThan1024) {
$('.toggler.mobile').css({display: 'flex'});
}
$cartOverlay.fadeOut()
$("body").css("position", "static");
}
document.addEventListener('closeCartOverlay', closeCartOverlay)
window.addEventListener('closeCartOverlay', closeCartOverlay)
/*
let cartAPI = 'https://secure.rosettastone.com/us_en_store_view/checkout/cart/flyout?callback=parseCart'
let script = document.createElement('script');
script.type = 'text/javascript';
script.src = cartAPI
document.head.appendChild(script)
function parseCart (data) {
if (data.count == 0) {
data.count = 1
}
var item = (data.count > 1) ? 'items' : 'item'
$('.cart-items span').html(data.count + ' ' + item)
}
*/
// Fix iOS's input zoom problem
if (isIOS) {
$('body').append("<style>#cart-iframe-wrap { width: 100%; left: 0 }</style>")
}
</script>
<style>
#cart-overlay {
position: fixed;
height: 100%;
width: 100%;
left: 0;
top: 0;
background: rgba(0,0,0, 0.7);
display: none;
}
#cart-iframe-wrap {
position: fixed;
top: 0;
bottom: 0;
right: 0;
height: 100%;
min-height: 100% ;
z-index: 5;
background: #fff;
display: flex;
flex-direction:column;
align-items: center;
box-shadow: -2px -1px 9px 0px rgba(0,0,0,0.7);
font-family: effra;
width: 580px;
margin-right: -580px;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
display: none;
}
/* Ipad */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
/*#cart-iframe-wrap { width: 100%; }*/
}
/* Iphone X */
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) {
/*#cart-iframe-wrap { width: 100%; }*/
}
.toggler {
background: #ecc200 no-repeat center;
display: flex;
cursor: pointer;
justify-content: center;
width: 40px;
height: 60px;
border-bottom-left-radius: 5px;
border-top-left-radius: 5px;
align-items: center;
}
.toggler.desktop {
position: absolute;
width: 40px;
height: 66px;
left: -40px;
}
.toggler .close {
width: 16px;
height: 16px;
}
.toggler .close {
width: 23px;
height: 20px;
}
.toggler .open { display: none; }
.toggler.mobile {
display: none;
position: fixed;
right: 0;
top: 0;
z-index: 5000;
}
.loading-div {
position: absolute;
top: 100px;
z-index: -1;
}
.cart-header {
background: #262626;
color: #fff;
width: 100%;
padding: 0;
box-sizing: border-box;
font-weight: bold;
display: flex;
position: relative;
justify-content: space-between;
height: 0;
}
.cart-items {
display: none;
line-height: 30px;
padding-left: 32px;
background-position: left;
background-repeat: no-repeat;
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyOHB4IiBoZWlnaHQ9IjIycHgiIHZpZXdCb3g9IjAgMCAyOCAyMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5BQ0EwNjZCNy05NkRELTQyRjAtQkQwMS00ODE2MDI2NDI1Mjg8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggc2tldGNodG9vbC48L2Rlc2M+ICAgIDxnIGlkPSJQYWdlLTEi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8L2c+ICAgICAgICAgICAgICAgIDwvZz4gICAgICAgICAgICA8L2c+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4=);
}
.close-cart {
text-decoration: none;
color: #fff;
top: -5px;
right: 13px;
z-index: 10;
position: absolute;
font-size: 25px;
display: none;
}
.cart-secure {
display: none;
padding-right: 40px;
line-height: 15px;
font-size: 13px;
width: 72px;
background-position: left;
background-repeat: no-repeat;
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI4OXB4IiBoZWlnaHQ9IjIzcHgiIHZpZXdCb3g9IjAgMCA4OSAyMyIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5DMjZFNkJFNi1CRTlELTQ3NkQtQjAwRi1GOTE2QzJFRTVERTI8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggc2tldGNodG9vbC48L2Rlc2M+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9IkNhcnQtT3ZlcmxheS1GaWxsZWQtQ29weSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI3MC4wMDAwMDAsIC0xMzYuMDAwMDAwKSIgZmlsbD0iI0ZGRkZGRiI+ICAgICAgICAgICAgPGcgaWQ9IkhlYWRlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDkyLjAwMDAwMCkiPiAgICAgICAgICAgICAgICA8ZyBpZD0iU2VjdXJlLUNoZWNrb3V0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNzAuM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QwNjIyMjIyLDExLjU1MzUgOS4wMzkxMTExMSwxMi4xNzgyNSA5LjAzOTExMTExLDEyLjk0NzM3NSBDOS4wMzkxMTExMSwxMy40NDcgOC43NzUxMTExMSwxMy44ODE4NzUgOC4zNzMzMzMzMywxNC4xMjY4NzUgTDguNzAyMjIyMjIsMTcuMjU4NSBMOC43MDIyMjIyMiwxNy4yNTg1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPiAgICAgICAgICAgICAgICAgICAgPC9nPiAgICAgICAgICAgICAgICAgICAgPHRleHQgaWQ9IlNFQ1VSRS1DSEVDS09VVCIgZm9udC1mYW1pbHk9IkdvdGhhbUhURi1NZWRpdW0sIEdvdGhhbSBIVEYiIGZvbnQtc2l6ZT0iMTIiIGZvbnQtd2VpZ2h0PSI0MDAiIGxpbmUtc3BhY2luZz0iMTIiPiAgICAgICAgICAgICAgICAgICAgICAgIDx0c3BhbiB4PSIxOSIgeT0iMTEiPlNFQ1VSRTwvdHNwYW4+ICAgICAgICAgICAgICAgICAgICAgICAgPHRzcGFuIHg9IjE5IiB5PSIyMyI+Q0hFQ0tPVVQ8L3RzcGFuPiAgICAgICAgICAgICAgICAgICAgPC90ZXh0PiAgICAgICAgICAgICAgICA8L2c+ICAgICAgICAgICAgPC9nPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);
}
#cart-iframe {
z-index: 2;
width: 100%;
height: 100%;
}
.lds-dual-ring {
display: inline-block;
width: 64px;
height: 94px;
}
.lds-dual-ring:after {
content: " ";
display: block;
width: 70px;
height: 70px;
margin: 1px;
border-radius: 50%;
border: 5px solid #f0c23f;
border-color: #f0c23f transparent #f0c23f transparent;
animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@media (max-width : 1024px) {
#cart-iframe-wrap { width: 100%; }
.toggler { position: fixed; right: 0, top: 0 }
.toggler .open { display: block!important}
.toggler .close { display: none!important}
.toggler.mobile { display: none }
.close-cart { display: block }
}
</style>