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
Post a Comment