2022-06-23 22:21:01 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>BigBlueButton</title>
|
2022-08-25 21:00:29 +08:00
|
|
|
<style>
|
|
|
|
.error-div {
|
|
|
|
background-color: #f2dede;
|
|
|
|
padding: 15px;
|
|
|
|
border-radius: 10px;
|
|
|
|
border-color: #ebccd1;
|
|
|
|
}
|
|
|
|
.error-div-title {
|
|
|
|
font-size: 25px;
|
|
|
|
}
|
|
|
|
.error-message {
|
|
|
|
color: #a94442;
|
|
|
|
font-size: 15px;
|
|
|
|
margin-top: 2px 0 0 0;
|
|
|
|
}
|
|
|
|
</style>
|
2022-06-23 22:21:01 +08:00
|
|
|
</head>
|
|
|
|
<body style="margin:0">
|
|
|
|
<div style="display: flex; height: 100vh; margin: 0; flex-direction: column; align-items: center; justify-content: center;">
|
2022-08-25 21:00:29 +08:00
|
|
|
<h1 id="welcome-message">Welcome to BigBlueButton!</h1>
|
2022-06-23 22:21:01 +08:00
|
|
|
</div>
|
|
|
|
</body>
|
2022-08-25 21:00:29 +08:00
|
|
|
<script>
|
|
|
|
const ERRORS_QUERY_LABLE = "errors"
|
|
|
|
const queryString = decodeURI(window.location.search).slice(1);
|
|
|
|
const positionError = queryString.indexOf(ERRORS_QUERY_LABLE);
|
|
|
|
let jsonString;
|
|
|
|
if (positionError !== -1) {
|
|
|
|
jsonString = JSON.parse(queryString.slice(positionError + ERRORS_QUERY_LABLE.length + 1));
|
|
|
|
const welcomeMessage = document.querySelector('#welcome-message');
|
|
|
|
const errorContainer = document.createElement('div');
|
|
|
|
errorContainer.classList.add("error-div");
|
|
|
|
welcomeMessage.before(errorContainer);
|
|
|
|
|
|
|
|
for (i in jsonString) {
|
|
|
|
const newError = document.createElement('p')
|
|
|
|
newError.classList.add("error-message");
|
|
|
|
newError.innerHTML = "<b>Error</b>: " + jsonString[i].message;
|
|
|
|
errorContainer.appendChild(newError);
|
|
|
|
}
|
|
|
|
|
|
|
|
welcomeMessage.remove();
|
|
|
|
|
|
|
|
const bigBlueButton = document.createElement('h1');
|
|
|
|
bigBlueButton.innerHTML = "BigBlueButton";
|
|
|
|
errorContainer.before(bigBlueButton);
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
2022-06-23 22:21:01 +08:00
|
|
|
</html>
|