This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

pre 0.1.4

  • Loading branch information...
1 parent d4aafd4 commit 2928834bef036fad0d2914f23b08f9bca59706fa @anstosa committed Sep 13, 2011
Showing with 643 additions and 671 deletions.
  1. 0 README
  2. +245 −43 css/options.css
  3. +2 −1 js/libs/Module.js
  4. +100 −72 js/libs/background.js
  5. +0 −36 js/libs/runtime.js
  6. +36 −0 js/minimalist.js
  7. +45 −471 js/options.js
  8. +17 −16 manifest.json
  9. +198 −32 options.html
View
0 README
No changes.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -7,7 +7,8 @@
var name = "",
includes = "",
- isEnabled = true;
+ isEnabled = true,
+ options = new Array();
function Module(params) {
debug("creating module: " + params.name);
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -9,40 +9,4 @@ function debug(message) {
if (prefs.isDebugging == "true") {
console.log("Minimalist: " + message);
}
-}
-
-function buildStyles(options) {
- var styleData;
- for (var i = 0, l = options.length; i < l; i++) {
- if (options[i].hasOwnProperty("head") && options[i].head.hasOwnProperty("css") && (styleData = options[i].head.css) != null && options[i].isEnabled) {
- for (var j = 0, e = styleData.length; j < e; j++) {
- styles += "\n " + styleData[j];
- }
- styles += "\n";
- }
- }
-}
-
-function buildHeadScripts(options) {
- var scriptData;
- for (var i = 0, l = options.length; i < l; i++) {
- if (options[i].hasOwnProperty("head") && options[i].head.hasOwnProperty("js") && (scriptData = options[i].head.js) && options[i].isEnabled) {
- for (var j = 0, e = scriptData.length; j < e; j++) {
- headScripts += "\n " + scriptData[j];
- }
- headScripts += "\n";
- }
- }
-}
-
-function buildBodyScripts(options) {
- var scriptData;
- for (var i = 0, l = options.length; i < l; i++) {
- if (options[i].hasOwnProperty("load") && (scriptData = options[i].load.js) && options[i].isEnabled) {
- for (var j = 0, e = scriptData.length; j < e; j++) {
- bodyScripts += "\n " + scriptData[j];
- }
- bodyScripts += "\n";
- }
- }
}
View
@@ -23,4 +23,40 @@ function buildModules() {
buildBodyScripts(moduleOptions);
}
}
+
+function buildStyles(options) {
+ var styleData;
+ for (var i = 0, l = options.length; i < l; i++) {
+ if (options[i].hasOwnProperty("head") && options[i].head.hasOwnProperty("css") && (styleData = options[i].head.css) != null && options[i].isEnabled) {
+ for (var j = 0, e = styleData.length; j < e; j++) {
+ styles += "\n " + styleData[j];
+ }
+ styles += "\n";
+ }
+ }
+}
+
+function buildHeadScripts(options) {
+ var scriptData;
+ for (var i = 0, l = options.length; i < l; i++) {
+ if (options[i].hasOwnProperty("head") && options[i].head.hasOwnProperty("js") && (scriptData = options[i].head.js) && options[i].isEnabled) {
+ for (var j = 0, e = scriptData.length; j < e; j++) {
+ headScripts += "\n " + scriptData[j];
+ }
+ headScripts += "\n";
+ }
+ }
+}
+
+function buildBodyScripts(options) {
+ var scriptData;
+ for (var i = 0, l = options.length; i < l; i++) {
+ if (options[i].hasOwnProperty("load") && (scriptData = options[i].load.js) && options[i].isEnabled) {
+ for (var j = 0, e = scriptData.length; j < e; j++) {
+ bodyScripts += "\n " + scriptData[j];
+ }
+ bodyScripts += "\n";
+ }
+ }
+}
/* === END CONSTURCTION === */
Oops, something went wrong.

0 comments on commit 2928834

Please sign in to comment.