-
Notifications
You must be signed in to change notification settings - Fork 32
/
fixed-values.html
56 lines (53 loc) · 2.71 KB
/
fixed-values.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
<!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>Fixed values</small></h1>
<p></p>
</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/complex.html': {
name: 'Complex page',
def: {
'h1':{
name: 'Heading',
props:['font-size'],
labels: ['Font size'],
editorsConfig:{
"font-size": {
"fixedValues": ["14px","15px", "16px"]
}
},
iconClass: "glyphicon glyphicon-star"
}
}
}
}
});
});
</script>
</body>
</html>