- 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
- 386
- 387
- 388
- 389
- 390
- 391
- 392
- 393
- 394
- 395
- 396
- 397
- 398
- 399
- 400
- 401
- 402
- 403
- 404
- 405
- 406
- 407
- 408
- 409
- 410
- 411
- 412
- 413
- 414
- 415
- 416
- 417
- 418
- 419
- 420
- 421
- 422
- 423
- 424
- 425
- 426
- 427
- 428
- 429
- 430
- 431
- 432
- 433
- 434
- 435
- 436
- 437
- 438
- 439
- 440
- 441
- 442
- 443
- 444
- 445
- 446
- 447
- 448
- 449
- 450
- 451
- 452
- 453
- 454
- 455
- 456
- 457
- 458
- 459
- 460
- 461
- 462
- 463
- 464
- 465
- 466
- 467
- 468
- 469
- 470
- 471
- 472
- 473
- 474
- 475
- 476
- 477
- 478
- 479
- 480
- 481
- 482
- 483
- 484
- 485
- 486
- 487
- 488
- 489
- 490
- 491
- 492
- 493
- 494
- 495
- 496
- 497
- 498
- 499
- 500
- 501
- 502
- 503
- 504
- 505
- 506
- 507
- 508
- 509
- 510
- 511
- 512
- 513
- 514
- 515
- 516
- 517
- 518
- 519
- 520
- 521
- 522
- 523
- 524
- 525
- 526
- 527
- 528
- 529
- 530
- 531
- 532
- 533
- 534
- 535
- 536
- 537
- 538
- 539
- 540
- 541
- 542
- 543
- 544
- 545
- 546
- 547
- 548
- 549
- 550
- 551
- 552
- 553
- 554
- 555
- 556
- 557
- 558
- 559
var styl = `
<style id="lang_select_styles">
#lang-menu {
padding-top: 4rem;
padding-bottom: 4rem;
text-align: justify;
}
#simp_container {
width: 65em;
max-width: 90%;
margin: 0 auto;
display: flex;
flex-flow: column nowrap;
justify-content: flex-start;
position: relative;
}
#simp_container label span {
text-align: left;
color: white;
font-size: 1vw;
margin-top: 2em;
padding-bottom: .25em;
letter-spacing: .02em;
}
#lang-menu #simp_container button {
-webkit-appearance: none;
background: black;
border: none;
border-radius: 5px;
padding: 1em .75em;
color: white;
text-transform: uppercase;
font-family: GothamMedium;
font-size: 1.05em;
cursor: pointer;
min-width: 17.5em;
transition-property: all;
transition-duration: 333ms;
transform: translateZ(0);
}
#lang-menu #simp_container button:hover, #lang-menu #simp_container button:focus, #lang-menu #simp_container button.hangfocus {
transition-property: all;
transition-duration: 333ms;
color: black;
background: gold;
transform: translateZ(0);
}
#simp_container h2 {
font-family: GothamThin;
font-size: 2em;
font-size: 2vw;
color: white;
text-align: left;
}
#simp_container h2 strong {
font-family: GothamBook;
}
#simp_container p {
font-family: GothamThin;
font-size: 1em;
font-size: 1.5vw;
max-width: 30em;
color: white;
text-align: left;
margin-top: 1.5em;
line-height: 1.25;
}
#simp_selectmenu {
visibility: visible;
position: absolute;
width: 70.2em;
left: 0em;
top: 22.7em;
background: gold;
padding: 2em;
z-index: 100;
box-sizing: border-box;
max-width: 98vw;
border-radius: 5px;
transform: scale(.8) translateY(-20%);
opacity: 0;
will-change: transform, opacity;
}
#simp_selectmenu.show {
transition-property: opacity, transform;
transition-duration: 200ms, 300ms;
transition-timing-function: ease-out, ease-in;
opacity: 1;
transform: scale(1) translateY(0);
will-change: unset;
}
@media (max-width: 1400px){
#simp_selectmenu {
left: -2.5em;
}
}
#simp_selectmenu ul {
list-style: none;
display: flex;
flex-flow: row wrap;
justify-content: space-around;
position: relative;
}
#simp_selectmenu ul li {
width: 9.8em;
cursor: pointer;
font-weight: 700;
}
#simp_selectmenu ul li a {
text-decoration: none;
color: inherit;
}
#simp_selectmenu ul li small {
font-size: .8em;
}
#simp_selectmenu ul li:nth-child(6n+1){
width: 11em;
}
#simp_selectmenu ul li:nth-child(6n+2){
width: 9em;
}
#simp_selectmenu ul li:nth-child(6n+4){
width: 8em;
}
#simp_selectmenu ul li:nth-child(6n+3){
width: 9.5em;
}
#simp_selectmenu ul li:nth-child(6n+6){
width: 8em;
}
#simp_selectmenu ul li:nth-child(-n+6){
margin-bottom: 1.5em;
}
#simp_selectmenu ul li:nth-child(n+7){
font-weight: 100;
margin: .55em 0;
}
#simp_selectmenu ul li:nth-child(6)::after{
content: '';
display: block;
width: 100%;
position: absolute;
top: 2em;
left: 0;
border-bottom: 1px solid rgba(0,0,0,.1);
}
@media (max-width: 1000px){
#simp_selectmenu ul li {
width: 50%!important;
text-align: center;
}
#simp_selectmenu ul li:nth-child(6)::after{
top: 8em;
}
}
/* Product Offering */
.oct_2016_product_square {
border-radius: 8px;
}
.oct_2016_product_info_square {
text-align: center;
}
.oct_2016_product_square_content {
padding: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
.oct_2016_product_square_header{
border-bottom: none;
padding: 1.5em;
background: #ddd;
line-height: 1.2;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom: 2px solid #ccc;
}
.oct_2016_product_square_middle {
padding: 0 1.5rem 1.5rem 1.5rem;
}
.js_oct_2016_product.js_24_month .oct_2016_product_square_header {
border-radius: 0;
}
.oct_2016_best_value {
text-transform: uppercase;
font-family: gothambold;
background: #000;
color: #fff;
padding: 15px;
display: block;
margin-bottom: 0;
position: relative;
line-height: 17px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.oct_2016_best_value::after, .oct_2016_best_value::before {
content: none;
}
.oct_2016_guarantee_vertical {
margin-right: 0;
}
/* CD Offering */
.oct_2016_gold_bg .oct_2016_product_square_header {
display: none;
}
.oct_2016_price_container_square_cddl {
margin-top: 0;
}
@media (min-width: 560px) {
.oct_2016_cd_download_buttons {
width: 241px;
}
}
.oct_2016_gold_bg .oct_2016_msrp_square {
display: inline-block;
}
.oct_2016_gold_bg .oct_2016_big_price_square {
font-size: 31px;
vertical-align: baseline;
color: black;
font-family: gothambook;
display: inline-block;
margin-left: .2em;
}
.oct_2016_gold_bg .oct_2016_msrp_square {
margin-bottom: 0;
vertical-align: middle;
}
.oct_2016_gold_bg .oct_2016_price_container_square_cddl {
display: inline-block;
}
.oct_2016_product_square_middle {
padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}
/* Paring out the demo section */
#tryit {
display: none;
}
/* Bottom section */
.container .counter {
display: none;
}
.container .slide.macworld {
display: none;
}
@media only screen and (min-width: 853px) {
#stats .carousel {
width: 100%;
margin: 0;
}
}
#stats {
background-color: #4c4c4c;
padding: 4em;
background-image: url(//www.rosettastone.com/lp/assets/sbsrtest0930/macworld-faded.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
#stats .macworldlogo {
width: auto;
display: block;
margin: 1em auto;
}
.macworldquote {
text-align: center;
color: white;
font-size: 1.5em;
font-family: gothamlight;
margin: 0 auto;
max-width: 50em;
}
.macworldquote strong {
display: block;
}
#footer {
background: #363534;
border-top: solid 0.01px #ecc200;
}
/*** MOBILE ***/
@media only screen and (max-width: 743px){
#lang-menu {
display: block!important;
}
#simp_container {
padding: 1em;
}
#simp_container h2 {
font-size: 2em;
}
#simp_container p {
font-size: 1.5em;
}
#simp_container label span#simp_labl {
font-size: 1.5em;
text-align: center;
}
#lang-menu #simp_container button {
margin: 0 auto;
display: block;
font-size: 1.5em;
}
#simp_selectmenu {
left: 0;
width: 100%;
}
#simp_selectmenu.show {
height: 80vh;
overflow-y: scroll;
}
#simp_selectmenu::after {
content: "▼";
position: absolute;
bottom: 0;
left: 0;
box-sizing: border-box;
padding-top: .25em;
padding-bottom: .25em;
width: 100%;
text-align: center;
font-size: 3em;
background: linear-gradient(to top, gold, transparent);
}
#simp_selectmenu ul li {
width: 90%!important;
font-size: 1.5em;
text-align: center;
}
#simp_selectmenu ul li:nth-child(6)::after {
content: none;
}
}
</style>`;
var langmenumarkup = `
<div id="simp_container">
<h2><strong>The only language software<br>with TruAccent™—</strong>the world's<br>best speech recongition technology.</h2>
<p>The most trusted language solution for 25 years is now accessible on any device, from anywhere in the world.</p>
<label>
<span id="simp_labl">Choose your next language</span>
<button><strong id="simp_langname">Spanish (Latin America)</strong> <b>▼</b></button>
</label>
<div id="simp_selectmenu" style="visibility: hidden; position: absolute;" role="dialog" aria-labelledby="simp_labl">
<ul class="top">
<li tabindex="0" id="esp">Spanish <small>(Latin America)</small></li>
<li tabindex="0" id="chi">Chinese <small>(Mandarin)</small></li>
<li tabindex="0" id="eng">English <small>(American)</small></li>
<li tabindex="0" id="fra">French</li>
<li tabindex="0" id="deu">German</li>
<li tabindex="0" id="ita">Italian</li>
<li tabindex="0" id="ara">Arabic</li>
<li tabindex="0" id="tgl">Filipino <small>(Tagalog)</small></li>
<li tabindex="-1" id="ind"><a href="/learn-indonesian">Indonesian</a></li>
<li tabindex="-1" id="lat"><a href="/learn-latin">Latin</a></li>
<li tabindex="0" id="por">Portuguese <small>(Brazil)</small></li>
<li tabindex="0" id="sve">Swedish</li>
<li tabindex="-1" id="dar"><a href="/learn-dari">Dari</a></li>
<li tabindex="0" id="grk">Greek</li>
<li tabindex="0" id="gle">Irish</li>
<li tabindex="-1" id="pas"><a href="/learn-pashto">Pashto</a></li>
<li tabindex="0" id="rus">Russian</li>
<li tabindex="0" id="tur">Turkish</li>
<li tabindex="0" id="ned">Dutch</li>
<li tabindex="0" id="heb">Hebrew</li>
<li tabindex="0" id="jpn">Japanese</li>
<li tabindex="0" id="far">Persian <small>(Farsi)</small></li>
<li tabindex="0" id="esc">Spanish <small>(Spain)</small></li>
<li tabindex="-1" id="uru"><a href="/learn-urdu">Urdu</a></li>
<li tabindex="0" id="ebr">English <small>(British)</small></li>
<li tabindex="0" id="hin">Hindi</li>
<li tabindex="0" id="kor">Korean</li>
<li tabindex="0" id="pol">Polish</li>
<li tabindex="-1" id="kis"><a href="/learn-swahili">Swahili</a></li>
<li tabindex="0" id="vie">Vietnamese</li>
</ul>
</div>
</div>`;
//Menu operations
$('#lang-menu').empty();
$('#violator,#masthead').remove();
$('head').append(styl);
$('#lang-menu').append(langmenumarkup);
//Subscription offering operations
var $offeringcontent = $('.zerofont').children('div:eq(0)').children('div');
//truncate right side
$offeringcontent.eq(1).remove();
//clear all copy but language & "Online Subscription"
$('.oct_2016_product_info_square').children(':not(.oct_2016_language_header,.oct_2016_language_subhead)').remove()
//clear right side content:
$('.meclabs_guarantee_proof').remove();
//remove border from 24 month
$('.js_oct_2016_product.js_24_month').css('border','none');
//Download/CD offering:
//adjust headings
$('.meclabs_cd_title').html('<div class="oct_2016_language_header"> Learn <span class="js_langname_1">a language.</span></div>');
$('.oct_2016_gold_bg .oct_2016_product_square:eq(0)').css('display','none');
//pare down select elements
$('label[for="oct_2016_download"]').text('download');
$('label[for="oct_2016_cd"]').text('cd');
//swap price/description positions
$('.oct_2016_gold_bg .oct_2016_big_price_square').each(function(i,el){ var $el = $(el).parent(); var $span = $el.next(); $el.detach(); $span.after($el);});
//Hide 3-month box when a language with a 5-month option is selected
var $lthreebox = $('.oct_2016_gold_bg .oct_2016_product_square:eq(1)');
$lthreebox.css('display','none');
var $lfivebox = $('.oct_2016_gold_bg .oct_2016_product_square:eq(2)');
$(document).on('lang_change', function(ev, data){
var cddl_count = RSI({cat: data.lang, lvl: 'S5'}).length;
var topbox = ( (cddl_count && cddl_count > 0) ? $lfivebox : $lthreebox );
return $lthreebox.css('display', (topbox == $lfivebox ? 'none' : 'inline-block'));
});
//Bottom area
$('#stats').empty();
$('#stats').append('<img class="macworldlogo" src="//www.rosettastone.com/lp/assets/sbsrtest0930/macworld-logo.svg">');
$('#stats').append('<p class="macworldquote">With its excellent user interface, clear instructions, wide variety of games and challanges…<strong>Rosetta Stone has got it going on.”</strong></p>');
$('#lang-menu button').on('click', function(e){
var $t = $(this);
var $b = $t.find('b');
var show = !($t.hasClass('menushow'));
if(!!show){
$(document).trigger('langmenu_request');
$b.get(0).innerHTML = 'X';
$t.addClass('menushow');
}
else {
$(document).trigger('langmenu_dismiss');
$b.get(0).innerHTML = '▼';
$t.removeClass('menushow');
}
});
$(document).on('langmenu_request', function(e){
var menu = document.getElementById('simp_selectmenu');
menu.style.visibility = 'visible';
setTimeout(function(){ menu.classList.add('show') }, 0);
$('#lang-menu #simp_container button').addClass('hangfocus');
});
$(document).on('langmenu_dismiss', function(e){
var menu = document.getElementById('simp_selectmenu');
menu.style.visibility = 'hidden';
menu.classList.remove('show');
setTimeout(function(){ menu.classList.remove('show') }, 0);
$('#lang-menu button').removeClass('menushow').find('b').html('▼');
$('#lang-menu #simp_container button').removeClass('hangfocus');
});
$('#lang-menu li').on('click keypress', function(e){
var inhtml = $(this).html();
var thisid = this.id;
!!thisid && $(document).trigger('lang_change', {lang: thisid});
$('#simp_langname').html(inhtml);
$(document).trigger('langmenu_dismiss');
});
//$(document).trigger('langmenu_request');