summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();