10Best

fitness

2020 10Best Readers’ Choice Travel Awards

var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })();

window.fbAsyncInit = function() { FB.init({ appId : '213816218687991', xfbml : true, version : 'v2.0' }); };

(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "https://connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));

$(document).ready(function(){

$(".slidingDiv").hide(); $(".show_hide").show();

$('.show_hide').click(function(){ $(".slidingDiv").slideToggle(); });

});

$(window).scroll(function(){ var scroll_top = $(this).scrollTop(); // get scroll position top var height_element_parent = $(".vert-social-sharing-bar").parent().outerHeight(); //get high parent element var height_element = $(".vert-social-sharing-bar").height(); //get high of elemeneto var position_fixed_max = height_element_parent - height_element; // get the maximum position of the elemen var position_fixed = scroll_top < 30 ? 30 - scroll_top : position_fixed_max > scroll_top ? 0 : position_fixed_max - scroll_top ; $(".vert-social-sharing-bar").css("top",position_fixed); });

/* ----- Begin Step 1 ----- */ //Load the APS JavaScript Library !function(a9,a,p,s,t,A,g){if(a[a9])return;function q(c,r){a[a9]._Q.push([c,r])}a[a9]={init:function() {q("i",arguments)},fetchBids:function(){q("f",arguments)},setDisplayBids:function() {},targetingKeys:function(){return[]},_Q:[]};A=p.createElement(s);A .async=!0;A.src=t;g=p.getElementsByTagName(s)[0];g.parentNode.insertBefore(A,g)} ("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js"); //Initialize the Library apstag.init({ pubID: '3090', adServer: 'googletag' }); /* ----- End Step 1 ----- */

$(function() { $(".th-slide").jCarouselLite({ btnNext: ".next", btnPrev: ".prev", scroll: 1, circular: false }); });

$(document).ready(function(){

$(".scrollToTop").hide();

//Check to see if the window is top if not then display button $(window).scroll(function(){ if ($(this).scrollTop() 100) { $('.scrollToTop').fadeIn(); } else { $('.scrollToTop').fadeOut(); } });

//Click event to scroll to top $('.scrollToTop').click(function(){ $('html, body').animate({scrollTop : 0},800); return false; });

});

Source Article

Read More