-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (66 loc) · 2.23 KB
/
index.html
File metadata and controls
73 lines (66 loc) · 2.23 KB
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
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/default.css">
<script src="modules/m-js.js"></script>
<script src="modules/m-html.js"></script>
<script src="editor.js"></script>
<style>
h1,h2{
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
h1{
font-size:34px;
color:#A13D2B
}
.editable{
//box-shadow reduce performance on scrolling,thats unexpectable
box-shadow: 0px 0px 5px #bbb;
}
.button{
background: #F05945;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF9780', endColorstr='#F05945');
background: -webkit-gradient(linear, left top, left bottom, from(#FF9780), to(#F05945));
background: -moz-linear-gradient(top, #FF9780, #F05945);
border:1px solid #95372B;
padding:2px 12px;
display:inline-block;
text-decoration: none;
font-family: helvetica, sans-serif;
font-size:16px;
font-weight:800;
color:#fff;
cursor:pointer;
-moz-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 0px 0px 3px #ccc;
-webkit-box-shadow: 0px 0px 3px #ccc;
box-shadow: 0px 0px 3px #ccc;
}
.button:active{
background: #FF9780;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F05945', endColorstr='#FF9780');
background: -webkit-gradient(linear, left top, left bottom, from(#F05945), to(#FF9780));
background: -moz-linear-gradient(top, #F05945, #FF9780);
}
</style>
<title>NoNameYetEditor</title>
</head>
<body>
<h1>NoNameYetEditor</h1>
<div style="margin:5px;text-align:right">
<div id="indent" class="button">Indent</div>
</div>
<pre id="editable" contenteditable="true" class="editable"></pre>
<h2>Browser support</h2>
<ul>
<li>Google Chrome</li>
</ul>
<script>
var editor = new Editor('editable', JS);
var indent = document.getElementById('indent');
indent.addEventListener("click", function(event){
editor.indent();
});
</script>
</body>
</html>