-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeature-admin-forms-code-editor.html
More file actions
150 lines (136 loc) · 4.69 KB
/
Copy pathfeature-admin-forms-code-editor.html
File metadata and controls
150 lines (136 loc) · 4.69 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<section class="page-top">
<div class="container">
<div class="row">
<div class="col-md-12">
<ul class="breadcrumb">
<li><a href="#">Home</a></li>
<li class="active">Features</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h1>Code Editor</h1>
</div>
</div>
</div>
</section>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="alert alert-info alert-admin">
<div class="row">
<div class="col-md-8">
<h4>Admin Extension</h4>
<p><strong class="warning"><i class="fa fa-warning"></i> Warning!</strong> This page is part of the admin extension and is <strong>NOT</strong> included on Porto - Responsive HTML5 Template, to get all features, purchase both templates: <a target="_blank" href="http://www.themeforest.net/item/porto-responsive-html5-template/4106987?ref=Okler">Porto ($15)</a> + <a target="_blank" href="http://www.themeforest.net/item/porto-admin-responsive-html5-template/8539472?ref=Okler">Porto Admin ($23)</a>: <strong>$38 Total.</strong></p>
<p>
<a class="btn btn-lg btn-sm btn-primary" target="_blank" href="http://www.themeforest.net/item/porto-admin-responsive-html5-template/8539472?ref=Okler">View Porto Admin!</a>
</p>
</div>
<div class="col-md-4 visible-md visible-lg">
<img class="appear-animation pull-right" src="img/admin-banner.png" data-appear-animation="fadeIn">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-12">
<section class="panel">
<header class="panel-heading">
<div class="panel-actions">
<a href="#" class="fa fa-caret-down"></a>
<a href="#" class="fa fa-times"></a>
</div>
<h2 class="panel-title">Code Editor</h2>
</header>
<div class="panel-body">
<form class="form-horizontal" action="#">
<div class="form-group">
<label class="col-md-2 control-label" for="textareaDefault">Javascript Editor</label>
<div class="col-md-10">
<textarea class="form-control" rows="10" id="codemirror_js_code" name="code_js" data-plugin-codemirror data-plugin-options='{ "mode": "text/javascript" }'>
function findSequence(goal) {
function find( start, history ) {
if (start === goal) {
return history;
} else if ( start > goal ) {
return null;
} else {
return find(start + 5, "(" + history + " + 5)") || find(start * 3, "(" + history + " * 3)");
}
return find(1, "1");
}
}</textarea>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textareaDefault">HTML Editor</label>
<div class="col-md-10">
<textarea rows="10" class="form-control" id="codemirror_html_code" name="code_html" data-plugin-codemirror data-plugin-options='{ "mode": "text/html" }'>
<html style="color: green">
<!-- this is a comment -->
<head>
<title>Mixed HTML Example</title>
<style type="text/css">
h1 {font-family: comic sans; color: #f0f;}
div {background: yellow !important;}
body {
max-width: 50em;
margin: 1em 2em 1em 5em;
}
</style>
</head>
<body>
<h1>Mixed HTML Example</h1>
<script>
function jsFunc(arg1, arg2) {
if (arg1 && arg2) document.body.innerHTML = "achoo";
}
</script>
</body>
</html></textarea>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textareaDefault">CSS Editor</label>
<div class="col-md-10">
<textarea rows="10" class="form-control" id="codemirror_css_code" name="code_css" data-plugin-codemirror data-plugin-options='{ "mode": "text/css" }'>
/* Some example CSS */
@import url("something.css");
body {
margin: 0;
padding: 3em 6em;
font-family: tahoma, arial, sans-serif;
color: #000;
}
#navigation a {
font-weight: bold;
text-decoration: none !important;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 1.7em;
}
h1:before, h2:before {
content: "::";
}
code {
font-family: courier, monospace;
font-size: 80%;
color: #418A8A;
}
</textarea>
</div>
</div>
</form>
</div>
</section>
</div>
</div>
</div>
</div>