-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknockouteditor.html
62 lines (58 loc) · 2.59 KB
/
knockouteditor.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
<!doctype html>
<html>
<head>
<script src="/michael/github/master/lib/underscore-min.js"></script>
<script src="/michael/github/b6cfa64b01c3bd4d1e14e1617a7e97548f6fa3e8/github.js"></script>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://ace.c9.io/build/src/ace.js" data-ace-base="src" type="text/javascript" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.3.0/knockout-min.js"></script>
<script src="/shagstrom/split-pane/master/split-pane.js"></script>
<link rel="stylesheet" href="knockouteditor.css" />
</head>
<body>
<div id="tool-bar">
<button data-bind="click: addProject">New Project</button>
<select style="width:100px" data-bind="options: projectList, value: currentProject"></select>
<span data-bind="with:currentProject">
<button data-bind="click: $parent.closeProject">Close Project</button>
</span>
<div data-bind="with: currentProject">
<b data-bind="text:title"></b> <button data-bind="click: addDocument">New Doc</button>
<ol data-bind="foreach: documents">
<li style="display: inline;">
<button data-bind="text:title, click:$parent.showDocument"></button> <a href="#close" data-bind="click: $parent.closeDocument">[x]</a>
</li>
</ol>
</div>
</div>
<div id="container">
<div class="split-pane fixed-left">
<div class="split-pane-component" id="left-component">
<button id="toggle-pane-left">x</button>
<h1>File browser</h1>
</div>
<div class="split-pane-divider" id="first-divider"></div>
<div class="split-pane-component" id="right-component">
<div class="split-pane fixed-right">
<div class="split-pane-component" id="inner-left-component">
<div id="editor" style="width: 100%; height: 100%;">No documents opened!</div>
</div>
<div class="split-pane-divider" id="second-divider"></div>
<div class="split-pane-component" style="height: 100%" id="inner-right-component">
<div class="preview-url"><input id="url"></div>
<div class="preview-iframe">
<iframe src="http://it4se.com:8080/kdmon/Test-repo/master/averagecolour.html" style="width: 100%; height: 100%;"></iframe>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="knockouteditor.js"></script>
<script>
$(function() {
$('div.split-pane').splitPane();
});
</script>
</body>
</html>