18 lines
420 B
JavaScript
18 lines
420 B
JavaScript
|
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);
|
||
|
}
|