- 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
function isFIGS(lang){
return (/esp|fra|deu|ita/i).test(lang);
}
function isCatalog(){
return window.location.pathname.match(/learn-/i);
}
// if not catalog, make test only show on desktop
if(!isCatalog()){
show_correct_sbsr_products(current_lang);
$(window).on('resize', function(){
show_correct_products(current_lang);
});
}
function show_correct_sbsr_products(lang){
// if figs and desktop width, show test
if(isFIGS(lang) && window.innerWidth > 1135){
$('#multivariate_container').show();
$('#products').hide();
}
// else hide test
else{
$('#multivariate_container').hide();
$('#products').show();
}
}