forked from cory/tildefriends
Make the editor pane resizable.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3700 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
f760d48368
commit
d4f7fdfc40
@ -647,6 +647,7 @@ function removeFile() {
|
||||
}
|
||||
|
||||
window.addEventListener("load", function() {
|
||||
Split(['#editPane', '#viewPane'], {minSize: 0});
|
||||
if (window.Notification) {
|
||||
Notification.requestPermission();
|
||||
}
|
||||
|
@ -285,6 +285,8 @@ var kStaticFiles = [
|
||||
{uri: '/client.js', type: 'text/javascript; charset=UTF-8'},
|
||||
{uri: '/robots.txt', type: 'text/plain; charset=UTF-8'},
|
||||
|
||||
{uri: '/split.min.js'},
|
||||
{uri: '/split.min.js.map'},
|
||||
{uri: '/codemirror/codemirror.min.js'},
|
||||
{uri: '/codemirror/base16-dark.min.css'},
|
||||
{uri: '/codemirror/matchesonscrollbar.min.css'},
|
||||
@ -344,6 +346,7 @@ async function speedScopeHandler(request, response, uri) {
|
||||
'js': 'text/javascript',
|
||||
'html': 'text/html',
|
||||
'css': 'text/css',
|
||||
'map': 'application/json',
|
||||
};
|
||||
try {
|
||||
var data = await File.readFile("deps/speedscope/" + filename);
|
||||
|
@ -42,10 +42,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vbox" style="flex: 1 0 50%; overflow: auto">
|
||||
<div id="viewPane" class="vbox" style="flex: 1 0 50%; overflow: auto">
|
||||
<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals" style="width: 100%; height: 100%; border: 0"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/split.min.js"></script>
|
||||
<script src="/static/client.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
3
core/split.min.js
vendored
Normal file
3
core/split.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
core/split.min.js.map
Normal file
1
core/split.min.js.map
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user