-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.html
34 lines (32 loc) · 1.16 KB
/
example.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>After Effects tracking points parser</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
</head>
<body>
<form id="parse_form">
<textarea cols="80" rows="20" id="ae_content" name="ae_content"></textarea>
<p><input type="submit" value="Parse" id="submit_btn" /></p>
</form>
<textarea cols="80" rows="20" id="ae_result" name="ae_result"></textarea>
<script src="AEParser.js"></script>
<script>
var parserExample = function(){
var submitForm = function(e){
var aeJson = parser.parse(document.getElementById("ae_content").value);
document.getElementById("ae_result").value =JSON.stringify(aeJson,null,'\t');
return false;
};
return{
init:function(){
form = document.getElementById("parse_form");
form.onsubmit = submitForm;
}
};
}();
window.onload=parserExample.init;
</script>
</body>
</html>