Skip to content

Commit

Permalink
Remove survey banner code
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Mar 7, 2023
1 parent 362cb09 commit 37e1d44
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions pkg/dashboard/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -493,47 +493,5 @@ <h5 class="modal-title" id="ModalLabel">Session Ended</h5>
<script src="static/actions.js"></script>
<script src="static/scripts.js"></script>

<!-- BANNER START
<a id="banner"
href="https://helm-dashboard-survey.komodor.com/"
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
shaping the future by participating in user survey <b class="bi-x-lg"></b></a>
<script>
function setCookie(name, value, days) {
let expires = "";
if (days) {
const date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function getCookie(name) {
const nameEQ = name + "=";
const ca = document.cookie.split(';');
for (let i = 0; i < ca.length; i++) {
const c = ca[i].trim();
if (c.indexOf(nameEQ) === 0) {
return c.substring(nameEQ.length, c.length)
}
}
return null;
}
const cookie = getCookie("hideBanner");
if (cookie == null) {
console.log("show")
$("#banner").show()
}
$("#banner b").click(function (evt) {
evt.preventDefault()
setCookie("hideBanner", "1", 365);
$("#banner").hide()
})
</script>
/BANNER END -->

</body>
</html>
Binary file removed pkg/dashboard/static/komodor-icon.png
Binary file not shown.

0 comments on commit 37e1d44

Please sign in to comment.