diff --git a/README.md b/README.md
index 1165f2a..c52b6d5 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,6 @@ A javascript library providing server defined loading of assets for a single pag
* debug.prefix = Debug message prefix. (default: 'FFSpaLoader.')
* error.handler = The error handler. (default: internal error handler ui)
* error.title = The error title. (default: 'Loader ');
- * error.style = The error ui css style. (default: red error)
* boot.cordova.enable = Use deviceready event to boot when cordova is detected. (default: true)
* boot.cordova.timeout = Boot after (if<0=no-)timeout when deviceready event is not received. (default: -1)
* boot.cordova.flag = The window flag which is set when cordova is booted. (default: 'FFCordovaDevice')
@@ -94,7 +93,6 @@ A javascript library providing server defined loading of assets for a single pag
* question.submit = The start button text. (default: 'Start')
* question.text = The question ui text. (default: 'Please provide the server name;')
* question.size = The question ui input size. (default: 32)
- * question.style = The question ui css style. (default: blue input)
* question.validate.min.value = The minimal hostname length, false is disabled (default: 3)
* question.validate.min.message = The error message (default: 'Server name is to short.')
* question.validate.max.value = The maximal hostname length, false is disabled (default: 255)
@@ -197,7 +195,6 @@ A javascript library providing server defined loading of assets for a single pag
* Server header check support
* Add instance websql options so it can also be used in application code.
* Split assets per type so do js first then boot then css + cssData.
- * Move css to file ?
* Add more tests
* css: set tag.media = 'only you';
* css: add media in resouces
@@ -211,6 +208,11 @@ Add unit tests for any new or changed functionality. Lint and test your code.
## Release History
+### 0.2.0
+* Dropped error.style and question.style for css file.
+* Change dist with extra css/js folder.
+
+
### 0.1.1
* Moved websql delete timeout to cleanServerlUrl for faster boot.
* Fixed websql db-size and db-name for older androids.
diff --git a/es5-ff-spa-loader.css b/es5-ff-spa-loader.css
new file mode 100644
index 0000000..866ebe9
--- /dev/null
+++ b/es5-ff-spa-loader.css
@@ -0,0 +1,49 @@
+
+body {
+ color: #EFF0F1;
+ background: #484948;
+}
+
+.ffError {
+ margin: 3em;
+ border-left: 0.3em solid #B55858;
+ border-radius: 1em;
+ padding: 0em 1em 0.3em 1em;
+}
+
+.ffQuestion {
+ margin: 3em;
+ border-left: 0.3em solid #3F68AD;
+ border-radius: 1em;
+ padding: 0em 1em 0.3em 1em;
+}
+
+.ffQuestion>div>input {
+ margin: 0.4em;
+ padding: 0.4em;
+ line-height: 2em;
+ background-color: #454442;
+ color: #EFF0F1;
+ border: none;
+ border-radius: 0.4em;
+ outline: none;
+ min-width: 5em;
+}
+
+.ffQuestion>div>input:focus {
+ border: none;
+}
+
+.ffQuestionError {
+ color: #B55858;
+}
+
+.ffQuestionLoad {
+ transition: all 0.5s ease;
+ color: #484948;
+}
+
+.ffQuestionLoad>div>input {
+ background-color: #484948;
+ color: #484948;
+}
diff --git a/es5-ff-spa-loader.js b/es5-ff-spa-loader.js
index 52c4bfb..6afa2a7 100644
--- a/es5-ff-spa-loader.js
+++ b/es5-ff-spa-loader.js
@@ -52,8 +52,7 @@
},
error: {
handler: null, // auto filled
- title: 'Loader ',
- style: 'body {color: #EFF0F1;background: #484948;} .ffError { margin: 3em;border-left: 0.3em solid #B55858;border-radius: 1em;padding: 0em 1em 0.3em 1em;}'
+ title: 'Loader '
},
boot: {
cordova: {
@@ -84,8 +83,7 @@
title: 'Question',
submit: 'Start',
size: 32,
- text: 'Please provide the server name',
- style: 'body {color: #EFF0F1;background: #484948;} .ffQuestion { margin: 3em;border-left: 0.3em solid #3F68AD;border-radius: 1em;padding: 0em 1em 0.3em 1em;} .ffQuestion > div > input {margin: 0.4em;padding: 0.4em; line-height: 2em;background-color: #454442;color: #EFF0F1;border: none;border-radius: 0.4em;outline: none;min-width: 5em;} .ffQuestion > div > input:focus {border: none;} .ffQuestionError{color: #B55858;} .ffQuestionLoad {transition: all 0.5s ease;color: #484948;} .ffQuestionLoad > div > input {background-color: #484948;color: #484948;}',
+ text: 'Please provide the server name',
validate: {
min: {
value: 3,
@@ -284,11 +282,6 @@
var rootTag = document.createElement('div');
rootTag.setAttribute('class','ffError');
document.getElementsByTagName('body')[0].appendChild(rootTag);
-
- var cssTag = document.createElement('style');
- cssTag.type = 'text/css';
- cssTag.innerHTML = options.error.style;
- rootTag.appendChild(cssTag);
var titleTag = document.createElement('h1');
titleTag.appendChild(document.createTextNode(options.error.title+err.name));
@@ -724,11 +717,6 @@
var rootTag = document.createElement('div');
rootTag.setAttribute('class','ffQuestion');
- var cssTag = document.createElement('style');
- cssTag.type = 'text/css';
- cssTag.innerHTML = options.question.style;
- rootTag.appendChild(cssTag);
-
var titleTag = document.createElement('h1');
titleTag.appendChild(document.createTextNode(options.question.title));
rootTag.appendChild(titleTag);
diff --git a/example/app_mobile/config.xml b/example/app_mobile/config.xml
index 5854a27..75d774f 100644
--- a/example/app_mobile/config.xml
+++ b/example/app_mobile/config.xml
@@ -33,6 +33,7 @@