mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Moved embed.html to handlebars-file, and fixed toast-wordbreaks
This commit is contained in:
@@ -463,7 +463,7 @@ var Frontpage = {
|
||||
|
||||
if(!localStorage.ok_cookie){
|
||||
before_toast();
|
||||
Materialize.toast("We're using cookies to enhance your experience! <a class='waves-effect waves-light btn light-green' href='#' id='cookieok' style='cursor:pointer;pointer-events:all;'> ok</a>", 10000);
|
||||
Materialize.toast("We're using cookies to enhance your experience! <a class='waves-effect waves-light btn light-green' href='#' id='cookieok' style='cursor:pointer;pointer-events:all;margin-left:10px;'> ok</a>", 10000);
|
||||
}
|
||||
|
||||
var pad = 0;
|
||||
|
||||
@@ -491,7 +491,8 @@ $(document).on("click", "#playpause-overlay", function(){
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '#cookieok', function() {
|
||||
$(document).on('click', '#cookieok', function(e) {
|
||||
e.preventDefault();
|
||||
$(this).fadeOut(function(){
|
||||
$(this).remove();
|
||||
localStorage.ok_cookie = true;
|
||||
|
||||
Reference in New Issue
Block a user