2019-02-07 03:34:39 +05:30
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2019-09-15 15:52:43 +05:30
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
|
|
|
<meta name="application-name" content="Brawl Chat"/>
|
2019-09-15 18:02:12 +05:30
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Brawl Chat">
|
|
|
|
<meta name="description" content="A matrix chat application">
|
2019-06-16 18:51:20 +05:30
|
|
|
<link rel="stylesheet" type="text/css" href="src/ui/web/css/main.css">
|
2019-02-07 03:34:39 +05:30
|
|
|
</head>
|
|
|
|
<body>
|
2019-09-15 18:02:12 +05:30
|
|
|
<script id="phone-debug-pre" type="disabled">
|
|
|
|
window.DEBUG = true;
|
|
|
|
window.debugConsoleBuffer = "";
|
|
|
|
console.error = (...params) => {
|
|
|
|
const lastLines = "...\n" + window.debugConsoleBuffer.split("\n").slice(-10).join("\n");
|
|
|
|
// window.debugConsoleBuffer = window.debugConsoleBuffer + "ERR " + params.join(" ") + "\n";
|
|
|
|
// const location = new Error().stack.split("\n")[2];
|
|
|
|
alert(params.join(" ") +"\n...\n" + lastLines);
|
|
|
|
};
|
|
|
|
console.log = console.info = console.warn = (...params) => {
|
|
|
|
window.debugConsoleBuffer = window.debugConsoleBuffer + params.join(" ") + "\n";
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<script id="main" type="module">
|
2019-02-16 07:23:02 +05:30
|
|
|
import main from "./src/main.js";
|
2019-06-16 14:24:16 +05:30
|
|
|
main(document.body);
|
2019-02-11 01:55:29 +05:30
|
|
|
</script>
|
2019-09-15 18:02:12 +05:30
|
|
|
<script id="phone-debug-post" type="disabled">
|
|
|
|
setTimeout(() => {
|
|
|
|
const showlogs = document.getElementById("showlogs");
|
|
|
|
showlogs.addEventListener("click", () => {
|
|
|
|
const lastLines = "...\n" + window.debugConsoleBuffer.split("\n").slice(-20).join("\n");
|
|
|
|
alert(lastLines);
|
|
|
|
}, true);
|
|
|
|
showlogs.innerText = "Show last 20 log lines";
|
|
|
|
}, 5000);
|
|
|
|
</script>
|
|
|
|
<script id="service-worker" type="disabled">
|
|
|
|
if('serviceWorker' in navigator) {
|
|
|
|
navigator.serviceWorker.register('sw.js')
|
|
|
|
.then(function() { console.log("Service Worker registered"); });
|
|
|
|
}
|
|
|
|
</script>
|
2019-02-07 03:34:39 +05:30
|
|
|
</body>
|
2019-02-27 03:15:58 +05:30
|
|
|
</html>
|