/*** Pandora API ***/ var app = new Ox.App({ apiURL: '/api/', init: 'init', }).launch(function(data) { app.config = data.config; app.user = data.user; if (app.user.group == 'guest') { app.user = data.config.user; $.browser.safari && Ox.theme('modern'); } app.config.default_info = '
').html(app.actions[k].doc.replace('/\n/
\n/g'))); var $code = $('').html(app.actions[k].code.replace('/\n/
\n/g')) .hide(); var $button = new Ox.Button({ title: [ {id: "one", title: "expand"}, {id: "two", title: "collapse"}, ], type: "image" }) .addClass("margin") .click(function() { $code.toggle()}) .appendTo(info) $('').html(' View Python Source').appendTo(info) $code.appendTo(info) hash += k + ',' }); else info.html(app.config.default_info); document.location.hash = hash.substring(0, hash.length-1); app.$ui.actionInfo.html(info); } }); }