-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs.html
223 lines (215 loc) · 8.76 KB
/
docs.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<div class="wraper">
<h3>Iframe API</h3>
<br>
<h4>How to use?</h4>
<p>Each <kbd>GET</kbd> method returns the code for the graph. This means you can put it inside the <kbd>src</kbd> of a <kbd><iframe></kbd>.</p>
<p>For example: <kbd><iframe src="{YOUR_REQ_HERE}"></iframe></kbd>.</p>
<p>The base url for all requisitions is <kbd>https://exileinfo.xyz/api/</kbd>.</p>
<p>As a recommendation, You should stick with at least 300px of height, so that things don't get too cramped.</p>
<br>
<p>Leagues available:</p>
<dl class="dl-horizontal">
<br><dt><kbd>legacy</kbd><br></dt><dd>Legacy League.</dd>
<br><dt><kbd>hclegacy</kbd><br></dt><dd>Hardcore Legacy League.</dd>
<br><dt><kbd>ssflegacy</kbd><br></dt><dd>Solo self found Legacy League.</dd>
<br><dt><kbd>ssfhclegacy</kbd><br></dt><dd>Solo self found Hardcore Legacy League.</dd>
</dl>
<p>Pages</p>
<ul>
<li><a href="#iascendancies">Ascendancies</a></li>
<li><a href="#iskillgems">Skill Gems</a></li>
<li><a href="#isupportgems">Support Gems</a></li>
<li><a href="#icoregems">Core Gems</a></li>
<li><a href="#iuniqueitems">Unique Items</a></li>
<li><a href="#ilifexes">Life vs Es</a></li>
</ul>
<br>
</div>
<div class="wraper">
<!-- Ascendancies --><a name="iascendancies"></a>
<h4>Ascendancies</h4>
<kbd>REQUEST /ascendancies?league=:league</kbd><br>
<dl class="dl-horizontal">
<br><dt>league<br><em><small>Required</small></em></dt><dd>The league (name) you want to retrieve.</dd>
</dl>
Example: <kbd><iframe src="https://exileinfo.xyz/api/ascendancies?league=legacy"></iframe></kbd><br>
Result:
<div class="row">
<div class="col-xs-12 col-md-6 result">
<script>
getCode('ascendancies', 'api/ascendancies?league=legacy');
</script>
<div id="parent">
<div id="child">
<pre><code id="ascendancies">...</code></pre>
</div>
</div>
</div>
<iframe class="col-xs-12 col-md-6 result" src="api/ascendancies?league=legacy" scrolling="no"></iframe>
</div>
<br>
</div>
<div class="wraper">
<!-- Skill Gems --><a name="iskillgems"></a>
<h4>Skill Gems</h4>
<kbd>REQUEST /skillgems?league=:league</kbd><br>
<dl class="dl-horizontal">
<br><dt>league<br><em><small>Required</small></em></dt><dd>The league (name) you want to retrieve.</dd>
<br><dt>tag<br><em><small>Optional</small></em></dt><dd>Specific gem tags, separated by comma.</dd>
</dl>
Example: <kbd><iframe src="https://exileinfo.xyz/api/skillgems?league=legacy&tag=movement,spell"></iframe></kbd><br>
Result:
<div class="row">
<div class="col-xs-12 col-md-6 result">
<script>
getCode('skillgems', 'api/skillgems?league=legacy&tag=movement,spell');
</script>
<div id="parent">
<div id="child">
<pre><code id="skillgems">...</code></pre>
</div>
</div>
</div>
<iframe class="col-xs-12 col-md-6 result" src="api/skillgems?league=legacy&tag=movement,spell" scrolling="no"></iframe>
</div>
<br>
</div>
<div class="wraper">
<!-- Support Gems --><a name="isupportgems"></a>
<h4>Support Gems</h4>
<kbd>REQUEST /supportgems?league=:league</kbd><br>
<dl class="dl-horizontal">
<br><dt>league<br><em><small>Required</small></em></dt><dd>The league (name) you want to retrieve.</dd>
<br><dt>tag<br><em><small>Optional</small></em></dt><dd>Specific gem tags, separated by comma.</dd>
</dl>
Example: <kbd><iframe src="https://exileinfo.xyz/api/supportgems?league=legacy&tag=duration"></iframe></kbd><br>
Result:
<div class="row">
<div class="col-xs-12 col-md-6 result">
<script>
getCode('supportgems', 'api/supportgems?league=legacy&tag=duration');
</script>
<div id="parent">
<div id="child">
<pre><code id="supportgems">...</code></pre>
</div>
</div>
</div>
<iframe class="col-xs-12 col-md-6 result" src="api/supportgems?league=legacy&tag=duration" scrolling="no"></iframe>
</div>
<br>
</div>
<div class="wraper">
<!-- Core Gems --><a name="icoregems"></a>
<h4>Core Gems</h4>
<kbd>REQUEST /coregems?league=:league</kbd><br>
<dl class="dl-horizontal">
<br><dt>league<br><em><small>Required</small></em></dt><dd>The league (name) you want to retrieve.</dd>
</dl>
Example: <kbd><iframe src="https://exileinfo.xyz/api/coregems?league=legacy"></iframe></kbd><br>
Result:
<div class="row">
<div class="col-xs-12 col-md-6 result">
<script>
getCode('coregems', 'api/coregems?league=legacy');
</script>
<div id="parent">
<div id="child">
<pre><code id="coregems">...</code></pre>
</div>
</div>
</div>
<iframe class="col-xs-12 col-md-6 result" src="api/coregems?league=legacy" scrolling="no"></iframe>
</div>
<br>
</div>
<div class="wraper">
<!-- Unique Items --><a name="iuniqueitems"></a>
<h4>Unique Items</h4>
<kbd>REQUEST /uniqueitems?league=:league</kbd><br>
<dl class="dl-horizontal">
<br><dt>league<br><em><small>Required</small></em></dt><dd>The league (name) you want to retrieve.</dd>
</dl>
Example: <kbd><iframe src="https://exileinfo.xyz/api/uniqueitems?league=legacy"></iframe></kbd><br>
Result:
<div class="row">
<div class="col-xs-12 col-md-6 result">
<script>
getCode('uniqueitems', 'api/uniqueitems?league=legacy');
</script>
<div id="parent">
<div id="child">
<pre><code id="uniqueitems">...</code></pre>
</div>
</div>
</div>
<iframe class="col-xs-12 col-md-6 result" src="api/uniqueitems?league=legacy" scrolling="no"></iframe>
</div>
<br>
</div>
<div class="wraper">
<!-- Life vs Es --><a name="ilifexes"></a>
<h4>Life vs Es</h4>
<kbd>REQUEST /lifexes?league=:league</kbd><br>
<dl class="dl-horizontal">
<br><dt>league<br><em><small>Required</small></em></dt><dd>The league (name) you want to retrieve.</dd>
</dl>
Example: <kbd><iframe src="https://exileinfo.xyz/api/lifexes?league=legacy"></iframe></kbd><br>
Result:
<div class="row">
<div class="col-xs-12 col-md-6 result">
<script>
getCode('lifexes', 'api/lifexes?league=legacy');
</script>
<div id="parent">
<div id="child">
<pre><code id="lifexes">...</code></pre>
</div>
</div>
</div>
<iframe class="col-xs-12 col-md-6 result" src="api/lifexes?league=legacy" scrolling="no"></iframe>
</div>
<br>
</div>
<button onclick="topFunction()" id="myBtn" data-toggle="tooltip" data-placement="top" title="/\">Top</button>
<style type="text/css">
#myBtn {
display: none; /* Hidden by default */
position: fixed; /* Fixed/sticky position */
bottom: 20px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
border: none; /* Remove borders */
outline: none; /* Remove outline */
background-color: transparent; /* Set a background color */
color: white; /* Text color */
cursor: pointer; /* Add a mouse pointer on hover */
padding: 2px 10px; /* Some padding */
border-radius: 10px; /* Rounded corners */
transition: opacity 0.2s ease-out;
}
#myBtn:hover {
background-color: #1a1a1a; /* Add a dark-grey background on hover */
}
</style>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<script type="text/javascript">
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0; // For Chrome, Safari and Opera
document.documentElement.scrollTop = 0; // For IE and Firefox
}
</script>