var profilesInitial = [ ['Asics Dynamis with BOA Performance Fit System', 'dynamis', 'https://www.jackrabbit.com/brands/asics/dynamis.html', 'new'], ['New Balance 1500v4 with BOA Performance Fit System', 'newbalance', 'https://www.jackrabbit.com/brands/new-balance/1500.html', 'new'], ['Mizuno Wave Rider 21 Gore-Tex', 'mizuno', 'https://www.jackrabbit.com/brands/mizuno/wave-rider/21-gore-tex.html', 'new'], ['Brooks Ghost 10 Gore-Tex', 'brooksghost', 'https://www.jackrabbit.com/brands/brooks/ghost/10-gore-tex.html', 'new'], ['Superfeet RUN Comfort Max Insoles', 'superfeetgreen', 'https://www.jackrabbit.com/brands/superfeet/unisex-superfeet-run-comfort-max-fl786204.html', 'new'], ['Women's Superfeet Blue Insole', 'superfeetblue', 'https://www.jackrabbit.com/brands/superfeet/superfeet-blue-insole-2404.html', 'new'], ['Women's Superfeet Copper Insole', 'superfeetcopper', 'https://www.jackrabbit.com/superfeet-copper-insole.html', 'new'], ['Feetures Elite Light Cushion No Show Tab Socks', 'feetureslight', 'https://www.jackrabbit.com/brands/feetures/unisex-feetures-elite-light-cushion-no-show-tab-e500407.html', 'new'], ['Feetures Elite Max Cushion No Show Tab Socks', 'feeturesmax', 'https://www.jackrabbit.com/brands/feetures/unisex-feetures-elite-max-cushion-no-show-tab-sock-ec50028.html', 'new'], ['Brooks Moving Comfort Fiona Bra', 'brooksfiona', 'https://www.jackrabbit.com/women/apparel/sports-bras/women-s-moving-comfort-fiona-350064-317.html', 'new'], ['Brooks Juno Bra', 'brooksjuno', 'https://www.jackrabbit.com/women/apparel/sports-bras/women-s-brooks-juno-350071-001.html', 'new'], ['Garmin VivoActive 3 Fitness Tracker', 'garminvivoactive', 'https://www.jackrabbit.com/accessories/unisex-garmin-vivoactive-3-fitness-tracker-010-01769-01.html', 'new'], ['Garmin Fenix 5x Sapphire Fitness Tracker', 'garminsaphire', 'https://www.jackrabbit.com/accessories/unisex-garmin-fenix-5x-saphire-010-01733-00.html', 'new'], ['GU Energy Gel', 'guenergy', 'https://www.jackrabbit.com/accessories/gu-energy-gel-packets-mandarin-orange-gel-box-24-098-1.html', 'new'], ['GU Roctane Gel', 'guroctane', 'https://www.jackrabbit.com/accessories/gu-roctane-gel.html', 'new'], ['Roll Recovery R8 Massage Roller', 'r8', 'https://www.jackrabbit.com/roll-recovery-r8-massage-roller-rr-8.html', 'new'], ['Roll Recovery R3 Foot Roller', 'r3', 'https://www.jackrabbit.com/accessories/roll-recovery-r3-foot-roller-r3-rose.html', 'new'], ['Hyperice Vyper 2.0 Massage Roller', 'vyper2', 'https://www.jackrabbit.com/accessories/unisex-wynit-hyperice-vyper-2-0-8151130.html', 'new'], ['Hyperice Hypersphere Massage Ball', 'hypersphere', 'https://www.jackrabbit.com/accessories/unisex-wynit-hyperice-hypersphere-3200001000.html', 'new'], ['Recoup Fitness Cold Massage Roller', 'recoup', 'https://www.jackrabbit.com/accessories/unisex-recoup-fitness-cold-massage-roller-rf-123.html', 'new'], ['Addaday Marble Massage Roller', 'addadaymarble', 'https://www.jackrabbit.com/accessories/unisex-addaday-marble-massage-roller-type-m-roller.html', 'new'], ['Addaday Type P Pro Roller', 'addadaytypep', 'https://www.jackrabbit.com/accessories/injury-prevention-recovery/massage-stretching/addaday-pro-massage-roller-type-p-roller.html', 'new'] ];
//console.dir(profilesInitial);
var profiles = profilesInitial.sort(function(a,b) { return Math.random() * 2-1; });
//console.dir(profiles);
var currentProfile = 0;
jQuery(document).ready(function(event) {
jQuery("div#swipe_like").on( "click", function() { swipeLike(); });
jQuery("div#swipe_dislike").on( "click", function() { swipeDislike(); });
checkStatus();
function swipe() { Draggable.create(jQuery("#the-photo"), { throwProps:true, onDragEnd:function(endX) { if(Math.round(this.endX) > 0 ) { swipeLike(); } else { swipeDislike(); } // console.log(Math.round(this.endX)); } }); }
function swipeLike() {
var $photo = jQuery("#tinder-content").find('#the-photo');
var swipe = new TimelineMax({repeat:0, yoyo:false, repeatDelay:0, onComplete:remove, onCompleteParams:[$photo]}); swipe.staggerTo($photo, 0.8, {bezier:[{left:"+=400", top:"+=300", rotation:"60"}], ease:Power1.easeInOut});
profiles[currentProfile-1][3] = 'like';
checkStatus(); }
function swipeDislike() {
var $photo = jQuery("#tinder-content").find('#the-photo');
var swipe = new TimelineMax({repeat:0, yoyo:false, repeatDelay:0, onComplete:remove, onCompleteParams:[$photo]}); swipe.staggerTo($photo, 0.8, {bezier:[{left:"+=-350", top:"+=300", rotation:"-60"}], ease:Power1.easeInOut});
profiles[currentProfile-1][3] = 'dislike';
checkStatus(); }
function checkStatus() { if (currentProfile < (profiles.length)) { nextProfile(); } else { displayMatches(); } } function remove(photo) { jQuery(photo).remove(); } function nextProfile() { var nextProfile = profiles[currentProfile]; // console.dir(nextProfile); jQuery("#tinder-content").prepend('
');
swipe();
currentProfile++; }
function displayMatches() {
jQuery("#tinder-content, #tinder-footer").hide();
jQuery("#matchmaker-start-swiping").hide();
jQuery("#matchrabbit-logo").hide();
jQuery("#matchrabbit-matches").show();
profiles.forEach(function(element) {
if (element[3] == "like") {
jQuery("#tinder-matches").append('');
}
});
}
});

Whether you’re training for a marathon, spending your mornings at the gym, or gearing up for warmer weather on the trails, there’s more to achieving your fitness evolution than just regular old running shoes (though we love those, too). For the month of love, find your perfect match with accessories and specialty footwear to give you the extra edge in recovery, comfort, endurance, and fitness tracking.
Swipe through our hot new app MatchRabbit, and see what available singles accessories and footwear catch your eye. Swipe right to save them to your matches, after which you can shop to your heart’s content. Swipe left to send them to the clearance bin.
Don’t feel like online dating? Take our quiz to be matched up with the perfect product for your fitness goals.
