-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
95 lines (77 loc) · 2.24 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
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Pokemon Demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h3>Pokemon</h3>
<p>
<strong>Embed pokemon on your webpage</strong>
</p>
<a href="https://github.com/antirek/pokemon">Source</a>
<h4>Simple usage</h4>
<p>
<script src="https://gist.github.com/antirek/74eb7ad75e3ee8c005fb2f0f8ec73ac2.js"></script>
</p>
<h4>Random</h4>
<p>
<script src="https://gist.github.com/antirek/39df3009596b505485d859a19aa059bd.js"></script>
</p>
<h4>Available pokemons</h4>
<ul>
<li>pikachu</li>
<li>aerodactyl</li>
<li>alakazam</li>
<li>bulbasaur</li>
<li>charmander</li>
</ul>
<h4>Available options</h4>
<ul>
<li>top</li>
<li>left</li>
<li>right</li>
<li>bottom</li>
<li>random</li>
</ul>
<h4>API</h4>
<p>
pokemon(pokemonName, url, options)
</p>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
</div>
<script type="text/javascript" src="pokemon.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
pokemon('aerodactyl','http://www.pokemon.com/ru', {
top: '100px',
right: '120px',
});
pokemon(false, 'http://www.pokemon.com/ru', {
top: '150px',
left: '120px',
random: true
});
pokemon('pikachu', 'http://www.pokemon.com/ru', {
bottom: '100px',
left: '120px'
});
pokemon('bulbasaur', 'http://www.pokemon.com/ru', {
bottom: '100px',
right: '120px'
});
});
</script>
</body>
</html>