import * as API from './api.js'; import * as UI from './ui.js'; var xClickCallback; export class foxMenu { static drawMenu(click_callback) { xClickCallback=click_callback; let items=API.session.getMenu(); items.xlogout={ title: { en: "Logout", ru: "Завершить сеанс" }, href: "logout" }; foxMenu.drawMenuNode(items,$("#menu_base_1")); foxMenu.menuClose(); } static drawMenuNode(items,ref,deep,lang, xmodkey) { if (lang==undefined) { lang=API.session.getLang();} if (deep==undefined) { deep=0; } let xref=$("