mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Change DBL balloon from dismissing perm to 3 days
This commit is contained in:
parent
6bab0b1a80
commit
5f160e1b9f
@ -474,11 +474,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function displayDblAdvert() {
|
function displayDblAdvert() {
|
||||||
var hideDbl = localStorage.getItem("hideDiscordBotsOrgVoteAd") == "true";
|
var hideDblUntil = localStorage.getItem("hideDiscordBotsOrgVoteAdUntil");
|
||||||
if (hideDbl) {
|
var now = moment();
|
||||||
return;
|
var hideDblUntilMoment = null;
|
||||||
|
if (hideDblUntil) {
|
||||||
|
hideDblUntilMoment = moment(hideDblUntil);
|
||||||
|
if (hideDblUntilMoment.isValid() && hideDblUntilMoment > now) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var dblAdContents = "<i class=\"material-icons right\">close</i></span><span id=\"dblBalloon\"><h6>Loving the Titan, the Discord server widget?</h6><br>Show your appreciation <strong>by voting for Titan</strong> on <a href=\"https://discordbots.org/bot/Titan/vote\" target=\"_blank\">Discord Bot List</a> and get a <span class=\"yellow-text\">golden</span> name!";
|
var dblAdContents = "<i class=\"material-icons right\">close</i></span><span id=\"dblBalloon\"><h6>Loving the Titan, the Discord server widget?</h6><br>Show your appreciation <em>by voting for Titan daily</em> on <a href=\"https://discordbots.org/bot/Titan/vote\" target=\"_blank\">Discord Bot List</a> and get a <span class=\"yellow-text\">golden</span> name!";
|
||||||
$(".brand-logo").showBalloon({
|
$(".brand-logo").showBalloon({
|
||||||
html: true,
|
html: true,
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
@ -489,7 +494,7 @@
|
|||||||
$(".dblballoon").find("i").click(function (event) {
|
$(".dblballoon").find("i").click(function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$(".brand-logo").hideBalloon();
|
$(".brand-logo").hideBalloon();
|
||||||
localStorage.setItem("hideDiscordBotsOrgVoteAd", "true");
|
localStorage.setItem("hideDiscordBotsOrgVoteAdUntil", now.add(3, "days").toISOString());
|
||||||
}).css("cursor", "pointer");
|
}).css("cursor", "pointer");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user