-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyugioh.html
76 lines (70 loc) · 2.79 KB
/
yugioh.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Random Yu-Gi-Oh! decks</title>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="yugioh.js"></script>
<meta name="description" content="Randomly generated Digimon">
<meta name="keywords" content="Digimon,procedural,random,generative">
<meta name="author" content="Tower Hufham">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<style>
body {
font-family: 'Open Sans', sans-serif;
text-align: center;
color: #ffffff;
text-shadow: 2px 2px 8px #000000
}
p {
font-size: 125%;
}
h1 {
font-size: 350%;
}
h2 {
font-size: 240%;
}
.vertical-align {
display: flex;
align-items: center;
flex-wrap: wrap
}
a {
color: yellow;
}
.btn-link {
/* box-shadow: 0px 0px 1px #000000; */
}
</style>
</head>
<body background="img/pool_bg.jpg" onload="init()">
<h1>Randomly generated Yu-Gi-Oh! decks [broken :(]</h1>
<a class="btn btn-link" id="deck-button">
<img id="download-img" src="img/yugioh_download_waiting.png" class="img-responsive center-block" alt="Download your random deck">
</a>
<p>
<br/>When the eye opens, click it to download your random deck. (Should take about 30 seconds for it to open.)
<br/>It will download as a .ydk file. Drag and drop it into your deck folder in YGOPro to use it.
<br/>Refresh the page to generate a new deck.
<br/>Made using the <a href="https://www.ygohub.com">YGOHub API.</a>
<br/>[Unfortunately, the ygohub api was shut down some time ago. This generator may be remade if I find a replacement (and the time.)]
<br/>
<br/>The deck generator is slightly smarter than just picking 40 random legal cards.
<br/>When the generator picks a card, it searches the text boxes of other cards for ones that mention a word in the title of this card.
<br/>Any of these cards it finds are added into a queue, which are inserted into random spots in the deck.
<br/>This makes the deck themed loosely around archetypes it finds. <i>Very loosely.</i>
<br/>If you open up a deck and it's less than 40 cards, that's probably because it's trying to use a card that hasn't been added to your ygo program yet.
</p>
<a href="index.html" class="btn btn-link">
<img src="img/back_icon.png" class="img-responsive center-block" alt="Go back">
</a>
<p><br/>Go back</p>
</body>
</html>