Skip to content

Commit 8c71c46

Browse files
author
Will Bamberg
committed
Added example for font
1 parent 7828bfb commit 8c71c46

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#output {
2+
overflow: hidden;
3+
}
4+
5+
#example-element {
6+
display: block;
7+
}
77.1 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<link href="../../css/editable.css" rel="stylesheet"></link>
6+
7+
<link href="../../codemirror/lib/codemirror.css" rel="stylesheet">
8+
<link href="../../codemirror/theme/mdn-like.css" rel="stylesheet"></link>
9+
<link href="../../codemirror/addon/hint/show-hint.css" rel="stylesheet"></link>
10+
11+
<link href="css/element.css" rel="stylesheet"></link>
12+
</head>
13+
14+
<body>
15+
<div id="output">
16+
<span id="example-element">London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth, and it would not be wonderful to meet a Megalosaurus, forty feet long or so, waddling like an elephantine lizard up Holborn Hill. Smoke lowering down from chimney-pots, making a soft black drizzle, with flakes of soot in it as big as full-grown snowflakes—gone into mourning, one might imagine, for the death of the sun. Dogs, undistinguishable in mire. Horses, scarcely better; splashed to their very blinkers. Foot passengers, jostling one another's umbrellas in a general infection of ill temper, and losing their foot-hold at street-corners, where tens of thousands of other foot passengers have been slipping and sliding since the day broke (if this day ever broke), adding new deposits to the crust upon crust of mud, sticking at those points tenaciously to the pavement, and accumulating at compound interest.</span>
17+
</div>
18+
19+
<div id="buttons">
20+
<input id="edit" type="button" value="Edit CSS" />
21+
<input id="reset" type="button" value="Reset" />
22+
</div>
23+
24+
<script src="../../codemirror/lib/codemirror.js"></script>
25+
<script src="../../codemirror/mode/css/css.js"></script>
26+
<script src="../../codemirror/addon/hint/css-hint.js"></script>
27+
<script src="../../codemirror/addon/hint/show-hint.js"></script>
28+
29+
<script src="js/font.js"></script>
30+
<script type="text/javascript" src="../../js/editable.js"></script>
31+
32+
</body>
33+
34+
</html>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var cmInitContent = 'font: 1em/1.5 "Open Sans", sans-serif;';
2+
3+
var cmMatchToShowCompletions = "font: ";
4+
5+
var cmCompletionChoices = [
6+
'1.5em/1.2 courier',
7+
'italic 2em cursive',
8+
'italic small-caps bolder condensed 24px/2 cursive'
9+
];

0 commit comments

Comments
 (0)