TeaWeb/js/main.js

27 lines
857 B
JavaScript
Raw Normal View History

2018-02-27 16:20:49 +00:00
/// <reference path="chat.ts" />
/// <reference path="client.ts" />
/// <reference path="utils/modal.ts" />
2018-03-07 18:06:52 +00:00
/// <reference path="ui/modal/ModalConnect.ts" />
2018-02-27 16:20:49 +00:00
let globalClient = new TSClient();
let chat = new ChatBox($("#chat"));
globalClient.setup();
2018-03-07 18:06:52 +00:00
//globalClient.startConnection("localhost:19974"); //TODO remove only for testing
2018-02-27 16:20:49 +00:00
let modal = 0;
$("#test").click(function () {
console.log("Executing test function");
});
//$("#test").trigger("click");
$("#test_tab").tabify();
2018-03-07 18:06:52 +00:00
//Modals.spawnConnectModal();
Modals.spawnSettingsModal();
2018-02-27 16:20:49 +00:00
/*
createErrorModal("Could not connect to remote host",() => {
let tag = $.spawn("div");
tag.append("A fatal error occurred while connecting to host:port<br/>");
tag.append("Please reload the page and try again!<br/>");
return tag;
}, {
footer: ""
}).open();
*/
//# sourceMappingURL=main.js.map