-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (86 loc) · 2.74 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 xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja" xmlns:og="http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@tiramisu_oTATo" />
<meta property="og:title" content="Twitter用ミニマスデッキ画像自動レイアウトツール" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://thiramisu.github.io/Minion-Masters-Deck-Image-Auto-Layout-Tool/index.html" />
<meta property="og:image"
content="https://thiramisu.github.io/Minion-Masters-Deck-Image-Auto-Layout-Tool/thumbnail.jpg" />
<meta property="og:description" content="Twitterにミニマスのデッキを簡単にかっこよく載っけるためのツール" />
<title>ミニマスデッキ画像自動レイアウトツール</title>
<link rel="icon" type="image/png" href="icon.png">
<script src="minimas.js"></script>
<style>
body {
background-color: rgb(24, 29, 53);
color: #eee;
display: flex;
flex-direction: column;
}
.canvas {
height: 195px;
width: 360px;
}
.label {
background-color: rgb(43, 54, 112);
border: 1px solid #a19929;
border-radius: 3px;
box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.3);
margin-bottom: 2px;
padding: 2px;
}
.select {
background-color: rgb(45, 67, 177);
color: #eee;
border: 1px solid #a19929;
border-radius: 1px;
}
.preview {
width: 100%;
}
.link,
.link:visited {
color: #eee;
text-decoration: underline
}
.center {
text-align: center;
}
.warning {
color: #e11;
}
</style>
</head>
<body>
<div class="label">※Chrome以外で動くか分かりません</div>
<label class="label"><span class="title">レイアウトタイプ / Layout Type</span>
<select id="layout" class="select">
<option value="0">type 0</option>
<option value="1">type 1</option>
<option value="3">type 1-B</option>
<option value="2">type 2</option>
</select>
</label>
<label class="label">
デッキ構築画面のスクショ / Screenshot of deckbuilding<br />
<input type="file" accept=".png,.jpg" id="image"><br />
(ボタンの上にドラッグ&ドロップ可)
</label>
<div class="label">結果 / Result<br />
(右クリックから保存できます)<br />
<div id="warning" class="warning"></div>
<canvas id="canvas" class="canvas" width="360" height="195"></canvas>
</div>
<div class="label">元画像 / Original Image<br />
<img id="preview" class="preview">
</div>
<div class="label">例 / Example<br />
<img src="example.jpg">
</div>
<footer class="center">created by <a href="https://twitter.com/tiramisu_oTATo" class="link">@tiramisu_oTATo</a>
(unofficial)</footer>
</body>
</html>