Clean up
This commit is contained in:
@@ -1,15 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Liederwahl</title>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="/static/landing_script.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<p><a href="" class="vote-from-existing">Abstimmen</a></p>
|
||||
<!--<p>Fange eine neue Abstimmung an<a href="">Abstimmen</a></p>-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<head>
|
||||
<title>Liederwahl</title>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var s_id = localStorage.getItem('session_id')
|
||||
|
||||
if (s_id === null) {
|
||||
s_id = window.crypto.randomUUID();
|
||||
localStorage.setItem('session_id', s_id)
|
||||
}
|
||||
|
||||
$('.vote').attr('href', 'vote?session_id=' + s_id);
|
||||
window.location.href = "/vote?session_id=" + s_id;
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<p><a href="" class="vote">Abstimmen</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,54 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Liederwahl</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/colors.css">
|
||||
<link rel="stylesheet" type="text/css" href="/static/site.css">
|
||||
<script src="https://open.spotify.com/embed/iframe-api/v1" async></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="/static/voting_script.js"></script>
|
||||
<script type="text/template" data-template="song">
|
||||
<div class="song" id="song-${id}">
|
||||
<div class="cover-container">
|
||||
<img src="${cover_image}" class="cover">
|
||||
<div class="overlay" onclick="play(${id})"><img src="/static/${play_button}.svg"></div>
|
||||
</div>
|
||||
<div class="song-title">${title}</div>
|
||||
<div class="song-artist">${artist}</div>
|
||||
<div class="categories" id="container">
|
||||
${categories}<span style="--main-color: transparent;"> </span>
|
||||
</div>
|
||||
<div class="vote-buttons">
|
||||
<div class="button button-no ${no_selected}" onmousedown="vote(${id}, -1); return false;" onclick="return false;"><img src="/static/no.svg"></div><div class="button button-neutral ${neutral_selected}" onmousedown="vote(${id}, 0)"><img src="/static/neutral.svg"></div><div class="button button-yes ${yes_selected}" onmousedown="vote(${id}, 1)"><img src="/static/yes.svg"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1 style="--main-color: #888888; ">Hallo :)</h1>
|
||||
<div class="text">Du kannst die Liederwahl jederzeit unterbrechen und zu einem späteren Zeitpunkt weitermachen.</div>
|
||||
<div id="songs"></div>
|
||||
<div id="spotify-player"><div id="spotify-embed"></div></div>
|
||||
<div id="yt-player"></div>
|
||||
<div id="close-player" onclick="stop(); return false;"><img src="/static/no.svg"></div>
|
||||
|
||||
<!--<div class="song">
|
||||
<div class="cover-container">
|
||||
<img src="{{ url_for('static', path='/cover.jpg') }}" class="cover">
|
||||
<div class="overlay"><img src="{{ url_for('static', path='/play.svg') }}"></div>
|
||||
</div>
|
||||
<div class="song-data">VoicePlay: In The Air Tonight</div>
|
||||
<div class="categories" id="container">
|
||||
<span class="cat-1">Ballade</span><span class="cat-2">< 90er Remake</span><span class="cat-3">Something else </span><span class="cat-4">Something else </span>
|
||||
</div>
|
||||
<div class="vote-buttons">
|
||||
<div class="button button-no"><img src="{{ url_for('static', path='/no.svg') }}"></div><div class="button button-neutral"><img src="{{ url_for('static', path='/neutral.svg') }}"></div><div class="button button-yes selected"><img src="{{ url_for('static', path='/yes.svg') }}"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>-->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user