-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
executable file
·100 lines (84 loc) · 4.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<meta charset="utf-8">
<meta name="description" content="Convert SVG to Android 5.0 Lollipop VectorDrawable">
<meta name="keywords" content="android,svg,convert,vectordrawable,drawable,lollipop">
<meta name="author" content="Juraj Novák">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Android SVG to VectorDrawable</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/ribbons.min.css" rel="stylesheet">
<link rel="image_src" href="img/icon.png" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<img src="img/icon.png" style="display: none;"/>
<div id="main-container" class="container">
<div id="header">
<img src="img/android.png" class="img-responsive pull-left" style="padding-right: 10px" />
<h3>Android SVG to VectorDrawable (Alpha)</h3>
<p>feature of Android Lollipop</p>
</div>
<div id="compat-error" class="alert alert-danger" style="display: none">
<div class="clearfix">
<img src="img/seriously.png" class="img-responsive pull-left"/>
<p>Sorry but your browser does not support some of new HTML5 features! Try using latest version of Google Chrome or
Firefox.</p>
</div>
</div>
<div class="panel panel-info" id="dropzone" onclick="dropzoneClick(this)">
<div class="panel-body">
<b>Drop file here</b> to load content or click on this box to open file dialog.<br/>
<div class="nouploadinfo small">No file will be uploaded - uses only JavaScript HTML5 FileReader.<br /><br /></div>
<div class="nouploadinfo small alert alert-warning" style="display: inline-block">Only supports <i>path</i> svg element - you must export svg object(s) into path(s) in your editor.<br/>
Keep in mind that Android does support svg files only partially.</div>
</div>
</div>
<div id="output-box">
<div id="button-box" class="btn-group">
<button type="button" class="btn btn-primary btn-sm" onclick="download(this)">Download
</button>
<button type="button" class="btn btn-default btn-sm" onclick="selectAll(this)">Select all
</button>
</div>
<pre class="pre-scrollable" id="output-code"></pre>
</div>
<div class="alert alert-danger box" style="display: none"></div>
<div class="alert alert-warning box" style="display: none"></div>
<div class="alert alert-info box" style="display: none"></div>
<div class="alert alert-success box" id="success-box" style="display: none">
<b>Success:</b> create xml file and copy all contents into res/drawable directory
</div>
</div>
<div class="container">
<footer>
© 2014, Ozodrukh Abdullaev<br>
<small>| <a href="https://github.com/ozodrukh">other projects</a> |</small>
</footer>
</div>
<input type="file" id="dropzone-dialog" style="opacity: 0;display:none">
<div class="ribbon right grey hidden-xs">
<a href="https://github.com/ozodrukh/Svg2MrVector">Fork me on GitHub</a>
</div>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/cssjson.js"></script>
<script src='js/filereader.js'></script>
<script src='js/filesaver.min.js'></script>
<script src="js/main.js?v=3"></script>
<script>
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-56146020-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>