Index cleanup

This commit is contained in:
konarfil
2023-09-22 12:30:23 +02:00
parent de26cdca67
commit 7e4e38cc88
7 changed files with 83 additions and 26 deletions

View File

@@ -109,7 +109,7 @@
</ul>
<div class="row" style="text-align: center; margin-top: 25px;">
<a id="sendRequestBtn" style="width: 20%" class="waves-effect waves-light btn"
href="#">Send request</a>
href="#">Authenticate</a>
</div>
</div>
</div>
@@ -119,10 +119,8 @@
</div>
</main>
<footer class="page-footer"></footer>
<script src="js/load-layout.js"></script>
<script>
$(".page-footer").load("../layout/footer.html");
$("#page-header").load("../layout/header.html");
function setCookie(name, value, minutes) {
const date = new Date();
date.setTime(date.getTime() + (minutes * 60 * 1000));

View File

@@ -88,10 +88,8 @@
</div>
</main>
<footer class="page-footer"></footer>
<script src="js/load-layout.js"></script>
<script>
$(".page-footer").load("../layout/footer.html");
$("#page-header").load("../layout/header.html");
$("#queryParams").text(window.location.search)
const urlParams = new URLSearchParams(window.location.search);

View File

@@ -100,10 +100,8 @@
</div>
</main>
<footer class="page-footer"></footer>
<script src="js/load-layout.js"></script>
<script>
$(".page-footer").load("../layout/footer.html");
$("#page-header").load("../layout/header.html");
const tokenEndpoint = 'https://sso.rumbuddy.cz/realms/OAuthPlayground/protocol/openid-connect/token';
const clientID = 'oauth-playground';
const code = new URLSearchParams(window.location.search).get('code');