admin: introducing new page

This commit is contained in:
nemunaire 2018-02-16 11:42:41 +01:00
commit 185262b2e7
3 changed files with 49 additions and 0 deletions

17
static/js/youp0m-admin.js Normal file
View file

@ -0,0 +1,17 @@
api_url = "/api/next/";
img_url = "/images/next/";
function admin_ctrl(figure) {
var menu = document.createElement("ul");
var item = document.createElement("li", "test");
menu.appendChild(item);
figure.appendChild(menu)
}
function sync() {
path = window.location.pathname.replace(/.*\/([^\/]*)/, "$1");
if (path == "" || path == "all")
show_mozaic(admin_ctrl);
else
show_picture(path);
}