Commit 5986bb7b authored by Nick Freear's avatar Nick Freear

Fix `.gitlab-ci` YAML; add version to title attribute, in Javascript

parent 1ae694b2
Pipeline #21938176 passed with stage
in 1 minute and 54 seconds
......@@ -34,8 +34,7 @@ job 1:
# - data/*
- gaad-*.tgz
- _*.png
only:
- tags
expire_in: 1 week
after_script:
- npm run ps
......
......@@ -7,6 +7,12 @@
* Download on the [releases page][rel]. (Also, see the [wishlist][].)
## Version 3.2.2
* _Date: ~ May 2018_
* _Tag: 3.2.2_
* Fix `getConfig()` Javascript function, #11;
## Version 3.2.1
* _Date: ~ May 2018_
......
......@@ -9,6 +9,7 @@
</body>
</html>
<!--
Usage:
......@@ -17,6 +18,6 @@ Usage:
.gaad-widget-ifr { width: 100%; height: 4.2em; border: none; }
</style>
<iframe src="https://cdn.rawgit.com/nfreear/gaad-widget/3.0.0-beta/embed/" class="gaad-widget-ifr"></iframe>
<iframe src="https://cdn.rawgit.com/nfreear/gaad-widget/3.2.2/embed/" class="gaad-widget-ifr"></iframe>
-->
......@@ -7,7 +7,7 @@
'use strict';
var VERSION = '3.2.1'; // <Auto>
var VERSION = '3.2.2'; // <Auto>
var TRANSLATE_TEXTS = require('./data/locales'); // JSON.
var GAAD_DATE_LOOKUP = require('./data/gaad-dates.min'); // JSON.
......
{
"name": "gaad-widget",
"version": "3.2.1",
"version": "3.2.2",
"x-version-hat": "^3",
"description": "Display a banner-link to promote Global Accessibility Awareness Day (GAAD). Display the banner for a period before and after the day. Via unpkg CDN.",
"license": "MIT",
......@@ -82,7 +82,7 @@
"fr",
"zh-cn"
],
"x-build-js-size": "12.9 kB",
"x-build-js-size": "12.7 kB",
"x-cdn": "https://unpkg.com/gaad-widget@^3/dist/gaad-widget.min.js",
"#": {
"Datejs-legacy": "https://github.com/datejs/Datejs#8164739566",
......
......@@ -38,7 +38,7 @@ module.exports.config = function (TRANSLATE_TEXTS, DATES, VERSION) {
name: 'gaadWidget',
id: 'UA-102188521-1'
},
put_widget: '<a class=p href="https://github.com/nfreear/gaad-widget#usage" aria-label="{p}" title="{p}" target=_top >{c}</a>',
put_widget: '<a class=p href="https://github.com/nfreear/gaad-widget#usage" aria-label="{p}" title="{p} (v{v})" target=_top >{c}</a>',
put_char: '&#x2193;', // 'Downwards arrow to bar' - http://xahlee.info/comp/unicode_arrows.html; http://amp-what.com/
debug: /[&?#!]debug=1/.test(queryString),
force: /[&?#!]gaad.?widget=f(orce)?/i.test(queryString)
......
......@@ -35,7 +35,7 @@ module.exports.run = function (defaults, methods) {
gaad.lang = lang;
var template = gaad.is_before ? texts[ lang ].before : texts[ lang ].after;
var putWidget = methods.replaceObj(gaad.put_widget, { '{p}': methods.trans('put'), '{c}': gaad.put_char });
var putWidget = methods.replaceObj(gaad.put_widget, { '{p}': methods.trans('put'), '{c}': gaad.put_char, '{v}': gaad.version });
gaad.xreplace[ '{g}' ] = texts[ lang ].name;
gaad.message = methods.replaceObj(template, gaad.xreplace) + putWidget;
......
......@@ -18,10 +18,12 @@
</p>
<script data-gaad-widget=
'{ "debug": true, "X-lang": "fr", "X-theme": "black", "X-analytics": null }'></script>
<script data-CDN-src="https://unpkg.com/gaad-widget@^3#._.js"></script>
<script src="../dist/gaad-widget.js" data-gaad-widget=
'{ "debug": true, "X-lang": "fr", "X-theme": "black", "X-analytics": null }'></script>
<script src="../dist/gaad-widget.js"></script>
<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