summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-11-20 09:12:20 -0500
committerluxagraf <sng@luxagraf.net>2023-11-20 09:12:20 -0500
commitc0cf14a31488c5294c99eabeee38320162c76808 (patch)
tree00c1e1f002e60a8d250a33b3762b3f2479fca706
parentda500a836a753a5d7eb286aba30d2660a0a7e7fd (diff)
deals: changed deal code output
-rw-r--r--app/deals/templates/deals/deal_code.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/deals/templates/deals/deal_code.html b/app/deals/templates/deals/deal_code.html
index 2ab33e2..67ce58a 100644
--- a/app/deals/templates/deals/deal_code.html
+++ b/app/deals/templates/deals/deal_code.html
@@ -34,16 +34,20 @@ body {
</style>
</head>
<body>
+ <h4 id="title"><a id="link" href=""></a><h4>
+ <!--
<a class="button" href="#" onclick="CopyToClipboard('markdown');return false;">Copy Markdown</a>
<textarea id="markdown" style="min-width: 35rem; height: 15rem;">
</textarea>
-
+--!>
<script>
let params = new URL(document.location).searchParams;
var str = "####"+" ["+params.get("title")+"]("+params.get("url")+")\n\n+++button-group\n\n[Amazon]("+params.get("url")+" \"Amazon\"){: target=\"_blank\"}\n\n+++";
document.getElementById('markdown').value = str
+document.getElementById('title').value = params.get("title") + " for $tk ($tk off)";
+document.getElementById('link').value = params.get("url")
function CopyToClipboard(id)
{
var r = document.createRange();