-
Notifications
You must be signed in to change notification settings - Fork 557
/
index.html
239 lines (238 loc) · 11.6 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
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" href="https://paintschainer-cdn.preferred.tech/images/paintschainer-64x64.png" sizes="64x64">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#c90000">
<meta name="apple-mobile-web-app-title" content="PaintsChainer">
<meta name="application-name" content="PaintsChainer">
<meta name="theme-color" content="#ffffff">
<title>PaintsChainer</title>
<!-- Canvas toBlob polyfill -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/javascript-canvas-to-blob/3.6.0/js/canvas-to-blob.min.js"></script>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- jQuery Cookie -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<!-- jQuery UI -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<!-- wColorPicker -->
<link rel="stylesheet" href="wPaint/lib/wColorPicker.min.css">
<script src="wPaint/lib/paletteGenerator.js"></script>
<script src="wPaint/lib/wColorPicker.min.js?ver3"></script>
<!-- wPaint -->
<link rel="stylesheet" href="wPaint/wPaint.min.css">
<script src="wPaint/wPaint.min.js"></script>
<script src="wPaint/plugins/main/src/wPaint.menu.main.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- font-awesome -->
<link rel="stylesheet" href="css/font-awesome.css">
<!-- main -->
<script src="paints_chainer.js?ver0.6"></script>
<!-- fileend -->
<style>
.wColorPicker-palettes-holder { white-space: nowrap; } /* wColorPicker workaround for Firefox */
</style>
<style>
body {
margin-bottom: 36px;
}
.footer {
position: fixed;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 36px;
background-color: #f5f5f5;
font-size: 85%;
}
.container .text-muted {
margin: 8px 0;
}
.footer > .container {
padding-right: 15px;
padding-left: 15px;
}
.footer a {
color: #727272;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
</button>
<span class="navbar-brand"><img src="https://paintschainer-cdn.preferred.tech/images/paintschainer-64x64.png" width="24" style="display:inline" /> PaintsChainer</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a>Home</a></li>
<li><a href="howto.html" >How to</a></li>
<li><a href="//paintschainer.preferred.tech/downloads/" target="_blank">Downloads</a></li>
<li><a href="//github.com/pfnet/PaintsChainer" target="_blank">GitHub</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://twitter.com/paintschainer" target="_blank" style="padding: 6px 4px;">
<span class="fa-stack fa-lg" style="color:#55acee;">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x"></i>
</span>
</a>
</li>
<li>
<a href="https://facebook.com/PaintsChainer" target="_blank" style="padding: 6px 4px;">
<span class="fa-stack fa-lg" style="color:#3b5998;">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-facebook fa-stack-1x"></i>
</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<span class="label label label-info">Auto Sketch Colorization</span>
<div class="well" style="background-color: aliceblue">
<input id="blur_k" type="hidden" />
<div class="row">
<div class="col-md-6" style="margin-bottom: 10px;">
<i class="glyphicon glyphicon-picture"></i> Set sketch: <input id="load_line_file" type="file" style="display: inline;">
</div>
<div class="col-md-6">
<button id="submit" class="btn btn-large btn-primary" disabled><i class="icon-edit icon-white"></i> Colorize</button>
<span id="painting_status" style="display:none"></span>
</div>
</div>
</div>
<div class="row" style="margin-top:42px;">
<div class="col-xs-11 col-sm-6">
<div id="img_pane" style="display:none">
<div id="wPaint" style="position:relative; background-color:rgba(0,0,255,0); border:solid 1px">
<img id="background" style="max-width:100%" src="">
</div>
</div>
</div>
<div class="col-xs-1 visible-xs-block"></div><!-- for dragging on narrow screen(smartphones)-->
<div class="col-xs-11 col-sm-6">
<img id="output" style="display:none; max-width:100%; border:solid 1px black">
</div>
<div class="col-xs-1 visible-xs-block"></div>
</div>
<div class="row">
<div class="col-md-6">
<span class="label label-success">How To Use</span>
<div class="well well-small" >
<ol>
<li>Select line drawing image
<li>Add hint information using color pen in left image</li>
<li>Click the 'colorize' button</li>
</ol>
<span style="color:gray">(gif & alpha channel png is not supported)</li></span>
</div>
<div class="well well-small" style="background-color:#f7fafa" >
<p> Provided by <a href="https://www.preferred-networks.jp/" target="_blank" style="color:#0060de; font-size:120%"><img src="//paintschainer-cdn.preferred.tech/images/PFN_logo.png" width="24"> Preferred Networks</a></p>
</div>
<div class="well well-small" style="background-color:#f7fafa" >
<p> Powered by
<a href="https://www.sakura.ad.jp/koukaryoku/" target="_blank" style="text-decoration:none;"><img src="//paintschainer-cdn.preferred.tech/images/koukaryoku-64.png" height="32" style="margin:-1em 0">高火力コンピューティング</a>
<a href="http://chainer.org/" target="_blank" style="text-decoration:none;"><img src="//paintschainer-cdn.preferred.tech/images/chainer-64.png" height="32" style="margin:-1em 0"> Chainer</a>
</p>
</div>
</div>
<div class="col-md-6">
<span class="label label label-info">twitter timeline</span>
<div style="border:solid silver 1px;border-radius: 4px;">
<a class="twitter-timeline" href="https://twitter.com/hashtag/PaintsChainer" data-widget-id="826017928868818945">#PaintsChainer</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="col-md-offset-8 col-md-2 col-xs-6"><p class="text-muted"><a href="//paintschainer-cdn.preferred.tech/terms.html" target="_blank">Terms of Service</a></p></div>
<div class="col-md-2 col-xs-6"><p class="text-muted"><a href="//paintschainer-cdn.preferred.tech/privacy.html" target="_blank">Privacy Policy</a></p></div>
</div>
</footer>
<div class="modal fade" id="info-dialog" tabindex="-1" role="dialog" aria-labelledby="infoDialogLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="infoDialogLabel"><img src="//paintschainer-cdn.preferred.tech/images/paintschainer-64x64.png" width="24" style="display:inline" /> Information</h4>
</div>
<div class="modal-body">
<p><b>Welcome to PaintsChainer!</b></p>
<p>Thank you for using our products and services.</p>
<p>You need to agree with the following terms and policy for its use.</p>
<p>Please read them carefully before using PaintsChainer.</p>
<ul>
<li><a href="//paintschainer-cdn.preferred.tech/terms.html" target="_blank">Terms of Service</a></li>
<li><a href="//paintschainer-cdn.preferred.tech/privacy.html" target="_blank">Privacy Policy</a></li>
</ul>
<p>March 8, 2017</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" id="info-button">Agree</button>
</div>
</div>
</div>
</div>
<script>
(function() {
if (location.hostname === 'paintschainer.preferred.tech') {
if ($.cookie('info1') == null) {
$('#info-dialog').modal('show');
}
$('#info-button').click(function(e) {
$.cookie('info1', true, {expires: 365});
});
}
})();
</script>
<script>
if (location.hostname === 'paintschainer.preferred.tech') {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-91036510-1', 'auto');
ga('send', 'pageview');
}
// ブラウザ言語の取得
function browserLanguage() {
try {
return navigator.browserLanguage || navigator.language || navigator.userLanguage;
} catch(e) {
return undefined;
}
}
// ブラウザの言語が日本語/中国語の場合、それぞれのサイトへ、リダイレクト
if (browserLanguage() === ("ja" || "ja-JP")) {
location.replace("index_ja.html");
}
else if (browserLanguage() === ("zh" || "zh-CN")) {
location.replace("index_zh.html");
}
else if (browserLanguage() === "zh-TW") {
location.replace("index_zh-TW.html");
}
</script>
</body>
</html>