Moved embed.html to handlebars-file, and fixed toast-wordbreaks

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-04 20:13:07 +01:00
parent e3469875c2
commit a34f7570cc
10 changed files with 319 additions and 263 deletions

View File

@@ -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;

View File

@@ -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;