You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.6 KiB
64 lines
2.6 KiB
{% load static %}
|
|
<!DOCTYPE html>
|
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
|
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>User Spotify Data</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="{% static 'css/dark_bg.css' %}">
|
|
<style>
|
|
.tick {
|
|
font-size: 15px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<!--[if lt IE 7]>
|
|
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
|
|
<![endif]-->
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-3" id="acoustic-column"></div>
|
|
<div class="col-md-3" id="dance-column"></div>
|
|
<div class="col-md-3" id="energy-column"></div>
|
|
<div class="col-md-3" id="instr-column"></div>
|
|
></div>
|
|
<div class="row">
|
|
<div class="col-md-3" id="loud-column"></div>
|
|
<div class="col-md-3" id="speech-column"></div>
|
|
<div class="col-md-3" id="tempo-column"></div>
|
|
<div class="col-md-3" id="valence-column"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://d3js.org/d3.v5.js"></script>
|
|
<script src="{% static "graphs/scripts/audio_feat_graph.js" %}"></script>
|
|
<script type="text/javascript">
|
|
let userSecret = "{{ user_secret }}";
|
|
drawAudioFeatGraph("acousticness", [0, 0.25, 0.5, 0.75, 1.0],
|
|
'acoustic-column', userSecret);
|
|
drawAudioFeatGraph("danceability", [0, 0.25, 0.5, 0.75, 1.0],
|
|
'dance-column', userSecret);
|
|
drawAudioFeatGraph("energy", [0, 0.25, 0.5, 0.75, 1.0],
|
|
'energy-column', userSecret);
|
|
drawAudioFeatGraph("instrumentalness", [0, 0.25, 0.5, 0.75, 1.0],
|
|
'instr-column', userSecret);
|
|
drawAudioFeatGraph("loudness", [-60, -45, -30, -15, 0],
|
|
'loud-column', userSecret);
|
|
drawAudioFeatGraph("speechiness", [0, 0.25, 0.5, 0.75, 1.0],
|
|
'speech-column', userSecret);
|
|
drawAudioFeatGraph("tempo", [0, 40, 80, 120, 160, 200],
|
|
'tempo-column', userSecret);
|
|
drawAudioFeatGraph("valence", [0, 0.25, 0.5, 0.75, 1.0],
|
|
'valence-column', userSecret);
|
|
</script>
|
|
</body>
|
|
</html>
|