-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (33 loc) · 1008 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Text Renderer</title>
<link rel="stylesheet" type="text/css" href="css/renderer.css">
<script src="js/renderer.js"></script>
</head>
<body>
<div class="contents">
<div class="input">
<label for="texttorender">Text To Render</label>
<textarea id="texttorender"></textarea>
<br/>
<label for="footer">Footer Text</label>
<input id="footer"/>
</div>
<div id="visualeditor">
</div>
</div>
<script>
//const clippy = new ClipboardIntegrator().addCopyToGUIAfter("#texttorender");
const theRenderer = new Renderer();
// warning prototype code
//theRenderer.backgroundImageFunctionalityEnabled(true);
theRenderer.displayIn("visualeditor");
theRenderer.getTextFrom("texttorender");
// can set a default text
// theRenderer.setFooterText("EvilTester.com")
// hook GUI to component
theRenderer.getFooterTextFrom("footer");
</script>
</body>
</html>