inline CSS
This commit is contained in:
parent
d8a254c304
commit
cc2ac11850
5
isso/js/app/text/css.js
Normal file
5
isso/js/app/text/css.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
define(["text!../../../css/isso.css"], function(isso) {
|
||||||
|
return {
|
||||||
|
inline: isso
|
||||||
|
};
|
||||||
|
});
|
@ -2,7 +2,8 @@
|
|||||||
baseUrl: ".",
|
baseUrl: ".",
|
||||||
mainConfigFile: 'config.js',
|
mainConfigFile: 'config.js',
|
||||||
paths: {
|
paths: {
|
||||||
"app/text/svg": "app/text/dummy"
|
"app/text/svg": "app/text/dummy",
|
||||||
|
"app/text/css": "app/text/dummy"
|
||||||
},
|
},
|
||||||
|
|
||||||
name: "components/almond/almond",
|
name: "components/almond/almond",
|
||||||
|
@ -3,16 +3,15 @@
|
|||||||
* Distributed under the MIT license
|
* Distributed under the MIT license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require(["ready", "app/api", "app/isso", "app/count", "app/dom", "app/markup"], function(domready, api, isso, count, $, Mark) {
|
require(["ready", "app/api", "app/isso", "app/count", "app/dom", "app/markup", "app/text/css"], function(domready, api, isso, count, $, Mark, css) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
domready(function() {
|
domready(function() {
|
||||||
var css = $.new("link");
|
var style = $.new("style");
|
||||||
css.type = "text/css";
|
style.type = "text/css";
|
||||||
css.rel = "stylesheet";
|
style.textContent = css.inline;
|
||||||
css.href = api.endpoint + "/css/isso.css";
|
$("head").append(style);
|
||||||
$("head").append(css);
|
|
||||||
|
|
||||||
count();
|
count();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user