mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Not showing card-reveal when list has no description
This commit is contained in:
@@ -110,12 +110,12 @@ var Frontpage = {
|
||||
card.querySelector(".chan-bg").setAttribute("style", img);
|
||||
card.querySelector(".chan-link").setAttribute("href", chan + "/");
|
||||
|
||||
if(description != "" && description != undefined && !Helper.mobilecheck()) {
|
||||
if(description != "" && description != undefined && !Helper.mobilecheck() && description != "This list has no description") {
|
||||
card.querySelector(".card-title").innerText = chan;
|
||||
card.querySelector(".description_text").innerText = description;
|
||||
description = "";
|
||||
} else {
|
||||
//card.querySelector(".card-reveal").remove();
|
||||
card.querySelector(".card-reveal").remove();
|
||||
Helper.removeClass(card.querySelector(".card"), "sticky-action")
|
||||
}
|
||||
|
||||
|
||||
@@ -775,6 +775,7 @@ document.addEventListener("click", function(event) {
|
||||
document.addEventListener("mouseleave", function(event) {
|
||||
if(event.target.className == "card sticky-action") {
|
||||
var that = event.target;
|
||||
if(that.querySelector(".card-reveal") == null) return;
|
||||
that.querySelector(".card-reveal").setAttribute("style", "display: block;transform: translateY(0%);");
|
||||
clearTimeout(image_timeout);
|
||||
image_timeout = setTimeout(function(){
|
||||
@@ -786,6 +787,7 @@ document.addEventListener("mouseleave", function(event) {
|
||||
document.addEventListener("mouseenter", function(event) {
|
||||
if(event.target.className == "card sticky-action") {
|
||||
var that = event.target;
|
||||
if(that.querySelector(".card-reveal") == null) return;
|
||||
that.querySelector(".card-reveal").setAttribute("style", "display: block;");
|
||||
clearTimeout(image_timeout);
|
||||
image_timeout = setTimeout(function(){
|
||||
|
||||
Reference in New Issue
Block a user