@internetstiftelsen/styleguide 2.22.3-beta.0.53 → 2.22.3-beta.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,7 +40,7 @@ if (sourceElement) {
|
|
|
40
40
|
// Set localStorage if video has started playing
|
|
41
41
|
if (video.currentTime > 0) {
|
|
42
42
|
var currentGuideURL = window.location.href;
|
|
43
|
-
var currentGuideImage =
|
|
43
|
+
var currentGuideImage = video.dataset.featuredImage;
|
|
44
44
|
localStorage.setItem('InmsCurrentTime', video.currentTime);
|
|
45
45
|
localStorage.setItem('InmsDuration', video.duration); // Get totalt duration of video
|
|
46
46
|
localStorage.setItem('InmsCurrentGuideURL', currentGuideURL);
|
|
@@ -266,7 +266,6 @@ function displayChapters() {
|
|
|
266
266
|
|
|
267
267
|
[].forEach.call(idSelectors, function (idSelector) {
|
|
268
268
|
idSelector.classList.add('is-current');
|
|
269
|
-
idSelector.focus();
|
|
270
269
|
});
|
|
271
270
|
|
|
272
271
|
if (chapterCues) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internetstiftelsen/styleguide",
|
|
3
|
-
"version": "2.22.3-beta.0.
|
|
3
|
+
"version": "2.22.3-beta.0.56",
|
|
4
4
|
"main": "dist/components.js",
|
|
5
5
|
"ports": {
|
|
6
6
|
"fractal": "3000"
|
|
@@ -11,14 +11,13 @@
|
|
|
11
11
|
"build:fractal": "fractal build",
|
|
12
12
|
"scss": "sass src/app.scss public/assets/css/app.css",
|
|
13
13
|
"stylelint": "stylelint 'src/**/*.scss' '!**/vendor/**' '!**/colors/_colors-functions.scss' --fix --cache --cache-location '.stylelintcache'",
|
|
14
|
-
"autoprefixer": "postcss --use autoprefixer -b 'last 2 versions' public/assets/css/app.css -d public/assets/css/",
|
|
15
14
|
"cssmin": "postcss --use cssnano -b '' public/assets/css/app.css > public/assets/css/app.min.css",
|
|
16
15
|
"browserify": "browserify public/assets/js/cjs/app.js -o public/assets/js/scripts.js",
|
|
17
16
|
"babel": "npx babel src --out-dir public/assets/js/cjs --ignore src/**/*.config.js",
|
|
18
17
|
"eslint": "eslint --fix src",
|
|
19
18
|
"uglify": "uglifyjs -o public/assets/js/scripts.js public/assets/js/scripts.js",
|
|
20
19
|
"imagemin": "imagemin --out-dir=public/assets/img src/**/*.{png,jpg,gif}",
|
|
21
|
-
"build:css": "npm run stylelint && npm run scss && npm run
|
|
20
|
+
"build:css": "npm run stylelint && npm run scss && npm run cssmin",
|
|
22
21
|
"build:js": "npm run eslint && npm run babel && npm run browserify",
|
|
23
22
|
"build:img": "npm run imagemin",
|
|
24
23
|
"watch:css": "onchange 'src/**/*.scss' -- npm run build:css",
|
|
@@ -45,7 +44,6 @@
|
|
|
45
44
|
"@frctl/mandelbrot": "^1.9.2",
|
|
46
45
|
"@internetstiftelsen/eslint-config": "^0.0.5",
|
|
47
46
|
"@internetstiftelsen/stylelint-config": "^1.0.0",
|
|
48
|
-
"autoprefixer": "^10.2.6",
|
|
49
47
|
"babel-cli": "^6.26.0",
|
|
50
48
|
"babel-eslint": "^10.0.3",
|
|
51
49
|
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
|
@@ -38,7 +38,7 @@ if (sourceElement) {
|
|
|
38
38
|
// Set localStorage if video has started playing
|
|
39
39
|
if (video.currentTime > 0) {
|
|
40
40
|
const currentGuideURL = window.location.href;
|
|
41
|
-
const currentGuideImage =
|
|
41
|
+
const currentGuideImage = video.dataset.featuredImage;
|
|
42
42
|
localStorage.setItem('InmsCurrentTime', video.currentTime);
|
|
43
43
|
localStorage.setItem('InmsDuration', video.duration); // Get totalt duration of video
|
|
44
44
|
localStorage.setItem('InmsCurrentGuideURL', currentGuideURL);
|
|
@@ -265,7 +265,6 @@ function displayChapters() {
|
|
|
265
265
|
|
|
266
266
|
[].forEach.call(idSelectors, (idSelector) => {
|
|
267
267
|
idSelector.classList.add('is-current');
|
|
268
|
-
idSelector.focus();
|
|
269
268
|
});
|
|
270
269
|
|
|
271
270
|
if (chapterCues) {
|