-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html
101 lines (92 loc) · 3.27 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Discogs Embed - examples</title>
<meta name="description" content="Discogs Embed - examples">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Merriweather:300italic,300,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="dist/discogs-embed-deps.min.css">
<style type="text/css">
body{
-webkit-font-smoothing: antialiased;
font-family: Merriweather,Georgia,serif;
}
h1,h2,h3{
font-family: 'Roboto Slab','Helvetica Neue',sans-serif;
font-weight: 700;
}
h1{
margin: 50px 0;
}
.main{
max-width: 700px;
}
[data-discogs-embed]{
min-height:239px;
}
[data-discogs-embed].loading{
background-color:#eee;
position: relative;
}
[data-discogs-embed].loading:after{
content: 'Loading...';
font-style: italic;
font-size: 1.2em;
line-height:239px;
text-align:center;
width:100%;
position:absolute;
top: 0;
}
[data-discogs-embed].error{
background-color:#fee;
}
.discogs-embed .duration{
font-family: 'Roboto Slab','Helvetica Neue',sans-serif;
}
footer{
margin-bottom:50px;
}
</style>
</head>
<body>
<div class="container-fluid main">
<h1>Discog Embed - examples</h1>
<p>Here you can see some examples of embedded widgets, via following syntax:</p>
<pre><code><div data-discogs-embed data-release-type="releases" data-id=":release_id"></div></code></pre>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="822359"></div>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="421057"></div>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="390514"></div>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="84926"></div>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="36132"></div>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="1990898"></div>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="435446"></div>
<hr>
<div data-discogs-embed data-release-type="releases" data-id="626395"></div>
<hr>
<footer>
2014 - <a href="https://github.com/moonwave99/discogs-embed">discogs-embed</a> was made with ❤ at <a href="http://www.diegocaponera.com">MWLabs</a>.
</footer>
</div>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="assets/js/bower_vendor.js"></script>
<script src="dist/discogs-embed.min.js"></script>
<script>
$(function(){
$('[data-discogs-embed]').each(function(index, element){
// throttles calls to discogs API to 1 call/s at most - you can better lazy load the widgets, as soon as they reach the viewport.
setTimeout(function(){ $(element).discogs() }, 1100 * index);
});
});
</script>
</html>