javascript - What is the significance of this js code in apple “The 50 Billion Apps Countdown Promotion”? -


this promotion page: http://www.apple.com/itunes/50-billion-app-countdown/

and link js: http://www.apple.com.cn/v/itunes/50-billion-app-countdown/a/scripts/counter.js

    ac.ondomready(function() { var e = "j", t = new counter({     container: ac.element.selectall(".counter")[0],     dataurl: "/itunes/store/counters/il6ark7ec." + e + "s",     staticimagepath: "http://images.apple.com/itunes/shared/counter/images/counter_noscript.png",     targetcount: 50000000000,     stopattargetcount: true }); 

});

so splice string

var e="j"

"/itunes/store/counters/il6ark7ec." + e + "s"

to

http://www.apple.com.cn/itunes/store/counters/il6ark7ec.js

is useful? or fun..?

it's make harder looking scrape file , files linked within. naive approach through html source , download other files referenced within end css or js (probably using regular expression). string concat cause fail on particular file.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -