-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (81 loc) · 2.18 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Guild Roster</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Styles -->
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="jquery.roster.css">
<style>
body {font-family: 'Ubuntu', sans-serif;}
h1 small {color: #bbb;}
code {border-left: 5px solid #aaa; padding: 10px; width: 650px; background: #f6f6f6; display: block;}
/* extra styles */
#roster.table table {width: 700px}
</style>
</head>
<body>
<header>
<h1>
Guild Roster
<small>List your World of Warcraft guild data with jQuery</small>
</h1>
</header>
<section>
<h3>Demo</h3>
<!-- DEMO -->
<div class="roster-wrap"></div>
<!-- /DEMO -->
<h3>How to use</h3>
<p>Include the script, stylesheet and jQuery then use the following options.</p>
<pre></pre><code><script src="<strong>//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js</strong>"></script>
<script src="<strong>jquery.roster.min.js</strong>"></script><br><link rel="stylesheet" href="<strong>jquery.roster.css</strong>"></code></pre>
<p>Select an element and set up the script.</p>
<pre><code>$('.class').roster();</code></pre>
<h3>Options</h3>
<pre><code>$('.class').roster({
realm: 'realm-name',
guild: 'guild-name',
locale: 'eu',
lang: 'en'
});</code></pre>
<h3>Data API</h3>
<p>JSON file structure</p>
<pre><code>{
"lastModified":1323345657000,
"name":"microtroll",
"realm":"Arathor",
"level":25,
"side":0,
"achievementPoints":1415,
"members":[{
"character":{
"name":"Dementika",
"realm":"Arathor",
"class":3,
"race":4,
"gender":1,
"level":85,
"achievementPoints":0,
"thumbnail":"arathor/160/23619232-avatar.jpg"
},
"rank":8
}]
}</code></pre>
</section>
<!-- Scripts -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="jquery.roster.min.js"></script>
<script>
$(function() {
"use strict";
// Guild rostaer
$('.roster-wrap').roster({
realm: 'Arathor',
guild: 'microtroll'
});
});
</script>
</body>
</html>