Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Initialization */
- var lastfm, cache;
- var App = (function(lng, undefined) {
- lng.App.init({
- name: "TunaPlayer",
- version: "0.1"
- });
- cache = new LastFMCache();
- lastfm = new LastFM({
- // apiKey: "4f486bdc13ee1905eb54f07b73e207b3",
- apiKey: "4f486bdc13ee1905eb54f07b73e207b",
- apiSecret: "5b3b5e19edadcc1e0e6c0bdd16dd4b35",
- cache: cache
- });
- return {};
- })(LUNGO);
- App.SpinnerConfiguration = {
- lines: 13,
- length: 7,
- width: 3,
- radius: 5,
- rotate: 0,
- color: '#1C1C1C',
- speed: 0.7,
- trail: 50,
- shadow: false,
- hwaccel: true,
- className: 'spinner',
- zIndex: 2e9,
- top: 'auto',
- left: 'auto'
- };
- App.Events = (function(lng, undefined){
- var activate = function (lng, href) {
- lng.dom("a[href='" + href + "']").addClass("current");
- };
- lng.dom("a[href='#libraryLocalCharts']").tap(function(event){
- activate(lng, "#library");
- });
- lng.dom("a[href='#libraryCustomList']").tap(function(event){
- activate(lng, "#library");
- var spinner = new Spinner(App.SpinnerConfiguration).spin($$("span.loading")[0]);
- console.log(spinner);
- });
- /* lng.dom("a[data-toload='hypedtracks']").tap(function(event){
- lastfm.chart.getHypedTracks(
- {
- page: 0,
- limit: 20,
- }, {},
- {
- success: function (data) {
- console.log(data);
- },
- error: function (code, msg) {
- // alert(errorMsg["loading"]);
- // lng.Router.back();
- }
- });
- });*/
- })(LUNGO);
Add Comment
Please, Sign In to add comment