forked from rukavina/live-css-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
standard.html
67 lines (64 loc) · 3.42 KB
/
standard.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<title>Livecsseditor</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/jquery-ui.min.css">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://bootswatch.com/cyborg/bootstrap.css">
<link rel="stylesheet" href="../source/livecsseditor/livecsseditor-2.0.css">
<link rel="stylesheet" href="../dependencies/chosen/chosen.min.css">
</head>
<body>
<div class="page-header">
<h1>Livecsseditor <small>Standard</small></h1>
</div>
<div class="container" id="livecsseditor"></div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../dependencies/microtpl.js"></script>
<script type="text/javascript" src="../dependencies/jscolor/jscolor.js"></script>
<script type="text/javascript" src="../dependencies/chosen/chosen.jquery.min.js"></script>
<!-- Editor -->
<script src="../source/livecsseditor/livecsseditor-2.0.js"></script>
<script src="../source/livecsseditor/editors/lceColor.js"></script>
<script src="../source/livecsseditor/editors/lceFont.js"></script>
<script src="../source/livecsseditor/editors/lceBackground.js"></script>
<script>
$(document).ready(function(){
$('#livecsseditor').livecsseditor({
pages: {
'targets/simple.html': {
name: 'First Page',
def: {
'h1':{
name: 'Heading',
props:['color','background-color','font-family','font-weight','text-align'],
labels: ['Color','Background color','Font','Font Weight','Align'],
description: 'Update heading here',
editorsConfig:{
"font-family": {
"names": ["Verdana","Arial", "Times New Roman"]
}
},
iconClass: "glyphicon glyphicon-star"
},
'p,span':{
name: 'Text',
props:['font-size','color'],
labels: ['Font size','Color'],
editorsConfig:{
"font-size": {
"fixedValues": ["original","10px","11px","12px"]
}
},
iconClass: "glyphicon glyphicon-font"
}
}
}
}
});
});
</script>
</body>
</html>