diff --git a/script.html b/script.html index 302add4..69efac8 100644 --- a/script.html +++ b/script.html @@ -282,7 +282,13 @@ function render(r) { // Built from a code point so no dollar sign sits against a quote in this // file's patch text - that sequence is a substitution token to // patch_git_file and once shipped a broken page (BROWSER_TESTS.md:265). - + '
' + ' + // The price as the server computes it NOW. price_usd is stamped on the row + // when the project is created, so it goes stale the moment the markup + // constant changes - which it just did, from 5x to actual cost. + var price = (r.quote && typeof r.quote.price_usd === 'number') + ? r.quote.price_usd : Number(p.price_usd || 0); + + + '
$' + Number(price).toFixed(2) + '
' + '
' + videoSecondsOf(p) + ' seconds · ' + (p.segments || 4) + ' shots' + (modelFor(p) ? ' · ' + esc(modelFor(p).label) : '') + '
' + '
' + (canEditScript @@ -1660,7 +1666,11 @@ load(); - + Number(price).toFixed(2) + '
' + +