Skip to content

Commit 37e1d44

Browse files
committed
Remove survey banner code
1 parent 362cb09 commit 37e1d44

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

pkg/dashboard/static/index.html

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -493,47 +493,5 @@ <h5 class="modal-title" id="ModalLabel">Session Ended</h5>
493493
<script src="static/actions.js"></script>
494494
<script src="static/scripts.js"></script>
495495

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-
538496
</body>
539497
</html>

pkg/dashboard/static/komodor-icon.png

-9.07 KB
Binary file not shown.

0 commit comments

Comments
 (0)