forked from adobe/brackets
-
Notifications
You must be signed in to change notification settings - Fork 279
/
index.html
156 lines (133 loc) · 5.77 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
153
154
155
156
<!doctype html>
<!--
Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
-->
<html spellcheck="false">
<head>
<meta charset="utf-8">
<title></title>
<!-- CSS/LESS -->
<style>
/*
* Initial loading spinner css, inlined so we don't block loading.
* Spinner is based on https://github.com/tobiasahlin/SpinKit (MIT)
*/
#spinner-container {
height: 100vh;
background-color: #f8f8f8;
}
.sk-spinner-rotating-plane.sk-spinner {
bottom: 0;
top: 0;
left: 0;
right: 0;
margin: auto;
position: absolute;
max-width: 50%;
width: 50px;
height: 50px;
background-color: #47484b;
-webkit-animation: sk-rotatePlane 1.2s infinite ease-in-out;
animation: sk-rotatePlane 1.2s infinite ease-in-out;
/**
* Fix for Firefox's jagged edges:
* http://stackoverflow.com/questions/9235342/3d-css-transform-jagged-edges-in-firefox
*/
outline: 1px solid transparent;
}
@-webkit-keyframes sk-rotatePlane {
0% {
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
}
50% {
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
}
100% {
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}
@keyframes sk-rotatePlane {
0% {
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
}
50% {
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
}
100% {
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}
#main-view {
height: 100vh;
visibility: hidden;
}
#iframe-warning {
display: none;
padding: 20px;
font-size: 16px;
}
</style>
<!-- NOTE: All scripts must be external for Chrome App support: http://developer.chrome.com/apps/app_csp.html -->
<!--(if target dev)><!-->
<link rel="stylesheet" type="text/css" href="thirdparty/CodeMirror/lib/codemirror.css">
<link rel="stylesheet/less" type="text/css" href="styles/bramble.less">
<!--<!(endif)-->
<!--(if target dist)>
<link rel="stylesheet" type="text/css" href="styles/brackets.min.css">
<!--<!(endif)-->
</head>
<body>
<!-- We show a spinner on startup, which gets removed when loaded by
bramble's UI.initUI().
-->
<div id="spinner-container">
<div class="sk-spinner sk-spinner-rotating-plane"></div>
<div id="iframe-warning">
<h1>Bramble must be hosted</h1>
<p>Oops! Bramble was loaded directly, outside of an iframe. For security it must be hosted in an iframe.</p>
<p>For local development, you can run Bramble in an iframe by using <a href="hosted.html">hosted.html</a> instead of <strong>index.html<strong>.</p>
</div>
</div>
<!-- HTML content is dynamically loaded and rendered by brackets.js.
Any modules that depend on or modify HTML during load should
require the "utils/AppInit" module and install a callback for
"htmlReady" (e.g. AppInit.htmlReady(handler)) before touching the DOM.
-->
<div id="main-view"></div>
<!-- JavaScript -->
<!--(if target dev)>><!-->
<!-- We only use LESS in development. In dist builds, we pre-compile to CSS -->
<script src="thirdparty/less.min.js"></script>
<!--<!(endif)-->
<!-- Pre-load third party scripts that cannot be async loaded. -->
<!-- build:js thirdparty/thirdparty.min.js -->
<script src="thirdparty/browser-appshell.js"></script>
<script src="thirdparty/jquery-2.1.3.min.js"></script>
<!-- endbuild -->
<!-- All other scripts are loaded through require. -->
<!-- build:js main.js -->
<script src="thirdparty/require.min.js" data-main="main"></script>
<!-- endbuild -->
</body>
</html>