summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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'] %}