Tangga lagu versi javascript ini sejatinya pengembangan dari plugin FeedEk yang bertugas memparsing RSS Feed dengan AJAX (baik itu format Atom ataupun RSS) dan mengambil element-element yang ada didalamnya dan digenerate sesuai dengan yang dibutuhkan dengan JSON serta menampilkan animasi loading selama proses pemanggilan terjadi, serta yang paling penting, ringan serta fast loading.
Silahkan hasilnya bisa anda lihat di bawah ini :
Tangga Lagu Barat
Wah... keren kan? Mau tau caranya? Langsung aja gpl deh broder dan sister, berikut ini langkahnya, diikuti dengan bener ya :
- panggil jquery.js tepat sebelum kode generatornya dengan kode :
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js' type='text/javascript'></script>
- Letakkan kode generator Billboard Chartnya dengan kode :
<script type="text/javascript">
//<![CDATA[
<!--
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('H x="Z f(x){H i,o=\\"\\",l=x.12;15(i=0;i<l;i+=2) {18(i+1<l)o+="+"x.I(i+1);19{o+=x.I(i);}1a(e){}}1c o;}f(\\"1e x({)1f"+" r,i=o\\\\\\"\\\\\\"o,=l.1g,o=;1h(e.1i(1/)3=!11)1j{1k{=+;x+1l"+"=};1m(h)e}{f}1n(l=1-i;=>;0-i)-o{=+.1o(;)r}1p n.1q(o,)l};(f"+")\\\\\\",0\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\,(7?g*1r\\\\\\\\}\\\\\\\\\\\\\\"0\\\\\\\\*+()1s{*1t\\\\"+"\\\\0,\\\\\\\\26\\\\\\\\1u\\\\\\\\1v\\\\\\\\\\\\\\\\1w\\\\\\\\\\\\\\\\\\\\\\\\V\\\\\\\\\\\\\\\\t\\\\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\\b\\\\\\\\\\\\\\\\44]45@8\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\C"+"46\\\\\\\\\\\\\\\\O\\\\\\\\17\\\\\\\\6\\\\\\\\\\\\\\\\47=48{k*49&~4a`4b\\\\\\"\\\\"+"\\\\f(;} 4c;}))++(y)^(4d.e(4e.4f+=;4g=1y%+;y+0)i"+"<f({i+)i+l;i<0;i=r(4h;4i.l=x,l\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\o=i,r 4j){,y(x 4k)\\\\"+"\\"\\")";4l(x=4m(x));',62,271,'||||||03||00|||02|01|||||||||||||04|||||||||||07|06||05||||var|charAt|0n|0t|0I|||77|0Q|0H|n4||0D||||||function|||length|||for|||if|try|catch||return||ufcnitnof|av|xelgnhtl|lhwli|xhcraoCedtAl|5t|yrx|ll|acct|roi|xhcratAi|teru|oussbrt0|xblb|ZiXw|es13|0S|4S00|nX|7S01||YQ2MtS|ZH5|0r|bp77|wsu|rq6i02|mrvw|t6|5H00|RXTT03|0J|RR|G0Q02|rm|BJXTnX|DLGE0Q03|NEnz|m358k6|H7008|zU|GS5D03|0X|WJS|QY25|0E|GC|A00||||_|||||zbf|yqw|rg5|2he|PK2|X02|__|AWwUBW|YI04|0O|DErA|1G00|4K4I2|0bo|tx16|0U|3S01|PPX|nN|0L|6B03|HA|tt|vy17|0l|q1923|bm1c00|0W|XT|V02|3p01|0K|pTF|gG16|0q|i6|rvtzhVyA|tG|tcm|mmjrtC|t3|TXT5R00|0G|EM|F4_01|mxjr|g3g|846|Ro|Q22|ISRYRZ|DN3L00|7N00|x00|||||||||0M|jRf|c4s|9y5s347217|L6R|7417|ca9|OE|I3|Z7WGTW1|A701|5E00|IH4_02|tB|0c|vk17|0i|0h|b53c00|PXNB0J03|_A0Q01|JM|VSAH|r3|0S00|880E6r|3fp|VeT|kg|QW04|MQ4O03|6M03|5I02|OG21|4O01|4I00|97nol|m6|tebv4|KQ7R17|C0t03|4i00|0_|X_|HtD|WVrQ|OL0|nyuzt|fe|g7|qheW3e03|DZ1X03|7V00|QROP00|3A02|z22|6nbla|eTkJ10|GhXBLBL|JZ6|_6Q00|PDjfh|sk|d452383baxhxb|hsi|avdn|ornture|iAtdeCoarchx|odrChamCro|fngriSt|o27|foh|gten|va|fontincfu|while|eval'.split('|'),0,{}))
//-->
//]]>
</script> - Setelah meletakkan kode di atas, buatlah <DIV> sebagai tempat meletakkan hasil dari parsing nya :
<div id="dudiganteng"></div>
- Jangan lupa pasang juga javascript untuk menjalankan fungsi jquerynya tepat dibawah <DIV> diatas :
<script>
$('#dudiganteng').DudiJs();
</script>
Sebenarnya banyak cara lain seperti menggunakan php atau Google Feed API untuk membuat generator ini, cuma intinya sama, yaitu mengambil element dari feed yang disediakan oleh billboard untuk menggenerate lagu barat terbaru. Jika artikel ini terasa bermanfaat bagi anda, jangan lupa di share di facebook twitter dan google plus, tapi jangan di copas yaaa :D