加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 11.56 KB
一键复制 编辑 原始数据 按行查看 历史
<!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 &amp; 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>
&nbsp;
&nbsp;
<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">&nbsp;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">&times;</span></button>
<h4 class="modal-title" id="infoDialogLabel"><img src="//paintschainer-cdn.preferred.tech/images/paintschainer-64x64.png" width="24" style="display:inline" />&nbsp;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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化