forked from grandchild/AVS-File-Decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·57 lines (48 loc) · 2.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="//s.visbot.net/ico/favicon.png">
<title>AVS File Decoder</title>
<!-- Bootstrap core CSS -->
<link href="//netdna.bootstrapcdn.com/bootswatch/3.0.0/flatly/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template & highlighter.js -->
<link href="build/styles.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h2>AVS File Decoder</h2>
<h5>Convert Winamp AVS files into Webvs-compatible JSON</h5>
<div class="jumbotron">
<input type="file" id="preset" class="filestyle" data-classButton="btn btn-lg btn-success" data-input="false" data-buttonText="Load" />
<input type="button" class="btn btn-lg btn-danger" onclick="$('#log, #output').empty()" value="Clear" />
<textarea id="log" readonly="readonly" onclick="this.focus();this.select()"></textarea>
<pre><code id="output">{"message": "Please load file"}</code></pre>
</div>
<!-- Site footer -->
<div class="footer">
<p class="text-right"><small>Fork me on <a href="https://github.com/grandchild/AVS-File-Decoder">GitHub</a></small></p>
</div>
</div><!-- /.container -->
<!-- Core JavaScript -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript src='bower_components/jquery/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript" src="lib/bootstrap-filestyle.min.js"></script>
<script src="lib/highlight.pack.js"></script>
<script type="text/javascript" src="build/scripts.min.js"></script?>
<script type="text/javascript">
//highlight
hljs.initHighlightingOnLoad();
//select
function SelectText(element){var doc=document;var text=doc.getElementById(element);if(doc.body.createTextRange){var range=doc.body.createTextRange();range.moveToElementText(text);range.select()}else{if(window.getSelection){var selection=window.getSelection();var range=doc.createRange();range.selectNodeContents(text);selection.removeAllRanges();selection.addRange(range)}}};
$(function(){$("#output").click(function(){SelectText("output")})});
</script>
</body>
</html>