source: branches/fscctrl_safety_limits/dim/WebDID/ext-4.1.1a/bootstrap.js@ 19365

Last change on this file since 19365 was 14939, checked in by tbretz, 12 years ago
Added WebDID from v20r5
File size: 6.8 KB
Line 
1/*
2Ext JS 4.1 - JavaScript Library
3Copyright (c) 2006-2012, Sencha Inc.
4All rights reserved.
5licensing@sencha.com
6
7http://www.sencha.com/license
8
9Open Source License
10------------------------------------------------------------------------------------------
11This version of Ext JS is licensed under the terms of the Open Source GPL 3.0 license.
12
13http://www.gnu.org/licenses/gpl.html
14
15There are several FLOSS exceptions available for use with this release for
16open source applications that are distributed under a license other than GPL.
17
18* Open Source License Exception for Applications
19
20 http://www.sencha.com/products/floss-exception.php
21
22* Open Source License Exception for Development
23
24 http://www.sencha.com/products/ux-exception.php
25
26
27Alternate Licensing
28------------------------------------------------------------------------------------------
29Commercial and OEM Licenses are available for an alternate download of Ext JS.
30This is the appropriate option if you are creating proprietary applications and you are
31not prepared to distribute and share the source code of your application under the
32GPL v3 license. Please visit http://www.sencha.com/license for more details.
33
34--
35
36This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS. See the GNU General Public License for more details.
37*/
38/*
39Ext JS 4.1 - JavaScript Library
40Copyright (c) 2006-2012, Sencha Inc.
41All rights reserved.
42licensing@sencha.com
43
44http://www.sencha.com/license
45
46Open Source License
47------------------------------------------------------------------------------------------
48This version of Ext JS is licensed under the terms of the Open Source GPL 3.0 license.
49
50http://www.gnu.org/licenses/gpl.html
51
52There are several FLOSS exceptions available for use with this release for
53open source applications that are distributed under a license other than GPL.
54
55* Open Source License Exception for Applications
56
57 http://www.sencha.com/products/floss-exception.php
58
59* Open Source License Exception for Development
60
61 http://www.sencha.com/products/ux-exception.php
62
63
64Alternate Licensing
65------------------------------------------------------------------------------------------
66Commercial and OEM Licenses are available for an alternate download of Ext JS.
67This is the appropriate option if you are creating proprietary applications and you are
68not prepared to distribute and share the source code of your application under the
69GPL v3 license. Please visit http://www.sencha.com/license for more details.
70
71--
72
73This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS. See the GNU General Public License for more details.
74*/
75/*
76Ext JS 4.1 - JavaScript Library
77Copyright (c) 2006-2012, Sencha Inc.
78All rights reserved.
79licensing@sencha.com
80
81http://www.sencha.com/license
82
83Open Source License
84------------------------------------------------------------------------------------------
85This version of Ext JS is licensed under the terms of the Open Source GPL 3.0 license.
86
87http://www.gnu.org/licenses/gpl.html
88
89There are several FLOSS exceptions available for use with this release for
90open source applications that are distributed under a license other than GPL.
91
92* Open Source License Exception for Applications
93
94 http://www.sencha.com/products/floss-exception.php
95
96* Open Source License Exception for Development
97
98 http://www.sencha.com/products/ux-exception.php
99
100
101Alternate Licensing
102------------------------------------------------------------------------------------------
103Commercial and OEM Licenses are available for an alternate download of Ext JS.
104This is the appropriate option if you are creating proprietary applications and you are
105not prepared to distribute and share the source code of your application under the
106GPL v3 license. Please visit http://www.sencha.com/license for more details.
107
108--
109
110This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS. See the GNU General Public License for more details.
111*/
112/*
113This file is part of Ext JS 4.1
114
115Copyright (c) 2011-2012 Sencha Inc
116
117Contact: http://www.sencha.com/contact
118
119GNU General Public License Usage
120This file may be used under the terms of the GNU General Public License version 3.0 as
121published by the Free Software Foundation and appearing in the file LICENSE included in the
122packaging of this file.
123
124Please review the following information to ensure the GNU General Public License version 3.0
125requirements will be met: http://www.gnu.org/copyleft/gpl.html.
126
127If you are unsure which license is appropriate for your use, please contact the sales department
128at http://www.sencha.com/contact.
129
130Build date: 2012-07-04 21:11:01 (65ff594cd80b9bad45df640c22cc0adb52c95a7b)
131*/
132/**
133 * Load the library located at the same path with this file
134 *
135 * Will automatically load ext-all-dev.js if any of these conditions is true:
136 * - Current hostname is localhost
137 * - Current hostname is an IP v4 address
138 * - Current protocol is "file:"
139 *
140 * Will load ext-all.js (minified) otherwise
141 */
142(function() {
143 var scripts = document.getElementsByTagName('script'),
144 localhostTests = [
145 /^localhost$/,
146 /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:\d{1,5})?\b/ // IP v4
147 ],
148 host = window.location.hostname,
149 isDevelopment = null,
150 queryString = window.location.search,
151 test, path, i, ln, scriptSrc, match;
152
153 for (i = 0, ln = scripts.length; i < ln; i++) {
154 scriptSrc = scripts[i].src;
155
156 match = scriptSrc.match(/bootstrap\.js$/);
157
158 if (match) {
159 path = scriptSrc.substring(0, scriptSrc.length - match[0].length);
160 break;
161 }
162 }
163
164 if (queryString.match('(\\?|&)debug') !== null) {
165 isDevelopment = true;
166 }
167 else if (queryString.match('(\\?|&)nodebug') !== null) {
168 isDevelopment = false;
169 }
170
171 if (isDevelopment === null) {
172 for (i = 0, ln = localhostTests.length; i < ln; i++) {
173 test = localhostTests[i];
174
175 if (host.search(test) !== -1) {
176 isDevelopment = true;
177 break;
178 }
179 }
180 }
181
182 if (isDevelopment === null && window.location.protocol === 'file:') {
183 isDevelopment = true;
184 }
185
186 document.write('<script type="text/javascript" charset="UTF-8" src="' +
187 path + 'ext-all' + (isDevelopment ? '-dev' : '') + '.js"></script>');
188})();
Note: See TracBrowser for help on using the repository browser.