-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
126 lines (123 loc) · 4.84 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>きらファンCard Maker - KiraFan Wiki</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="./css/material.brown-pink.min.css">
<link rel="stylesheet" href="./css/dialog-polyfill.css">
<script src="./libs/material.min.js"></script>
<script src="./libs/dialog-polyfill.js"></script>
<script src="./libs/jquery.min.js"></script>
<script src="./libs/pixi.min.js"></script>
<script src="./libs/pixi-layers.js"></script>
<link rel="stylesheet" href="./css/index.css">
<base target="_blank">
<style>
#convertToImg {
position: fixed;
display: block;
right: 0;
bottom: 0;
margin-right: 40px;
margin-bottom: 40px;
z-index: 900;
}
</style>
<link rel="icon" href="https://kirafan.bangbang93.com/static/assets/texture/charauiresource/charaicon/charaicon_14032001.jpeg"
type="image/x-icon">
</head>
<body>
<div id="upperDiv"><img src="./img/class/0.png" id="downloadImg"></div>
<dialog id="dialog_title" class="mdl-dialog">
<h3 class="mdl-dialog__title">Select Title</h3>
<div class="mdl-dialog__content select-content" id="titleSelector">
</div>
<div class="mdl-dialog__actions">
<button type="button" class="mdl-button _title" id="titleBlank"></button>
<label class="mdl-button mdl-button--colored" for="titleFile" id="titleFileLabel"></label>
<input type="file" name="titleFile" id="titleFile" accept="image/*" hidden/>
</div>
</div>
</dialog>
<div class="mdl-main mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">きらファンCard Maker</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- Navigation -->
<nav class="mdl-navigation titleicon">
<a class="mdl-navigation__link" href="https://wiki.kirafan.moe">
<img src="./img/wiki_logo.white.png" alt="">
</a>
</nav>
</div>
</header>
<main class="mdl-layout__content mdl-main-content">
<div class="mdl-grid ">
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
<div class="setting-content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--4-col mdl-cell--8-col-phone">
<div>
<h5 id="titleSettings" class="mdl-color-text--accent">Settings</h5>
</div>
<div>
<div class="mdl-textfield mdl-js-textfield mdl-chat-input" style="width:100%">
<input class="mdl-textfield__input" type="text" id="charaName">
<label class="mdl-textfield__label" for="charaName">Name</label>
</div>
</div>
<div id="loading">
<h5>Loading fonts</h5>
<div class="mdl-progress mdl-js-progress mdl-progress__indeterminate">
</div>
</div>
<div>
<h5 id="titleFrame">Frame</h5>
<div id="frameSelector"></div>
</div>
<div>
<h5 id="titleElement">Elemental</h5>
<div id="elementSelector"></div>
</div>
<div>
<h5 id="titleClass">Class</h5>
<div id="classSelector"></div>
</div>
<div>
<h5 id="titleTitle">Title</h5>
<div id="titleSelected" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect">
<img id="titleSelectedImage" src="./img/title/0.png">
</div>
</div>
<div>
<h5 id="titleScale">Scale</h5>
<p style="width:100%">
<input class="mdl-slider mdl-js-slider" type="range" id="charaScale" min="5" max="100" value="50" step="0.01" oninput="setScale(event)">
</p>
</div>
<div>
<h5 id="titleImage">Image</h5>
<input type="file" name="file" id="file" accept="image/*" hidden/>
<label class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" for="file">
Upload
</label>
</div>
</div>
<div class="setting-content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--4-col mdl-cell--8-col-phone">
<div id="niseForm">
<span id="fontLoader">FontLoader</span>
</div>
<div id="pixiHolder" style="width:auto;height:auto"></div>
<font face="nameFont"></font>
</div>
<div class="mdl-cell--2-offset-desktop"></div>
</div>
</main>
<!--<a class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored" id="convertToImg" download="Kirafan_CardMaker_.png" >↓</a>-->
<a class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored" id="convertToImg">↓</a>
</div>
</body>
<script src="./js/index.js"></script>
</html>