Your download should begin automatically. Or click here to download it manually.' +'' +'' +'' +'' +'';html = html.replace(/image/g, o.image).replace(/headline/g, o.headline).replace(/description/g, o.description).replace(/button_text/g, o.button_text);$(this).addClass(o.product_code);$(this).html(html);});$(".digidownload_email").off('keyup').on('keyup', function(e) if (e.keyCode==13) dj.submitDigiDownload(this);return false;);}dj.submitDigiDownload = function(elem) var parent = $(elem).closest(".digi-download");var o = ;o.action = '/process/digital_download.php';o.email = $(parent).find(".digidownload_email").val();o.productCode = $(parent).attr("data-product-code");o.tid = dj.tid;o.page = window.location.href;$.post(o.action, o, function(data) if (data.success) $(parent).find(".form").hide();$(parent).find(".error").hide();$(parent).find(".success").show();$(parent).find(".manual_download").attr("href", data.downloadUrl);window.location.href = data.downloadUrl;//log to Facebookfbq("track", "Lead");else $(parent).find(".form").show();$(parent).find(".error").html(data.error_msg).slideDown(200);$(parent).find(".success").hide(););dj.initScrollToLinks = function() $('a:not([href="#"])').each(function() var href = $(this).attr("href");if (typeof href !== 'undefined' && href.indexOf("#")==0) $(this).on("click", function() dj.scrollToElem('a[name=' + href.replace('#', '') + ']', function() // window.location.hash = href.replace('#', ''););return false;););dj.scrollToElem = function(elem, callback) if (typeof elem === 'string') elem = $(elem);var nav = $(".nav-primary");var nav_is_fixed = (( nav.css("position")=="fixed" ) ? true : false);var nav_top = ((typeof $('.nav-primary').css("top") !== 'undefined') ? parseInt($('.nav-primary').css("top").replace("px","")) : 0);var offset = ((nav_is_fixed) ? nav.height() + nav_top : 0);$('html, body').animate(scrollTop: ($(elem).offset().top - offset) , 600, function() if (typeof callback === 'function') callback(); );/* ARTICLE AUDIO */dj.initTextToSpeech = function() // var dev = dj.getQueryStringValue('dev');// if (dev!='true') return;var o = ;o.page_url = ' + window.location.host + window.location.pathname;$.post('/process/get_text_to_speech.php', o, function(data) // console.log(data);if (data.response.success) var tts = data.response.response;var tts_id = 'video_' + Math.random().toString().replace('.','');var html = '' +'' +'' +'' +'' +'' +'New!' +'Listen to this article' +'' +'' +'' +'New!' +'Now playing this article' +'' +'' +'' +'' +'' +'' +'' +'';$('.entry-content .swp_social_panel:first-child').after(html);dj.getAudioPlayer(););dj.text_to_audio_interval = '';dj.toggleTextToSpeech = function(elem, action) var parent = $(elem).closest('.text-to-speech');switch(action) case 'play':$(parent).addClass('playing');dj.text_to_audio_interval = setInterval(function() var video_id = $('#audio_player').find('video').attr("id");var v = document.getElementById(video_id);if (v.paused) // clearInterval(dj.text_to_audio_interval);$(parent).removeClass('playing');else $(parent).addClass('playing');if ( !$('#audio_player').hasClass('active') ) clearInterval(dj.text_to_audio_interval);, 100);break;case 'pause':ap.audioPlayer.togglePlay();$(parent).removeClass('playing');break;dj.submitUpDownVote = function(feature, vote, elem) var o = ;o.feature = feature;o.vote = vote;o.page_url = ' + window.location.host + window.location.pathname;$.post('/process/submit_updown_vote.php', o, function(data) //update comment overlay dj.updateCommentOverlay(data, 'Want to tell us what you ' + ((o.vote=='up') ? 'liked' : 'didn\'t like') + ' about this feature?'););$(elem).addClass("selected");$(elem).closest(".feedback").addClass("locked");dj.showUpDownVoteOverlay();dj.update_comment_overlay_attempts = 0;dj.updateCommentOverlay = function(data, h2) {if (dj.update_comment_overlay_attempts > 100) return;if ($('.up-down-comment').length
the olympic promise book download
2ff7e9595c
Comments