Don't inject stylesheets with JavaScript

This reverts 4d619d71b1 (see #1527), going back to what we had after e13075f6ff (see #881).

To avoid the 404 in the hosted examples, the css is copied to the same relative path when hosted as during development.
This commit is contained in:
Tim Schaub
2014-02-21 18:45:46 -07:00
parent 1d2c88efb9
commit e633f7f8c1
75 changed files with 78 additions and 4 deletions

View File

@@ -59,7 +59,6 @@
pairs.push(encodeURIComponent(key) + '=' + encodeURIComponent(params[key]));
}
document.write('<link rel="stylesheet" href="../css/ol.css" type="text/css">');
var url = 'http://' + host + '/compile?' + pairs.join('&');
document.write('<script type="text/javascript" src="' + url + '"></script>');
}());