pidgin/nest

do not provide support... pkgin
S-P/added-pkgin-for-macos-1587338026022
2020-04-19, S P
2e6c253a634e
do not provide support... pkgin
{{ if (and .Site.Params.notificationMessage .Site.Params.notificationCode)}}
<script src="/js/js.cookie.min.js"></script>
<div id="notification-stage">
<div class="alert-bar notification-bar">
<i class="fas fa-exclamation"></i>
<div class="alert-bar-close-button"><i class="fas fa-times"></i></div>
<span>{{ .Site.Params.notificationMessage | safeHTML }}</span>
</div>
</div>
<script>
try {
var code = "{{ .Site.Params.notificationCode }}";
} catch (e) {
console.error("Error with cookie code", e);
}
if (code && code !== Cookies.get("hide-notification")) {
var bar = $(".notification-bar");
$(".padding.highlightable").prepend(bar);
$(".alert-bar-close-button").on("click", function(elem) {
Cookies.set("hide-notification", code);
bar.detach();
});
}
</script>
<style>
#notification-stage {
display: none;
}
.alert-bar {
font-weight: bold;
padding: 20px;
background-color: #4caf50;
color: white;
margin-bottom: 15px;
}
.alert-bar a {
color: darkgreen;
}
.alert-bar a:hover {
color: black;
}
.alert-bar-close-button {
margin-left: 15px;
color: white;
font-weight: bold;
float: right;
font-size: 22px;
line-height: 20px;
cursor: pointer;
transition: 0.3s;
}
.alert-bar-close-button:hover {
color: black;
}
</style>
{{ end }}