ShoeFinder
WEARING
THE RIGHT SHOE
MATTERS.
THE RIGHT SHOE
MATTERS.
Get matched with the right golf shoe for your specific playing style and preferences, and improve your on-course comfort with a few short questions.
' + recommender.$t('select-all-none') + '
'
);
$('.recommender').find('.slug-question-importance .question-title-text').append(
'' + recommender.$t('select-two') + '
' +
'' + recommender.$t('select-two') + '
' +
'' + recommender.$t('select-two-continue-action') + '
' +
'' + recommender.$t('select-two-continue-action') + '
'
);
$('.recommender').find('.slug-question-importance .question').append(recommender.$t('continue-action'));
// If there is a saved history state, replay it.
setTimeout(function () {
var savedHistory;
if (window.history && window.history.pushState && window.history.state) {
if (window.history.state.recommenderHistory) {
savedHistory = window.history.state.recommenderHistory;
window.history.replaceState({}, document.title);
}
}
if (savedHistory) {
replaying = true;
$('.recommender-main').show();
recommender.replay(savedHistory);
}
});
},
replayComplete: function () {
replaying = false;
$('.recommender-title').fadeOut();
$('html, body').animate({
scrollTop: 0
}, 400);
},
pageAnimation: function (options) {
if (replaying) {
options.from.hide();
options.to.show();
if (options.to.is('.question-group-results')) {
var height = options.to.show().get(0).scrollHeight;
$('.recommender-container').css({
'min-height': height
});
}
return;
}
if (options.from) {
if (options.from.is('.question-group-results')) {
// Animates between full-page recommender page and full-height recommendations page.
// ... when leaving recommendations page.
var height = $('.recommender-container').outerHeight();
$('.recommender-container').css({
'min-height': 0
});
var newHeight = $('.recommender-container').outerHeight();
$('.recommender-container').css({
'min-height': height
}).animate({
'min-height': newHeight
}, function () {
$('.recommender-container').css({
'min-height': ''
});
});
}
options.from.fadeOut();
}
if (options.to) {
if (options.to.is('.question-group-results')) {
// Animates between full-page recommender page and full-height recommendations page.
// ... when entering the results page.
var height = options.to.show().get(0).scrollHeight;
$('.recommender-container').css({
'min-height': $('.recommender-container').height()
}).animate({
'min-height': height
});
}
options.to.hide().fadeIn();
}
return true;
},
enterPage: function (options) {
// Clear questions to allow autoadvance again.
recommender.undoQuestions(options.page.find('.question'));
if (options.page.is('.slug-page-playerprofile')) {
// Clear interstitial page to enable the button again.
}
if (options.page.is('.slug-page-shoeprofile')) {
// Clear interstitial page to enable the button again.
}
if (options.page.is('.slug-page-pain')) {
// Clear all questions...
options.page.find('.slug-choice-none').find('input').trigger('click').trigger('change');
}
},
afterUpdateFactor: function (o) {
if (o.answerSlug === 'choice-womens'){
lastGender = 'W';
// https://www.footjoy.com/on/demandware.store/Sites-footjoy-Site/en_US/Search-Show?cgid=shoes-women
shopAllLink = "https://www.footjoy.fr/fr_FR/femme/chaussures/";
}
if (o.answerSlug === 'choice-junior'){
lastGender = 'M';
shopAllLink = "https://www.footjoy.fr/fr_FR/junior/juniors-2/";
}
if (o.answerSlug === 'choice-mens') {
lastGender = 'M';
shopAllLink = "https://www.footjoy.fr/fr_FR/homme/chaussures/";
}
},
afterActivateQuestion: function (o) {
updatePainQuestion(o);
updateImportanceQuestion(o);
},
afterDeactivateQuestion: function (o) {
updatePainQuestion(o);
updateImportanceQuestion(o);
},
beforeRetrieveRecommendations: function (o) {
if (o.pageIndex '
+ recommender.$t('we-recommend') + ' —