diff options
-rw-r--r-- | app/gtd/templates/gtd/deal_code.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/gtd/templates/gtd/deal_code.html b/app/gtd/templates/gtd/deal_code.html index 1766145..b4df7f5 100644 --- a/app/gtd/templates/gtd/deal_code.html +++ b/app/gtd/templates/gtd/deal_code.html @@ -54,7 +54,8 @@ if params.has("price"){ } else { var price = "tk"; } -var str = "####"+" ["+params.get("title")+" for"+sale+" ("+price+" off)]("+params.get("url")+")\n\n+++button-group\n\n[REI]("+params.get("url")+" \"REI\"){: target=\"_blank\"}\n\n+++"; +let prms = new URL(document.location).searchParams; +var str = "####"+" ["+prms.get("title")+" for"+sale+" ("+price+" off)]("+prms.get("url")+")\n\n+++button-group\n\n[REI]("+prms.get("url")+" \"REI\"){: target=\"_blank\"}\n\n+++"; function setText() { var el = document.getElementById('link'); el.innerHTML = params.get("title") + " for $tk ($tk off)"; |