Update favicon and service worker html
This commit is contained in:
parent
4293ea320d
commit
d781b2eb91
13 changed files with 40 additions and 40 deletions
24
front/dist/resources/service-worker.html
vendored
24
front/dist/resources/service-worker.html
vendored
|
@ -48,15 +48,33 @@
|
|||
width: 307px;
|
||||
font-size: 20px;
|
||||
}
|
||||
body p:nth-child(2){
|
||||
top: calc( 50% + 50px);
|
||||
left: calc( 50% - 150px);
|
||||
}
|
||||
body p:nth-child(3){
|
||||
top: calc( 50% + 100px);
|
||||
left: 0;
|
||||
font-size: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img src="/static/images/logo.png" alt="WorkAdventure logo"/>
|
||||
<p>Charging your workspace ...</p>
|
||||
<p id="roomId"></p>
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
window.location = localStorage.getItem('lastRoomUrl');
|
||||
}, 4000);
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
//TODO when the user will be connected, get all rooms of the user and he could be select room access
|
||||
|
||||
let paragraph = document.getElementById('roomId');
|
||||
paragraph.innerText = localStorage.getItem('lastRoomUrl');
|
||||
//the event occurred
|
||||
setTimeout(() => {
|
||||
window.location = localStorage.getItem('lastRoomUrl');
|
||||
}, 3000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue