PageSourceSearch

https://thefitfork.com/wp-content/plugins/amazon-auto-links/includ…/js/now-retrieving-updater.min.js?ver=7.1.2

js thefitfork.com collected 2026-09-26 10:09:12 UTC 3,029 bytes, 10 lines download raw bytes

1/* Now-Retrieving Updater 1.0.4 */
2(function($){$(document).ready(function(){if('undefined'===typeof(aalNowRetrieving)){console.log('Now-Retrieving Updater: Failed to load.');return}
3processNowRetrieving(this)});$('body').on('aal_ajax_loaded_unit',function(event){processNowRetrieving(event.target)});function processNowRetrieving(subject){var _oSpinner=$('<img class="spinner" src="'+aalNowRetrieving.spinnerURL+'" alt="'+aalNowRetrieving.label.nowLoading+'"/>');_oSpinner.css({margin:'0 0.5em','vertical-align':'middle','display':'inline-block','height':'1em'});var _aItems={};var _iCount=0;var _oSubject=$(subject);var _oElements=_oSubject.find('.now-retrieving');_oElements.find('.spinner').remove();_oElements.append(_oSpinner).each(function(index,element){var _aArguments=$(this).data();if('undefined'===typeof _aArguments.asin){return!0}
4$(this).attr('data-attempt',parseInt($(this).attr('data-attempt'))+1);_aArguments.attempt=$(this).attr('data-attempt');if(parseInt(_aArguments.attempt)>3){$(this).html('');return!0}
5var _sKey=_aArguments.asin+'|'+_aArguments.locale+'|'+_aArguments.currency+'|'+_aArguments.language;if('undefined'===typeof _aItems[_sKey]){_aItems[_sKey]={}}
6_aItems[_sKey][_aArguments.context]=_aArguments;_iCount++});if(!_iCount){return}
7$.ajax({type:"post",dataType:'json',url:aalNowRetrieving.ajaxURL,data:{action:aalNowRetrieving.actionHookSuffix,aal_nonce:aalNowRetrieving.nonce,items:_aItems},success:function(response){if(response.success){$.each(response.result,function(iIndex,aItem){var _oElement=_oSubject.find('.now-retrieving'+'[data-asin='+aItem.asin+']'+'[data-context='+aItem.context+']'+'[data-locale='+aItem.locale+']'+'[data-currency='+aItem.currency+']'+'[data-language='+aItem.language+']'+'[data-tag='+aItem.tag+']');if('undefined'===typeof aItem.output||!aItem.set){return!0}
8var _oOutput=$(aItem.output);if(_oOutput.find('.now-retrieving').length){return!0}
9var _oOutput2=_oOutput.clone();_oOutput.css({'position':'relative','left':-99999,'top':-99999,'float':'left','display':'block',}).appendTo(_oElement.parent());_oElement.removeClass('now-retrieving');setTimeout(function(){var _iHeight='undefined'!==typeof _oOutput[0]&&'undefined'!==typeof _oOutput[0].offsetHeight?_oOutput[0].offsetHeight:0;_oOutput.remove();_oElement.wrap('<div></div>');_oElement.parent().css({'min-height':_iHeight+'px',});_oOutput2.css({'opacity':'0'});_oElement.replaceWith(_oOutput2);_oOutput2.unwrap();_oOutput2.animate({'opacity':'1'})},1000)})}else{}},error:function(response){},complete:function(){_oSpinner.remove();setTimeout(function(){processNowRetrieving(subject)},3000)}})}
10$.fn.replace_html=function(html){return this.each(function(){var el=$(this);el.stop(!0,!0,!1);var finish={width:this.style.width,height:this.style.height};var cur={width:el.width()+"px",height:el.height()+"px"};var _oElement=$(html).hide();el.html(_oElement);var next={width:el.width()+"px",height:el.height()+"px"};el.css(cur).animate(next,1000,function(){el.css(finish)});_oElement.fadeIn('slow')})}}(jQuery))

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.