Commit d69ad445 authored by Nick Freear's avatar Nick Freear

Bug #8, Edit comments; add `jsonlint`; revalidator [iet:8994834]

parent 2f763fd3
zh*
LICENSE*
bin/*.js
*.html
!test/index.html
......@@ -14,10 +15,12 @@ src/*.json
x_legacy/
node_modules/
*.log
*.diff
composer.*
vendor/
*.js.map
*BAK*
*.js
i18n-texts.js
widget-run.js
......@@ -15,6 +15,6 @@ Usage:
iframe.gaad-widget-ifr { width: 100%; height: 4.2em; border: none; }
</style>
<iframe src="https://cdn.rawgit.com/nfreear/gaad-widget/2.0-beta/embed/" class="gaad-widget-ifr"></iframe>
<iframe src="https://cdn.rawgit.com/nfreear/gaad-widget/2.2-beta/embed/" class="gaad-widget-ifr"></iframe>
-->
{
"name": "gaad-widget",
"version": "2.1.0-beta",
"version": "2.2.0-beta",
"description": "Display a banner-link to promote Global Accessibility Awareness Day (GAAD). Display the banner for a period before and after the day.",
"author": "Nick Freear {@nfreear}",
"license": "MIT",
......@@ -14,6 +14,9 @@
},
"devDependencies": {
"csslint": "^1.0.5",
"jsonlint": "^1.6.2",
"nice-package": "^3.0.3",
"revalidator": "^0.3.1",
"semistandard": "^11.0.0",
"uglify-js": "^2.8.26"
},
......@@ -25,10 +28,11 @@
},
"scripts": {
"install-legacy-datejs": "mkdir x_legacy; npm i --prefix x_legacy https://github.com/datejs/Datejs#8164739566",
"build": "node_modules/.bin/uglifyjs src/c*.js x_legacy/node_modules/Datejs/build/date.js src/w*.js --comments=/^[!*]/ -bo build/GAAD.widget.js",
"x-build-sa": "node_modules/.bin/uglifyjs src/c*.js node_modules/superagent/superagent.js src/w*.js --comments=/^[!*]/ -bo build/GAAD.sa.js",
"build-min": "node_modules/.bin/uglifyjs build/*.widget.js --comments=/^[!*]/ -mco build/GAAD.widget.min.js",
"test": "node_modules/.bin/semistandard; node_modules/.bin/csslint style"
"build": "uglifyjs src/c*.js x_legacy/node_modules/Datejs/build/date.js src/w*c.js --comments=/^[!*]/ -bo build/GAAD.widget.js",
"x-build-sa": "uglifyjs src/c*.js node_modules/superagent/superagent.js src/w*.js --comments=/^[!*]/ -bo build/GAAD.sa.js",
"build-min": "uglifyjs build/*.widget.js --comments=/^[!*]/ -mco build/GAAD.widget.min.js",
"test": "semistandard && csslint style && jsonlint -q **/*.json",
"x-test": "npm test && node bin/nice.js && node bin/lintl.js"
},
"semistandard": {
"ignore": "build/"
......
/*!
GAAD.widget.js | ©2017 Nick Freear | License: MIT | This is not an official widget!
GAAD.widget.js | ©2017 Nick Freear | License: MIT | NOT an official widget!
https://github.com/nfreear/gaad-widget
http://globalaccessibilityawarenessday.org/
http://globalaccessibilityawarenessday.org
*/
/*!
GAAD.widget.js | ©Nick Freear 2017-04-27 | License: MIT.
https://github.com/nfreear/gaad-widget
*/
(function (W, D, location, console, Date) {
......@@ -18,7 +16,7 @@
var defaults = {
id: 'id-gaad',
script: 'GAAD.widget.', // .js OR .min.js;
script: 'GAAD.widget.', // '.js' OR '.min.js';
lang: 'en',
dir: 'ltr',
texts: {
......@@ -157,10 +155,6 @@
styleEl.type = 'text/css';
styleEl.href = url;
/* var styleEl = D.createElement('style');
styleEl.id = gaad.id + '-css';
styleEl.innerText = gaad.css.join('\n'); */
D.head.appendChild(styleEl);
}
})(window, window.document, window.location, window.console, window.Date);
......@@ -7,9 +7,6 @@
<div id="id-gaad"></div>
<script data-CDN-src="https://cdn.rawgit.com/nfreear/gaad-widget/2.0-beta/build/GAAD.widget.js"></script>
<script src="../build/GAAD.widget.js" data-gaad='{ "debug": true, "X-lang": "fr", "X-theme": "black" }'></script>
......@@ -20,6 +17,6 @@
GAAD.widget.js | © 2017 Nick Freear | License: MIT.
* https://github.com/nfreear/gaad-widget
* http://www.globalaccessibilityawarenessday.org
* http://globalaccessibilityawarenessday.org
</pre>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment