42 Commits

Author SHA1 Message Date
6e9cfa638b Bump socket.io-parser and browser-sync
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) to 4.2.1 and updates ancestor dependency [browser-sync](https://github.com/BrowserSync/browser-sync). These dependencies need to be updated together.


Updates `socket.io-parser` from 3.2.0 to 4.2.1
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/3.2.0...4.2.1)

Updates `browser-sync` from 2.26.7 to 2.27.10
- [Release notes](https://github.com/BrowserSync/browser-sync/releases)
- [Changelog](https://github.com/BrowserSync/browser-sync/blob/master/CHANGELOG.md)
- [Commits](https://github.com/BrowserSync/browser-sync/compare/v2.26.7...v2.27.10)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
- dependency-name: browser-sync
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-30 15:18:40 +00:00
d57f1ac75a Merge pull request #22 from thefeli73/dependabot/npm_and_yarn/color-string-1.5.5
Bump color-string from 1.5.3 to 1.5.5
2021-07-01 22:42:57 +02:00
99ee61e110 Merge pull request #21 from thefeli73/dependabot/npm_and_yarn/postcss-7.0.36
Bump postcss from 7.0.21 to 7.0.36
2021-07-01 22:42:47 +02:00
29377d03c4 Merge pull request #20 from thefeli73/dependabot/npm_and_yarn/browserslist-4.16.6
Bump browserslist from 4.7.2 to 4.16.6
2021-07-01 22:42:38 +02:00
1de0c61d3a Bump browserslist from 4.7.2 to 4.16.6
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.7.2 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.7.2...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 20:42:29 +00:00
bbc4765ea7 Merge pull request #19 from thefeli73/dependabot/npm_and_yarn/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.5 to 2.8.9
2021-07-01 22:42:26 +02:00
2754120e90 Bump color-string from 1.5.3 to 1.5.5
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.5.5)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 20:42:19 +00:00
0fbe5cb668 Merge pull request #18 from thefeli73/dependabot/npm_and_yarn/y18n-3.2.2
Bump y18n from 3.2.1 to 3.2.2
2021-07-01 22:42:13 +02:00
edfc34341b Merge pull request #17 from thefeli73/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2021-07-01 22:41:48 +02:00
8c16978c57 Merge pull request #16 from thefeli73/dependabot/npm_and_yarn/node-sass-4.14.1
Bump node-sass from 4.13.0 to 4.14.1
2021-07-01 22:41:40 +02:00
baa8a98d9f Bump postcss from 7.0.21 to 7.0.36
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.21 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.21...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-16 13:53:55 +00:00
57d62af1ea Bump hosted-git-info from 2.8.5 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.5 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.5...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 07:13:57 +00:00
3b285440a8 Bump y18n from 3.2.1 to 3.2.2
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 03:43:48 +00:00
9bab70df9a Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-12 00:44:31 +00:00
c16c48ff2e Bump node-sass from 4.13.0 to 4.14.1
Bumps [node-sass](https://github.com/sass/node-sass) from 4.13.0 to 4.14.1.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v4.13.0...v4.14.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-04 20:34:58 +00:00
c5333f8739 add ico to root 2020-04-27 09:11:52 +02:00
c26703ddb3 Merge remote-tracking branch 'meritkollen/develop' into develop 2020-04-09 23:04:56 +02:00
8838a46731 fix robots, google needs assets 2020-04-09 23:04:46 +02:00
40d5ef9b44 fix robots 2020-04-09 22:56:45 +02:00
969501bfaa Update README.md 2020-01-27 12:23:35 +01:00
0e23b19816 Update README.md 2020-01-27 12:23:26 +01:00
dc90a6f512 robots 2020-01-15 18:20:10 +01:00
28a4e4c9d6 package lock 2020-01-08 14:35:23 +01:00
2c91ce5c57 package 2019-12-13 20:39:40 +01:00
7e3741f4eb packagelock 2019-12-01 15:24:37 +01:00
97c46bc23f crawlers should see ads 2019-11-26 15:22:02 +01:00
f20526ae3a added full stop 2019-11-12 20:24:02 +01:00
f9cc87605a Merge branch 'master' into develop 2019-11-12 19:39:22 +01:00
5c9392abcd fix manifest, hardcode hash 2019-11-12 19:35:14 +01:00
21cecab368 Merge pull request #14 from thefeli73/develop
release v1.0.0
2019-11-12 18:53:52 +01:00
336f7ab4f8 Merge branch 'master' into develop 2019-11-12 18:53:18 +01:00
c61dc82574 move polyfill so it gets compressed 2019-11-12 18:43:32 +01:00
539483ad42 remove old files 2019-11-12 18:37:22 +01:00
c67a812614 service worker fix 2019-11-12 18:31:19 +01:00
5df6e992cb [CodeFactor] Apply fixes to commit 2cf7294 2019-11-12 17:03:11 +00:00
2cf7294ce0 passive eventlisteners 2019-11-12 18:02:52 +01:00
4fbc2a6c39 move ads to bottom of head 2019-11-12 17:40:53 +01:00
2123cb9f75 prioritize background load 2019-11-12 17:33:50 +01:00
c7a42cdc88 [CodeFactor] Apply fixes to commit 533ec3a 2019-11-12 16:26:43 +00:00
533ec3a867 Merge branch 'new-jquery' into develop 2019-11-12 17:26:20 +01:00
274f7014f7 make sw activate if updated 2019-11-12 16:35:23 +01:00
a1b2b894ed ignore shit files 2019-11-08 01:17:26 +01:00
20 changed files with 1308 additions and 694 deletions

3
.gitignore vendored
View File

@ -1,4 +1,3 @@
node_modules/
dist/
dist/

View File

@ -3,4 +3,6 @@ En enkel meritkalkylator
## Link
https://meritkollen.se/
Release: https://meritkollen.se/
Development: https://dev.meritkollen.se/

View File

@ -116,7 +116,6 @@ var jsTasks = lazypipe()
.pipe(optimizejs)
//.pipe(rename, {suffix: '.min'})
.pipe(uglify)
.pipe(optimizejs)
.pipe(header, banner.main, {package: package})
.pipe(dest, paths.scripts.output);
@ -244,13 +243,19 @@ var updateAssetVersion = function (done) {
.pipe(dest(paths.output));
};
// updates version in SW
var swTasks = lazypipe()
.pipe(optimizejs)
.pipe(uglify)
.pipe(header, banner.main, {package: package})
.pipe(dest, paths.output);
var buildSW = function (done) {
return src('src/sw.js')
.pipe(hashsrc({build_dir:paths.output,src_path:"src",hash_len:"6",query_name:"v",exts:[".json",".webp",".jpg",".css",".png",".ico",".js"],
regex:/\s*(?:(")([^"]*)|(')([^']*))/ig,
analyze: function analyze(match){return {prefix: "'",link:match[4],suffix: ''};}
}))
.pipe(jsTasks())
.pipe(swTasks())
.pipe(dest(paths.output));
};
// Watch for changes to the src directory
@ -310,4 +315,4 @@ exports.watch = series(
exports.default,
//startServer,
watchSource
);
);

