');
$('.tox-section.'+sections[i]).removeClass(sections[i]);
$('.hgg-section.'+sections[i]+' .tox-content').wrapAll('
');
$('.hgg-section.'+sections[i]+' .hgg-content > div').removeClass('tox-content tox-section');
});
/** GENERAL **/
$('#hgg-overview .card-grid').addClass('sq-carousel');
$('.sideimg img').unwrap().unwrap().unwrap().unwrap();
// HGG SIDEBOX
$('.tox-gamepage .sidebox .page-list-group-item .page-data').remove();
/** HGG SECTIONS **/
// HGG BANNER
$('#hgg-overview .hgg-banner').after('
');
$('#hgg-overview .hgg-banner img').unwrap().unwrap().unwrap();
// HGG INTRO
$('#hgg-overview .hgg-intro').addClass('bg-main');
$('#hgg-overview .hgg-intro').prepend('
');
$('#hgg-overview .hgg-intro').after('
');
$('#hgg-overview .text-center').parent().unwrap();
$('#hgg-overview .hgg-intro .deco_01').addClass('onScrollAni ani-jumpUp delay-7');
$('#hgg-overview .hgg-intro .deco_02').addClass('onScrollAni ani-jumpUp delay-8');
$('#hgg-overview .hgg-intro .deco_03').addClass('onScrollAni ani-scaleInBack');
$('#hgg-overview .hgg-intro .deco_04').addClass('onScrollAni ani-jumpUp delay-6');
$('#hgg-overview .hgg-intro .deco_05').addClass('onScrollAni ani-jumpUp delay-7');
$('#hgg-overview .hgg-intro .deco_06').addClass('onScrollAni ani-jumpUp delay-9');
$('#hgg-overview .hgg-intro .deco_07').addClass('onScrollAni ani-jumpUp delay-8');
// HGG MARIO
$('#hgg-overview .hgg-mario').addClass('bg-stripes');
$('#hgg-overview .hgg-mario').after('
');
$('#hgg-overview .hgg-mario h2').parent().parent().parent().parent().addClass('header-container');
$('#hgg-overview .hgg-mario .mario').addClass('onScrollAni ani-scaleInBack');
$('#hgg-overview .hgg-mario .present-01').addClass('ani-shake');
$('#hgg-overview .hgg-mario .present-02').addClass('ani-shake delay-9');
$('#hgg-overview .hgg-mario .snowflake-01').addClass('ani-rotate');
$('#hgg-overview .hgg-mario .snowflake-02').addClass('ani-rotate ani-rev');
$('#hgg-overview .hgg-mario .snowflake-03').addClass('ani-rotate');
$('#hgg-overview .hgg-mario .snowflake-04').addClass('ani-rotate ani-rev');
$('#hgg-overview .hgg-mario .snowflake-05').addClass('ani-rotate');
$('#hgg-overview .hgg-mario .circles').addClass('onScrollAni ani-scaleInBack delay-5');
$('#hgg-overview .hgg-mario .star-01').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-mario .star-02').addClass('ani-hover');
$('#hgg-overview .hgg-mario .star-03').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-mario .star-04').addClass('ani-hover delay-1-5');
$('#hgg-overview .hgg-mario .star-05').addClass('ani-hover');
$('#hgg-overview .hgg-mario .star-06').addClass('ani-hover');
// HGG TOP PICK
$('#hgg-overview .hgg-toppick').addClass('bg-main');
$('#hgg-overview .hgg-toppick').prepend('
');
$('#hgg-overview .hgg-toppick').after('
');
$('#hgg-overview .hgg-toppick h2').parent().parent().parent().parent().addClass('header-container');
$('#hgg-overview .hgg-toppick .snowflake-01').addClass('ani-rotate');
$('#hgg-overview .hgg-toppick .snowflake-02').addClass('ani-rotate ani-rev');
$('#hgg-overview .hgg-toppick .snowflake-03').addClass('ani-rotate');
$('#hgg-overview .hgg-toppick .snowflake-04').addClass('ani-rotate ani-rev');
$('#hgg-overview .hgg-toppick .circles').addClass('onScrollAni ani-scaleInBack delay-2');
$('#hgg-overview .hgg-toppick .star-01').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-toppick .star-02').addClass('ani-hover');
$('#hgg-overview .hgg-toppick .star-03').addClass('ani-hover delay-4');
// HGG FAMILY
$('#hgg-overview .hgg-family').addClass('bg-checker');
$('#hgg-overview .hgg-family').after('
');
$('#hgg-overview .hgg-family h2').parent().parent().parent().parent().addClass('header-container');
$('#hgg-overview .hgg-family .item-coin').addClass('ani-shake');
$('#hgg-overview .hgg-family .item-star').addClass('ani-shake delay-9');
$('#hgg-overview .hgg-family .item-bell').addClass('ani-shake delay-4');
$('#hgg-overview .hgg-family .item-block').addClass('ani-shake delay-10');
$('#hgg-overview .hgg-family .star-01').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-family .star-02').addClass('ani-hover');
$('#hgg-overview .hgg-family .star-03').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-family .star-04').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-family .star-05').addClass('ani-hover');
$('#hgg-overview .hgg-family .star-06').addClass('ani-hover delay-4');
// HGG STORE
$('#hgg-overview .hgg-store').addClass('bg-store');
$('#hgg-overview .hgg-store').after('
');
$('#hgg-overview .hgg-store .double-teaser .page-group-list:last-of-type').before('
');
$('#hgg-overview .hgg-store .snow-toad').addClass('onScrollAni ani-jumpUp');
$('#hgg-overview .hgg-store .snow-luigi').addClass('onScrollAni ani-jumpUp delay-1');
$('#hgg-overview .hgg-store .snow-mario').addClass('onScrollAni ani-jumpUp delay-2');
$('#hgg-overview .hgg-store .snow-peach').addClass('onScrollAni ani-jumpUp delay-3');
$('#hgg-overview .hgg-store .snow-yoshi').addClass('onScrollAni ani-jumpUp delay-4');
$('#hgg-overview .hgg-store .snowflake-01').addClass('ani-rotate');
$('#hgg-overview .hgg-store .snowflake-02').addClass('ani-rotate ani-rev');
$('#hgg-overview .hgg-store .snowflake-03').addClass('ani-rotate');
$('#hgg-overview .hgg-store .snowflake-04').addClass('ani-rotate ani-rev');
$('#hgg-overview .hgg-store .circles').addClass('onScrollAni ani-scaleInBack delay-2');
$('#hgg-overview .hgg-store .star-01').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-store .star-02').addClass('ani-hover');
$('#hgg-overview .hgg-store .star-03').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-store .star-04').addClass('ani-hover');
$('#hgg-overview .hgg-store .star-05').addClass('ani-hover delay-4');
// HGG PARTY
$('#hgg-overview .hgg-party').addClass('bg-main');
$('#hgg-overview .hgg-party').prepend('
');
$('#hgg-overview .hgg-party').prepend('
');
$('#hgg-overview .hgg-party h2').parent().parent().parent().parent().addClass('header-container');
$('#hgg-overview .hgg-party').after('
');
$('#hgg-overview .hgg-party .ribbon-01').addClass('onScrollAni ani-fallIn');
$('#hgg-overview .hgg-party .ribbon-02').addClass('onScrollAni ani-fallIn delay-1');
$('#hgg-overview .hgg-party .ribbon-03').addClass('onScrollAni ani-fallIn delay-2');
$('#hgg-overview .hgg-party .ribbon-04').addClass('onScrollAni ani-fallIn delay-2');
$('#hgg-overview .hgg-party .ribbon-05').addClass('onScrollAni ani-fallIn');
$('#hgg-overview .hgg-party .ribbon-06').addClass('onScrollAni ani-fallIn delay-3');
$('#hgg-overview .hgg-party .ribbon-07').addClass('onScrollAni ani-fallIn delay-1');
// HGG PIKMIN
$('#hgg-overview .hgg-pikmin').addClass('bg-stripes-green');
$('#hgg-overview .hgg-pikmin').prepend('
');
$('#hgg-overview .hgg-pikmin h2').parent().parent().parent().parent().addClass('header-container');
$('#hgg-overview .hgg-pikmin .pikmin').addClass('onScrollAni ani-scaleInBack');
$('#hgg-overview .hgg-pikmin .snowflake-01').addClass('ani-rotate');
$('#hgg-overview .hgg-pikmin .snowflake-02').addClass('ani-rotate ani-rev');
$('#hgg-overview .hgg-pikmin .snowflake-03').addClass('ani-rotate');
$('#hgg-overview .hgg-pikmin .circles-01').addClass('onScrollAni ani-scaleInBack');
$('#hgg-overview .hgg-pikmin .circles-02').addClass('onScrollAni ani-scaleInBack delay-1');
$('#hgg-overview .hgg-pikmin .circles-03').addClass('onScrollAni ani-scaleInBack delay-2');
$('#hgg-overview .hgg-pikmin .star-01').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-pikmin .star-02').addClass('ani-hover');
$('#hgg-overview .hgg-pikmin .star-03').addClass('ani-hover delay-4');
$('#hgg-overview .hgg-pikmin .star-04').addClass('ani-hover');
$('#hgg-overview .hgg-pikmin .star-05').addClass('ani-hover delay-4');
// HGG MORE
$('#hgg-overview .hgg-more').addClass('bg-circles');
$('#hgg-overview .hgg-more').before('
');
$('#hgg-overview .hgg-more').after('
');
$('#hgg-overview .hgg-more .hgg-headline').unwrap().unwrap();
var moreLinkText = $('#hgg-overview .hgg-more a').text();
$('#hgg-overview .hgg-more a').prependTo('#hgg-overview .hgg-more');
$('#hgg-overview .hgg-more a').empty();
$('#hgg-overview .hgg-more h2').text(moreLinkText);
$('#hgg-overview .hgg-more .hgg-content').appendTo('#hgg-overview .hgg-more a');
// HGG DISCLAIMER
$('#hgg-overview .hgg-disclaimer p').parent().parent().unwrap();
/** CAROUSEL **/
$('.sq-carousel').slick({
slidesToShow: 4,
slidesToScroll: 4,
dots: true,
arrows: true,
pauseOnHover: false,
speed: 600,
draggable: false,
infinite: false,
pauseOnFocus: false,
responsive: [
{
breakpoint: 1600,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
},
{
breakpoint: 1051,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 960,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
},
{
breakpoint: 768,
settings: {
centerPadding: '20px',
centerMode: true,
draggable: true,
initialSlide: 1,
slidesToShow: 2,
slidesToScroll: 1,
}
},
{
breakpoint: 428,
settings: {
centerPadding: '46px',
centerMode: true,
initialSlide: 0,
slidesToShow: 1,
slidesToScroll: 1,
}
}
]
}).on('afterChange', function(event, slick, currentSlide){
dataLayer.push({
'event': 'uaevent',
'eventCategory': 'Holiday Gift Guide',
'eventAction': 'Carousel Interaction',
'eventLabel': 'not_defined'
});
});
$('.slick-list').parent().addClass('slick-carousel');
var allTabs = ['#hgg-overview'];
var allTabsCnt = {};
function initCnt() {
for (i = 0; i < allTabs.length; i++) {
allTabsCnt[allTabs[i]] = 0;
}
}
initCnt();
function refreshTabCarousel() {
for (i = 0; i < allTabs.length; i++) {
if (allTabsCnt[allTabs[i]] < 5 && $(allTabs[i]).parent().parent().parent().hasClass('active')){
allTabsCnt[allTabs[i]]++;
$(allTabs[i]+' .sq-carousel').slick('refresh');
}
}
}
function refreshAllCarousel() {
for (i = 0; i < allTabs.length; i++) {
$(allTabs[i]+' .sq-carousel').slick('refresh');
}
}
setTimeout(function() {
$('.plo-page-nav__item').on("click", function() {
initCnt();
});
}, 1000);
$(window).on("resize", function() {
setTimeout(function() {
refreshTabCarousel();
}, 700);
});
$(window.parent).on("scroll", function() {
refreshTabCarousel();
});
/** PARTICLES **/
function createParticles(containerName) {
var count = 45,
particleClass = 'particle',
container = $(containerName),
w = container.width(),
h = container.height(),
elem;
if($(window).width() < 768) {
count = 20;
}
for(let i = 0; i < count; i++) {
elem = document.createElement('div');
elem.className = particleClass;
container.append(elem);
gsap.set(elem, {
x: gsap.utils.random(0, w),
y: gsap.utils.random(0, h) - (h),
scale: gsap.utils.random(0.3, 1)
});
aniPart(elem, h);
}
}
function aniPart(elem, h) {
gsap.to(elem, gsap.utils.random(8, 20), {
y: h,
ease: 'none',
repeat: -1,
delay: -10
});
gsap.to(elem, gsap.utils.random(1, 2), {
x: '+=20',
ease: 'power1.inOut',
repeat: -1,
yoyo: true
});
}
function createConfetti(containerName) {
var count = 20,
container = $(containerName),
w = container.width(),
h = container.height(),
elem;
if($(window).width() < 768) {
count = 10;
}
for(let i = 0; i < count; i++) {
elem = document.createElement('div');
elem.className = gsap.utils.random(["conf-01", "conf-02", "conf-03", "conf-04", "conf-05", "conf-06", "conf-07"]);
container.append(elem);
gsap.set(elem, {
x: gsap.utils.random(0, w),
y: gsap.utils.random(0, h) - (h),
scale: 0.75,
rotation: gsap.utils.random(0, 360),
skewY: gsap.utils.random(10, 20)
});
aniConf(elem, h);
}
}
function aniConf(elem, h) {
gsap.to(elem, gsap.utils.random(4, 7), {
y: h,
ease: 'none',
repeat: -1,
delay: -10
});
gsap.to(elem, gsap.utils.random(5, 20), {
x: '+=100',
ease: 'power1.inout',
repeat: -1,
yoyo: true
});
gsap.to(elem, gsap.utils.random(0.1, 0.2), {
scaleX: '-=0.6',
ease: 'power1.inout',
repeat: -1,
yoyo: true
});
gsap.to(elem, gsap.utils.random(3, 5), {
rotation: '+=200',
ease: 'power1.inout',
repeat: -1,
yoyo: true
});
}
setTimeout(function() {
createParticles('.intro-particle-container');
createParticles('.toppick-particle-container');
createParticles('.party-particle-container');
createConfetti('.party-confetti-container');
createParticles('.pikmin-particle-container');
}, 500);
// ON SCROLL ANIMATION
function isInView(el, offset = 200, offsetMob = 0) {
var target = window;
var docTop = $(target).scrollTop();
var docBottom = docTop + $(target).height();
var winWidth = $(target).width();
if(winWidth > 767) {
var elTop = $(el).offset().top + offset;
var elBottom = elTop + $(el).height();
return ((elBottom >= docTop) && (elTop <= docBottom));
}
else {
var elTop = $(el).offset().top + offsetMob;
var elBottom = elTop + $(el).height();
return ((elBottom >= docTop) && (elTop <= docBottom));
}
}
function checkOnScrollAni() {
$(".onScrollAni").each(function(i) {
if(isInView($(this))) {
if($(this).hasClass("ani-fallIn")) {
$(this).addClass("fallIn");
$(this).removeClass("ani-fallIn");
}
else if($(this).hasClass("ani-scaleInBack")) {
$(this).addClass("scaleInBack");
$(this).removeClass("ani-scaleInBack");
}
else if($(this).hasClass("ani-jumpUp")) {
$(this).addClass("jumpUp");
$(this).removeClass("ani-jumpUp");
}
}
});
}
function resetAni() {
$(".onScrollAni").each(function(i) {
if($(this).hasClass("ani-fallIn")) {
$(this).addClass("fallIn");
$(this).removeClass("ani-fallIn");
}
else if($(this).hasClass("ani-scaleInBack")) {
$(this).addClass("scaleInBack");
$(this).removeClass("ani-scaleInBack");
}
else if($(this).hasClass("ani-jumpUp")) {
$(this).addClass("jumpUp");
$(this).removeClass("ani-jumpUp");
}
});
}
setTimeout(function() {
checkOnScrollAni();
}, 500);
$(window).on("resize", function() {
setTimeout(function() {
checkOnScrollAni();
}, 500);
});
$(window).on("scroll", function() {
setTimeout(function() {
checkOnScrollAni();
}, 200);
});
$(".tox-gamepage .page-title:contains('Pokémon Scarlatto')").html(function(_, html) {
return html.replace(/(Pokémon Scarlatto)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Violetto')").html(function(_, html) {
return html.replace(/(Pokémon Violetto)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Scarlet')").html(function(_, html) {
return html.replace(/(Pokémon Scarlet)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Violet')").html(function(_, html) {
return html.replace(/(Pokémon Violet)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Karmesin')").html(function(_, html) {
return html.replace(/(Pokémon Karmesin)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Purpur')").html(function(_, html) {
return html.replace(/(Pokémon Purpur)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Écarlate')").html(function(_, html) {
return html.replace(/(Pokémon Écarlate)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Escarlata')").html(function(_, html) {
return html.replace(/(Pokémon Escarlata)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('Pokémon Púrpura')").html(function(_, html) {
return html.replace(/(Pokémon Púrpura)/g, '
$1');
});
$(".row-content:contains('Nintendo Switch')").html(function(_, html) {
return html.replace(/(Nintendo Switch)/g, 'Nintendo Switch');
});
$(".row-content:contains('My Nintendo')").html(function(_, html) {
return html.replace(/(My Nintendo)/g, 'My Nintendo');
});
$(".row-content:contains('pré-aquisição')").html(function(_, html) {
return html.replace(/(pré-aquisição)/g, '
$1');
});
$(".tox-gamepage .page-description:contains('33%')").html(function(_, html) {
return html.replace(/(33%)/g, '
$1');
});
$(".tox-gamepage .page-description:contains('50%')").html(function(_, html) {
return html.replace(/(50%)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('50%')").html(function(_, html) {
return html.replace(/(50%)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('40%')").html(function(_, html) {
return html.replace(/(40%)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('35%')").html(function(_, html) {
return html.replace(/(35%)/g, '
$1');
});
$(".tox-gamepage .page-title:contains('30%')").html(function(_, html) {
return html.replace(/(30%)/g, '
$1');
});
$('').prependTo(styleAnchorClass);
function exractURL(url) {
return encodeURI(url);
};
});
Nintendo
Holiday Gift Guide 2024
Find gifts for all kinds of gamers!
Nintendo Holiday Gift Guide 2024
Find gifts for all kinds of gamers!
It's-a me, Mario!
Discover the adventures of Mario and friends on Nintendo Switch!
Top picks for Nintendo Switch
Give the gift of games! Many of the titles here are available as physical versions or as digital download codes.
See what's in store this holiday season!
Get the party started!
Games guaranteed to get everyone going!
Presenting Pikmin!
Explore the world of Pikmin on Nintendo Switch!