forked from pfnet/PaintsChainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (93 loc) · 4.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PaintsChainer</title>
<!-- filestart -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.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/wColorPicker.min.js"></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://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<script src="https://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<!-- main -->
<script src="paints_chainer.js"></script>
<!-- fileend -->
<style>
.container-fluid { margin-left: auto; margin-right: auto; width: 1250px !important; }
.wColorPicker-palettes-holder { white-space: nowrap; } /* wColorPicker workaround for Firefox */
</style>
</head>
<body>
<div class="navbar navbar-inverse navbar-static-top" style="margin-bottom: 20px">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#">PaintsChainer</a>
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="http://paintschainer.preferred.tech/downloads/">Downloads</a></li>
<li><a href="http://chainer.org/">Chainer</a></li>
<li><a href="http://github.com/taizan/PaintsChainer">GitHub</a></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="well text-center">
<i class="icon-picture"></i> Set sketch: <input id="load_line_file" type="file">
<button id="submit" class="btn btn-large btn-primary"><i class="icon-edit icon-white"></i> Colorize</button>
<span id="painting_label" style="display:none">NOW COLORING ...</span>
</div>
<div style="display:none">
<label>url:<input id="load_line_url" name="url"></label> <button id="set_line_url">set</button>
<label>blur_k<input id="blur_k" type="number" name="blur"></label>
</div>
</div>
</div>
<div id="img_pane" class="row-fluid">
<div class="span6">
<div id="wPaint" style="position:relative; float:left; width:512px; height:512px; background-color:rgba(0,0,255,0); margin:2px; border:solid 1px;">
<img id="background" style="max-width:512px; max-height:512px;">
</div>
</div>
<div class="span6">
<img id="output" style="float:right; margin:2px; max-width:512px; max-height:512px; border:solid 1px;" src="">
</div>
</div>
<div class="row-fluid">
<div class="span6">
<ol>
<li>Select line drawing image<br>(gif & png with a ch is not supported)</li>
<li>Add hint information using color pen in left image</li>
<li>Click the 'colorize' button</li>
</ol>
</div>
<div class="span6">
<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>
<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');
}
</script>
</body>
</html>