Mercurial > hg > extraction-interface
comparison geotemco/js/Build/Minifier/simile-ajax-basic.js @ 0:b12c99b7c3f0
commit for previous development
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 19 Jan 2015 17:13:49 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b12c99b7c3f0 |
---|---|
1 /* | |
2 * simile-ajax-basic.js | |
3 * | |
4 * Copyright (c) 2012, Stefan Jänicke. All rights reserved. | |
5 * | |
6 * This library is free software; you can redistribute it and/or | |
7 * modify it under the terms of the GNU Lesser General Public | |
8 * License as published by the Free Software Foundation; either | |
9 * version 3 of the License, or (at your option) any later version. | |
10 * | |
11 * This library is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * Lesser General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU Lesser General Public | |
17 * License along with this library; if not, write to the Free Software | |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
19 * MA 02110-1301 USA | |
20 */ | |
21 | |
22 /** | |
23 * basic code which is included in front of simile ajax code for the minified version | |
24 * @author Stefan Jänicke (stjaenicke@informatik.uni-leipzig.de) | |
25 * @release 1.0 | |
26 * @release date: 2012-07-27 | |
27 * @version date: 2012-07-27 | |
28 */ | |
29 | |
30 SimileAjax_urlPrefix = GeoTemCoMinifier_urlPrefix + 'lib/simile/ajax/'; | |
31 | |
32 if ( typeof window.SimileAjax == "undefined") { | |
33 window.SimileAjax = { | |
34 loadingScriptsCount : 0, | |
35 error : null, | |
36 params : { | |
37 bundle : "true" | |
38 } | |
39 }; | |
40 | |
41 SimileAjax.Platform = new Object(); | |
42 SimileAjax.includeCssFile = function(doc, url) { | |
43 var link = doc.createElement("link"); | |
44 link.setAttribute("rel", "stylesheet"); | |
45 link.setAttribute("type", "text/css"); | |
46 link.setAttribute("href", url); | |
47 doc.getElementsByTagName("head")[0].appendChild(link); | |
48 }; | |
49 SimileAjax.urlPrefix = SimileAjax_urlPrefix; | |
50 } |