1941
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@
],
"devDependencies": {
"autoprefixer": "^9.6.1",
"browser-sync": "^2.26.7",
"browser-sync": "^2.27.10",
"cssnano": "^4.1.10",
"del": "^3.0.0",
"gulp": "^4.0.2",
@ -45,7 +45,8 @@
"gulp-usemin": "^0.3.30",
"jshint": "^2.9.6",
"jshint-stylish": "^2.2.1",
"lazypipe": "^1.0.1"
"lazypipe": "^1.0.1",
"purify-css": "^1.2.5"
},
"dependencies": {
"gulp-hash-src": "^0.1.6"

View File

@ -11,14 +11,13 @@
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="public">
<link rel="canonical" href="https://meritkollen.se/Kontakt">
<link rel='preload' async href='/img/background85.webp' as='image' type='image/webp'>
<link rel='preconnect' href='https://cdnjs.cloudflare.com' crossorigin>
<link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
<script async src="/js/modernizer-webp.js"></script>
<link rel="stylesheet" async href="/css/main.css">
<link rel='preload' async href='/img/background85.webp' as='image' type='image/webp'>
<link disabled class="lateLoader" rel='stylesheet' defer href='https://fonts.googleapis.com/icon?family=Material+Icons'>
<link rel="stylesheet" defer href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!--[if lt IE 9]>
@ -45,6 +44,7 @@
<meta name="theme-color" content="#27233a">
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body>

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 5.9 MiB

After

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

View File

@ -3,12 +3,12 @@
"name": "Meritkollen",
"icons": [
{
"src": "android-chrome-192x192.png",
"src": "/img/favicon/android-chrome-192x192.png?v=34eb8d",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "android-chrome-512x512.png",
"src": "/img/favicon/android-chrome-512x512.png?v=cfeaa1",
"sizes": "512x512",
"type": "image/png"
}
@ -17,4 +17,4 @@
"background_color": "#ffffff",
"start_url": "https://meritkollen.se",
"display": "fullscreen"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -17,13 +17,12 @@ echo '
<meta property="og:description" content="Beräkna ditt gymnasie meritvärde inför univeritet eller högskola">
<meta name="title" content="Räkna ut ditt meritvärde">
<link rel="preload" async href="/img/background85.webp" as="image" type="image/webp">
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
<link rel="preconnect" href="https://pagead2.googlesyndication.com" crossorigin>
<script async src="/js/modernizer-webp.js"></script>
<link rel="preload" async href="/img/background85.webp" as="image" type="image/webp">
<link disabled class="lateLoader" rel="stylesheet" defer href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" defer href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<link rel="stylesheet" async href="/css/main.css">
<!--[if lt IE 9]>
@ -50,4 +49,5 @@ echo '
<meta name="theme-color" content="#27233a">
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
';

View File

@ -19,13 +19,12 @@
<meta property="og:description" content="Beräkna ditt gymnasie meritvärde inför univeritet eller högskola">
<meta name="title" content="Räkna ut ditt meritvärde">
<link rel="preload" async href="/img/background85.webp" as="image" type="image/webp">
<link rel='preconnect' href='https://cdnjs.cloudflare.com' crossorigin>
<link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
<script async src="/js/modernizer-webp.js"></script>
<link rel="stylesheet" async href="/css/main.css">
<link rel="preload" async href="/img/background85.webp" as="image" type="image/webp">
<link rel="stylesheet" defer href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
@ -55,6 +54,7 @@
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body id="bg">
@ -97,7 +97,7 @@ XXXX
<h2 class="mdl-card__title-text">Meritkollen</h2>
</div>
<div class="mdl-card__supporting-text">
Räkna ut ditt meritvärde inför högskolan eller universitet. Med våran meritkalkylator får du enkelt fram ditt jämförelsetal. Gjord för gymnasieelever med A-F betygsskalan
Räkna ut ditt meritvärde inför högskolan eller universitet. Med våran meritkalkylator får du enkelt fram ditt jämförelsetal. Gjord för gymnasieelever med A-F betygsskalan.
</div>
<div class="mdl-card__title mdl-card--expand">
<h2 class="mdl-card__title-text">Om oss</h2>

2
src/js/jquery.js vendored
View File

@ -2827,7 +2827,7 @@ function nodeName( elem, name ) {
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
};
}
var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );

