-
Notifications
You must be signed in to change notification settings - Fork 2
/
test-iphone.html
42 lines (41 loc) · 1.34 KB
/
test-iphone.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
<!doctype html>
<html>
<head>
<script src="richie.js"></script>
<link rel="stylesheet" href="richie.css"></link>
<script>
function showVersion() {
var el = document.getElementById( 'version' );
el.appendChild( document.createTextNode( Richie.version ) );
}
var richie;
Richie.isMobile = true;
Richie.isIphone = true;
// var richie2;
function init() {
showVersion();
var editor44 = document.getElementById( 'editor44' );
richie = new Richie( editor44 );
// richie2 = new Richie( editor49 );
richie.init();
// richie2.init();
}
function load() {
richie.loadText("<h2>headline</h2><p>This is the body.</p>");
}
function read() {
richie.getText("<h2>headline</h2><p>This is the body.</p>");
}
</script>
</head>
<body onload="init();">
<p>Richie version <span id="version"></span></p>
<input type="button" onclick="richie.toggleStyling( 'H1' );" value="H1"/>
<input type="button" onclick="richie.toggleStyling( 'B' );" value="Bold"/>
<input type="button" onclick="richie.toggleStyling( 'I' );" value="Italic" />
<input type="button" onclick="richie.toggleStyling( 'U' );" value="Underline" />
<input type="button" onclick="load();" value="Load Content" />
<input type="button" onclick="read();" value="Read Content" />
<div id="editor44" class="editor"></div>
</body>
</html>