-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (109 loc) · 6.57 KB
/
index.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
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
150
151
152
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bootstrap Drag and Drop Theme Builder </title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/libs/xeditable.css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/app.css" media="screen" title="no title" charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body ng-app="app"ng-controller="MainController">
<nav class="navbar navbar-nice navbar-static-top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" aria-expanded="false" aria-controls="navbar" type="button" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcg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I2NSw0MS42NDV6ICAgIE00NC4xNywxNy4yMDJsMy41MzksMy41MzhsLTMuNjA3LDMuNjA4bC0zLjUzOS0zLjUzOEw0NC4xNywxNy4yMDJ6IiBmaWxsPSIjRkZGRkZGIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==" /> UI Builder</a>
</div>
<div class="navbar-collapse collapse" id="navbar">
<ul class="nav navbar-nav">
<li class=""><a id="preview" onclick="PreviewFile(document.querySelector('#drop').innerHTML)" href="#">Preview</a></li>
<li class=""><a data-toggle="modal" data-target="#myModal" ng-click="source()" id="source" href="#">Source</a></li>
<li class=""><a id="save" ng-click="save()" href="#">Save</a></li>
<li class=""><a id="reset" ng-click="reset()" href="#">Reset</a></li>
<li class=""><a id="wp" ng-click="MakeFile(document.querySelector('#drop').innerHTML)" href="#">WP Theme</a></li>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div id="drag" class="col-md-2" >
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
Drag Html Elements
</li>
<li ng-repeat="el in HtmlElements">
<a class="drag" draggable="true" drag-element href="#">{{el}}</a>
</li>
<li class="sidebar-brand">
Components
</li>
<li ng-repeat="el in Components">
<a class="drag" draggable="true" drag-element href="#">{{el}}</a>
</li>
</div>
</div>
<div class="col-md-8">
<div id="drop" drop-area class="row">
</div>
</div>
<div class="col-md-2">
<h4>Properties</h4>
<div class="form-group">
<label for="className">Class</label>
<input type="text" name="className" id="className" class="form-control" value="">
</div>
<div class="form-group">
<label for="className">Src</label>
<input type="text" id="src" class="form-control" value="">
</div>
<div class="form-group">
<button type="button" ng-click="remove()" class="btn btn-danger" id="remove">Remove Element</button>
</div>
<div class="form-group">
<label for="SelectedNode">Selected Node</label>
<input type="text" name="SelectedNode" id="SelectedNode" class="form-control "disabled value="">
</div>
<div class="form-group">
<label for="SelectedNodeClass">Selected Node Class</label>
<input type="text" name="SelectedNodeClass" id="SelectedNodeClass" class="form-control "disabled value="">
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Source Code</h4>
<p>
don't forget to include Bootstrap.css and Bootstrap.js
</p>
</div>
<div class="modal-body">
<div id="modal-body" >
<textarea id="code" class="form-control" name="name" rows="20" cols="40"></textarea>
</div>
</div>
</div>
</div>
</div>
<footer id="footer">
</footer>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/angular-touch.js"></script>
<script src="js/MainController.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>