View File

@ -1,4 +1,4 @@
;(function() {
(function() {
"use strict";
/**
@ -2220,7 +2220,7 @@ MaterialSnackbar.prototype.cleanup_ = function () {
setTimeout(function () {
this.element_.setAttribute('aria-hidden', 'true');
this.textElement_.textContent = '';
if (!Boolean(this.actionElement_.getAttribute('aria-hidden'))) {
if (!this.actionElement_.getAttribute('aria-hidden')) {
this.setActionHidden_(true);
this.actionElement_.textContent = '';
this.actionElement_.removeEventListener('click', this.actionHandler_);
@ -2881,7 +2881,7 @@ MaterialTextfield.prototype['checkDisabled'] = MaterialTextfield.prototype.check
* @public
*/
MaterialTextfield.prototype.checkFocus = function () {
if (Boolean(this.element_.querySelector(':focus'))) {
if ((this.element_.querySelector(':focus'))) {
this.element_.classList.add(this.CssClasses_.IS_FOCUSED);
} else {
this.element_.classList.remove(this.CssClasses_.IS_FOCUSED);
@ -3120,7 +3120,7 @@ MaterialTooltip.prototype.init = function () {
this.forElement_.addEventListener('touchend', this.boundMouseEnterHandler, false);
this.forElement_.addEventListener('mouseleave', this.boundMouseLeaveAndScrollHandler, false);
window.addEventListener('scroll', this.boundMouseLeaveAndScrollHandler, true);
window.addEventListener('touchstart', this.boundMouseLeaveAndScrollHandler);
window.addEventListener('touchstart', this.boundMouseLeaveAndScrollHandler, {passive: true});
}
}
};
@ -3905,7 +3905,7 @@ MaterialRipple.prototype.init = function () {
this.ignoringMouseDown_ = false;
this.boundDownHandler = this.downHandler_.bind(this);
this.element_.addEventListener('mousedown', this.boundDownHandler);
this.element_.addEventListener('touchstart', this.boundDownHandler);
this.element_.addEventListener('touchstart', this.boundDownHandler, {passive: true});
this.boundUpHandler = this.upHandler_.bind(this);
this.element_.addEventListener('mouseup', this.boundUpHandler);
this.element_.addEventListener('mouseleave', this.boundUpHandler);

View File

@ -1,8 +1,6 @@
User-agent: *
Disallow: /assets/
Disallow: /include/
Disallow: /404.html
Disallow: /50x.html
Disallow: /sw.js
Disallow: /cache-polyfill.js
Disallow: /ads.txt

View File

@ -1,7 +1,8 @@
importScripts('/cache-polyfill.js');
importScripts('/js/cache-polyfill.js');
self.addEventListener('install', function(e) {
self.skipWaiting();
e.waitUntil(
caches.open('meritkollen').then(function(cache) {
return cache.addAll([
@ -18,6 +19,7 @@ self.addEventListener('install', function(e) {
'/img/background85.webp',
'/img/favicon/manifest.json',
'/img/favicon/android-chrome-192x192.png',
'/img/favicon/android-chrome-512x512.png',
'/img/favicon/favicon-32x32.png',
'/img/favicon/favicon-16x16.png',
'/img/favicon/favicon.ico',