UNPKG

5.04 kBHTMLView Raw
1<!doctype html>
2
3<!--
4 Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23-->
24
25<html>
26<head>
27 <meta charset="utf-8">
28 <title></title>
29
30 <!-- CSS/LESS -->
31
32 <!-- CSS for CodeMirror search support, currently for debugging only -->
33 <link rel="stylesheet" href="thirdparty/CodeMirror2/lib/util/dialog.css">
34
35 <!-- Temporary CSS for unobtrusive scrollbars. This can't live in LESS because it uses
36 nonstandard WebKit-specific syntax. -->
37 <link rel="stylesheet" href="styles/quiet-scrollbars.css">
38
39 <!-- Warn about failed cross origin requests in Chrome -->
40 <script type="application/javascript">
41 /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
42 /*global brackets: true */
43 (function () {
44 "use strict";
45 // Abort if running in the shell, running on a server or not running in Chrome
46 if (typeof (brackets) !== "undefined"
47 || document.location.href.substr(0, 7) !== "file://"
48 || navigator.userAgent.search(" Chrome/") === -1) {
49 return;
50 }
51
52 function handleError(e) {
53 // Ignore this error if it does not look like the rather vague cross origin error in Chrome
54 // Chrome will print it to the console anyway
55 if (e.type !== "error" || e.message !== "Script error." || e.lineno !== 0) {
56 return;
57 }
58 // Show an error message
59 alert("Oops! This application doesn't run in browsers yet.\n\nIt is built in HTML, but right now it runs as a desktop app so you can use it to edit local files. Please use the application shell in the following repo to run this application:\n\ngithub.com/adobe/brackets-shell");
60 // But only for the first cross site scripting error
61 window.removeEventListener('error', handleError);
62 }
63
64 window.addEventListener("error", handleError);
65 }());
66 </script>
67
68 <!-- TODO (Issue #278): switch between runtime LESS compilation in dev mode and precompiled version -->
69 <link rel="stylesheet/less" href="styles/brackets.less">
70 <script src="thirdparty/less-1.3.0.min.js"></script>
71 <script src="thirdparty/mustache/mustache.js"></script>
72 <!-- <link rel="stylesheet" href="brackets.min.css"> -->
73
74 <!-- JavaScript -->
75
76 <!-- Pre-load third party scripts that cannot be async loaded. -->
77 <script src="thirdparty/jquery-1.7.min.js"></script>
78 <script src="thirdparty/CodeMirror2/lib/codemirror.js"></script>
79
80 <!-- JS for CodeMirror search support, currently for debugging only -->
81 <script src="thirdparty/CodeMirror2/lib/util/dialog.js"></script>
82 <script src="thirdparty/CodeMirror2/lib/util/searchcursor.js"></script>
83 <script src="thirdparty/CodeMirror2/lib/util/search.js"></script>
84 <script src="thirdparty/CodeMirror2/lib/util/closetag.js"></script>
85
86 <!-- [node]: <<<<<< (Add server variables) -->
87 <!-- [node]: ====== -->
88 <script type="application/javascript">
89 /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
90 /*global brackets: true */
91 window.serverVariables = JSON.parse('{{{data}}}');
92 </script>
93 <!-- [node]: >>>>>> -->
94</head>
95<body>
96
97 <!-- HTML content is dynamically loaded and rendered by brackets.js.
98 Any modules that depend on or modify HTML during load should
99 require the "utils/AppInit" module and install a callback for
100 "htmlReady" (e.g. AppInit.htmlReady(handler)) before touching the DOM.
101 -->
102
103 <!-- All other scripts are loaded through require. -->
104 <script src="thirdparty/require.js" data-main="brackets"></script>
105
106</body>
107</html>