/*** Pandora API ***/ Ox.load('UI', { hideScreen: false, showScreen: true, theme: 'classic' }, function() { var app = new Ox.App({ apiURL: '/api/', init: 'init', }).bindEvent('load', function(data) { app.site = data.site; app.user = data.user; app.site.default_info = '
')
.html(app.actions[id].doc.replace('/\n/
\n/g'))
.appendTo(info);
var $code = $('')
.html(app.actions[id].code[1].replace('/\n/
\n/g'))
.hide();
/*
var $button = Ox.Button({
type: "image",
options: [
{id: "one", title: "right"},
{id: "two", title: "down"},
],
})
.addClass("margin")
.click(function() { $code.toggle()})
.appendTo(info);
*/
var f = app.actions[id].code[0];
$('')
.html(' View Source ('+f+')')
.click(function() { $code.toggle()})
.appendTo(info)
$('').append($code).appendTo(info)
hljs.highlightBlock($code[0], ' ');
hash += id + ','
});
else
info.html(app.site.default_info);
document.location.hash = hash.substring(0, hash.length-1);
app.$ui.actionInfo.html(info);
}
});
}
});