- 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
<!-- OneTrust Cookies Consent Notice (Production CDN, rosettastone.com, en-GB) start -->
<script type="text/javascript">
(function(){
var max_wait_for_country_code = (window.gdpr && window.gdpr.max_wait_for_country_code || 500);
setTimeout(function(){
var onetrust_url = 'https://cdn.cookielaw.org/consent/c4ba6041-9063-4f3f-9cea-eca312d6194b.js';
var onetrust = document.createElement('script');
onetrust.setAttribute('src', onetrust_url);
onetrust.setAttribute('type', 'text/javascript');
onetrust.setAttribute('charset', 'UTF-8');
document.head.appendChild(onetrust);
// ******************************************************
// DO NOT PASTE OVER THIS
// ******************************************************
// hide cookie consent popup if user is from US
if(window.gdpr && window.gdpr.country_code==='US'){
hideOneTrust();
}
function hideOneTrust(){
var one_trust_hider = document.createElement('style');
var one_trust_hider_css = ''
+'#optanon, .optanon-alert-box-wrapper{'
+'display: none !important;'
+'}'
+'';
one_trust_hider.innerHTML = one_trust_hider_css;
document.querySelector('head').appendChild(one_trust_hider);
}
// this runs on page load and every time user updates cookie preferences
function OptanonWrapper(){
if(window.OptanonActiveGroups){
var all_cookies_accepted = (/,4,/).test(window.OptanonActiveGroups);
var analytics_cookies_accepted = (/,(2|3),/).test(window.OptanonActiveGroups);
var no_cookies_accepted = window.OptanonActiveGroups===',1,';
if(all_cookies_accepted){
window.gdpr && window.gdpr.trigger('gdpr_accept_all_cookies');
}
else if(analytics_cookies_accepted){
window.gdpr && window.gdpr.trigger('gdpr_accept_analytics_only');
}
else if(no_cookies_accepted){
window.gdpr && window.gdpr.trigger('gdpr_revoke_cookie_consent');
}
}
}
// Rosetta Stone's custom fixes ensure OneTrust's dark overlay appears and disappears when it should
setTimeout(function(){
(function($){
$(function(){
$('.optanon-alert-box-close').on('click', function(){
$('#optanon-popup-bg').fadeOut(400, hideOneTrust);
});
$('.optanon-close-link').on('click', function(){
setTimeout(function(){
$('#optanon-popup-bg').fadeIn();
}, 500);
});
});
})(jQuery);
}, 1000);
}, max_wait_for_country_code);
})();
</script>
<!-- OneTrust Cookies Consent Notice (Production CDN, rosettastone.com, en-GB) end -->