Add Dave's Ramen begging toast.

This commit is contained in:
Herbert Wolverson 2024-07-18 11:50:57 -05:00
parent 685b65787d
commit 1fe97c7195

View File

@ -6,7 +6,7 @@ export function sponsorTag(parentId) {
//console.log(data); //console.log(data);
if (data.action !== "GoodToGo") { if (data.action !== "GoodToGo") {
let div = document.createElement("div"); let div = document.createElement("div");
let random = Math.floor(Math.random() * 4) + 1; let random = Math.floor(Math.random() * 5) + 1;
if (random === 1) { if (random === 1) {
let html = "We love working on LibreQoS to make the Internet better. If you love it too, please "; let html = "We love working on LibreQoS to make the Internet better. If you love it too, please ";
html += sponsorBtn; html += sponsorBtn;
@ -28,6 +28,11 @@ export function sponsorTag(parentId) {
html += sponsorBtn; html += sponsorBtn;
html += ". By the way, we'll stop asking if you sign up for LTS (Long-Term Stats)."; html += ". By the way, we'll stop asking if you sign up for LTS (Long-Term Stats).";
div.innerHTML = html; div.innerHTML = html;
} else if (random === 5) {
let html = "$150 will keep a developer in Ramen for a month! ";
html += sponsorBtn;
html += ". By the way, we'll stop asking if you sign up for LTS (Long-Term Stats).";
div.innerHTML = html;
} }
div.classList.add("alert", "alert-warning"); div.classList.add("alert", "alert-warning");
let parent = document.getElementById(parentId); let parent = document.getElementById(parentId);