File tree Expand file tree Collapse file tree 2 files changed +0
-42
lines changed Expand file tree Collapse file tree 2 files changed +0
-42
lines changed Original file line number Diff line number Diff line change @@ -493,47 +493,5 @@ <h5 class="modal-title" id="ModalLabel">Session Ended</h5>
493
493
< script src ="static/actions.js "> </ script >
494
494
< script src ="static/scripts.js "> </ script >
495
495
496
- <!-- BANNER START
497
- <a id="banner"
498
- href="https://helm-dashboard-survey.komodor.com/"
499
- class="display-none position-absolute top-0 start-50 translate-middle-x bg-primary text-light rounded px-2 mt-1 text-decoration-none py-1">Help
500
- shaping the future by participating in user survey <b class="bi-x-lg"></b></a>
501
- <script>
502
- function setCookie(name, value, days) {
503
- let expires = "";
504
- if (days) {
505
- const date = new Date();
506
- date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
507
- expires = "; expires=" + date.toUTCString();
508
- }
509
- document.cookie = name + "=" + (value || "") + expires + "; path=/";
510
- }
511
-
512
- function getCookie(name) {
513
- const nameEQ = name + "=";
514
- const ca = document.cookie.split(';');
515
- for (let i = 0; i < ca.length; i++) {
516
- const c = ca[i].trim();
517
- if (c.indexOf(nameEQ) === 0) {
518
- return c.substring(nameEQ.length, c.length)
519
- }
520
- }
521
- return null;
522
- }
523
-
524
- const cookie = getCookie("hideBanner");
525
- if (cookie == null) {
526
- console.log("show")
527
- $("#banner").show()
528
- }
529
-
530
- $("#banner b").click(function (evt) {
531
- evt.preventDefault()
532
- setCookie("hideBanner", "1", 365);
533
- $("#banner").hide()
534
- })
535
- </script>
536
- /BANNER END -->
537
-
538
496
</ body >
539
497
</ html >
You can’t perform that action at this time.
0 commit comments