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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -