Spaces:
Running
Running
Sync from braiain.com
Browse files- braiain.js +2 -2
braiain.js
CHANGED
|
@@ -470,11 +470,11 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
| 470 |
BRAIAIN.getJSON("data/sponsor.json").then(function (sp) {
|
| 471 |
var c = sp && sp.current, bar = document.createElement("div");
|
| 472 |
bar.className = "sponsor-bar"; bar.setAttribute("role", "note"); bar.setAttribute("aria-label", "Title sponsor");
|
| 473 |
-
var next = c ? (c.cents + (sp.step_cents || 100)) : (sp.open_cents ||
|
| 474 |
bar.innerHTML = '<div class="wrap">' + (c
|
| 475 |
? 'brAIAIn is presented by <b>' + esc(c.name) + '</b>' + (c.line ? ': ' + esc(c.line) : '')
|
| 476 |
: 'brAIAIn is presented by <b>nobody</b>. The title sponsorship is available.') +
|
| 477 |
-
' <a href="/sponsor.html">' + (c ? 'Outbid them for $' + (next / 100).toFixed(next % 100 ? 2 : 0) : 'Opening bid $' + (next / 100).toFixed(0)) + '</a></div>';
|
| 478 |
top.parentNode.insertBefore(bar, top.nextSibling);
|
| 479 |
}).catch(function () {});
|
| 480 |
});
|
|
|
|
| 470 |
BRAIAIN.getJSON("data/sponsor.json").then(function (sp) {
|
| 471 |
var c = sp && sp.current, bar = document.createElement("div");
|
| 472 |
bar.className = "sponsor-bar"; bar.setAttribute("role", "note"); bar.setAttribute("aria-label", "Title sponsor");
|
| 473 |
+
var next = c ? (c.cents + (sp.step_cents || 100)) : (sp.open_cents || 199);
|
| 474 |
bar.innerHTML = '<div class="wrap">' + (c
|
| 475 |
? 'brAIAIn is presented by <b>' + esc(c.name) + '</b>' + (c.line ? ': ' + esc(c.line) : '')
|
| 476 |
: 'brAIAIn is presented by <b>nobody</b>. The title sponsorship is available.') +
|
| 477 |
+
' <a href="/sponsor.html">' + (c ? 'Outbid them for $' + (next / 100).toFixed(next % 100 ? 2 : 0) : 'Opening bid $' + (next / 100).toFixed(next % 100 ? 2 : 0)) + '</a></div>';
|
| 478 |
top.parentNode.insertBefore(bar, top.nextSibling);
|
| 479 |
}).catch(function () {});
|
| 480 |
});
|