summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2017-10-03 17:57:28 +0200
committerAndré Glüpker <git@wgmd.de>2017-10-03 18:04:52 +0200
commit507775792ac40d11557a8be3bfaa1c27902a180c (patch)
treeac7bc977825a7f0e5f7afa783183a18fb784087c /templates
parentbe6cceee32ea03815ade73b0faee680e5d8795c8 (diff)
downloadsteam-507775792ac40d11557a8be3bfaa1c27902a180c.tar.gz
steam-507775792ac40d11557a8be3bfaa1c27902a180c.tar.bz2
steam-507775792ac40d11557a8be3bfaa1c27902a180c.zip
Copy to clipboard without popup :)
Diffstat (limited to 'templates')
-rw-r--r--templates/lobby_html.jinja6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/lobby_html.jinja b/templates/lobby_html.jinja
index fcf440b..c1d7fac 100644
--- a/templates/lobby_html.jinja
+++ b/templates/lobby_html.jinja
@@ -2,7 +2,7 @@
<title>CS:GO Lobbylinkfinder</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="static/style.css" />
- <script src="static/hide.js"></script>
+ <script src="static/misc.js"></script>
</head>
<body>
@@ -47,7 +47,7 @@
{% if profile['lobbysteamid'] %}
<div class="buttons">
<a href="steam://joinlobby/{{ profile['gameid'] }}/{{ profile['lobbysteamid'] }}/{{ profile['steamid'] }}" class="joinbutton">Join lobby</a>
- <a href="#" onclick="javascript:window.prompt('Lobbylink', '[url]steam://joinlobby/{{ profile['gameid'] }}/{{ profile['lobbysteamid'] }}/{{ profile['steamid'] }}[/url]'); return false;" class="joinbutton">Copy link</a>
+ <a href="#" onclick="javascript:copyToClipboard('[url]steam://joinlobby/{{ profile['gameid'] }}/{{ profile['lobbysteamid'] }}/{{ profile['steamid'] }}[/url]'); return false;" class="joinbutton">Copy link</a>
</div>
{% elif profile['gameserverip'] %}
{# playing on a server, got info? #}
@@ -67,7 +67,7 @@
{% endif %}
<div class="buttons">
<a href="steam://connect/{{ profile['gameserverip'] }}" class="joinbutton">Connect</a>
- <a href="#" onclick="javascript:window.prompt('Lobbylink', '[url]steam://connect/{{ profile['gameserverip'] }}[/url]'); return false;" class="joinbutton">Copy link</a>
+ <a href="#" onclick="javascript:copyToClipboard('[url]steam://connect/{{ profile['gameserverip'] }}[/url]'); return false;" class="joinbutton">Copy link</a>
</div>
{% endif %}
{% elif profile['gameextrainfo'] %}