diff --git a/HTML/atomicity.coffee b/HTML/atomicity.coffee index dceeaa072..df53e9e28 100644 --- a/HTML/atomicity.coffee +++ b/HTML/atomicity.coffee @@ -9,6 +9,20 @@ editor.getSession().setMode new JavaScriptMode editor.getSession().setUseSoftTabs true editor.getSession().setTabSize 2 +if css = File.read "~/.atomicity/twilight.css" + head = $('head')[0] + style = document.createElement 'style' + rules = document.createTextNode css + style.type = 'text/css' + style.appendChild rules + head.appendChild style + +_.map Dir.list("~/.atomicity/"), (path) -> + if /\.js$/.test path + $.getScript path + else if /\.coffee/.test path + eval CoffeeScript.compile File.read path + filename = null editor.getSession().on 'change', -> Chrome.setDirty true diff --git a/HTML/index.html b/HTML/index.html index e755916b7..1ca7f99a2 100644 --- a/HTML/index.html +++ b/HTML/index.html @@ -26,11 +26,5 @@ \ No newline at end of file