From 1fe97c7195f95a7517cff13ee0b926ccf23006ae Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Thu, 18 Jul 2024 11:50:57 -0500 Subject: [PATCH] Add Dave's Ramen begging toast. --- .../src/node_manager/js_build/src/toasts/sponsor_us.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rust/lqosd/src/node_manager/js_build/src/toasts/sponsor_us.js b/src/rust/lqosd/src/node_manager/js_build/src/toasts/sponsor_us.js index ebe933a9..ba183fbb 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/toasts/sponsor_us.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/toasts/sponsor_us.js @@ -6,7 +6,7 @@ export function sponsorTag(parentId) { //console.log(data); if (data.action !== "GoodToGo") { let div = document.createElement("div"); - let random = Math.floor(Math.random() * 4) + 1; + let random = Math.floor(Math.random() * 5) + 1; if (random === 1) { let html = "We love working on LibreQoS to make the Internet better. If you love it too, please "; html += sponsorBtn; @@ -28,6 +28,11 @@ export function sponsorTag(parentId) { html += sponsorBtn; html += ". By the way, we'll stop asking if you sign up for LTS (Long-Term Stats)."; 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"); let parent = document.getElementById(parentId);