Compare commits
13 Commits
new-jquery
...
v1.0.0
Author | SHA1 | Date | |
---|---|---|---|
21cecab368 | |||
336f7ab4f8 | |||
c61dc82574 | |||
539483ad42 | |||
c67a812614 | |||
5df6e992cb | |||
2cf7294ce0 | |||
4fbc2a6c39 | |||
2123cb9f75 | |||
c7a42cdc88 | |||
533ec3a867 | |||
274f7014f7 | |||
a1b2b894ed |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
node_modules/
|
node_modules/
|
||||||
|
dist/
|
||||||
dist/
|
|
11
gulpfile.js
11
gulpfile.js
@ -116,7 +116,6 @@ var jsTasks = lazypipe()
|
|||||||
.pipe(optimizejs)
|
.pipe(optimizejs)
|
||||||
//.pipe(rename, {suffix: '.min'})
|
//.pipe(rename, {suffix: '.min'})
|
||||||
.pipe(uglify)
|
.pipe(uglify)
|
||||||
.pipe(optimizejs)
|
|
||||||
.pipe(header, banner.main, {package: package})
|
.pipe(header, banner.main, {package: package})
|
||||||
.pipe(dest, paths.scripts.output);
|
.pipe(dest, paths.scripts.output);
|
||||||
|
|
||||||
@ -244,13 +243,19 @@ var updateAssetVersion = function (done) {
|
|||||||
.pipe(dest(paths.output));
|
.pipe(dest(paths.output));
|
||||||
};
|
};
|
||||||
// updates version in SW
|
// 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) {
|
var buildSW = function (done) {
|
||||||
return src('src/sw.js')
|
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"],
|
.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,
|
regex:/\s*(?:(")([^"]*)|(')([^']*))/ig,
|
||||||
analyze: function analyze(match){return {prefix: "'",link:match[4],suffix: ''};}
|
analyze: function analyze(match){return {prefix: "'",link:match[4],suffix: ''};}
|
||||||
}))
|
}))
|
||||||
.pipe(jsTasks())
|
.pipe(swTasks())
|
||||||
.pipe(dest(paths.output));
|
.pipe(dest(paths.output));
|
||||||
};
|
};
|
||||||
// Watch for changes to the src directory
|
// Watch for changes to the src directory
|
||||||
@ -310,4 +315,4 @@ exports.watch = series(
|
|||||||
exports.default,
|
exports.default,
|
||||||
//startServer,
|
//startServer,
|
||||||
watchSource
|
watchSource
|
||||||
);
|
);
|
||||||
|
@ -11,14 +11,13 @@
|
|||||||
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="public">
|
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="public">
|
||||||
<link rel="canonical" href="https://meritkollen.se/Kontakt">
|
<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://cdnjs.cloudflare.com' crossorigin>
|
||||||
<link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
|
<link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
|
||||||
<script async src="/js/modernizer-webp.js"></script>
|
<script async src="/js/modernizer-webp.js"></script>
|
||||||
<link rel="stylesheet" async href="/css/main.css">
|
<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 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">
|
<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]>
|
<!--[if lt IE 9]>
|
||||||
@ -45,6 +44,7 @@
|
|||||||
<meta name="theme-color" content="#27233a">
|
<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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
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 |
Binary file not shown.
Before Width: | Height: | Size: 10 KiB |
BIN
src/img/tips.jpg
BIN
src/img/tips.jpg
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
@ -17,13 +17,12 @@ echo '
|
|||||||
<meta property="og:description" content="Beräkna ditt gymnasie meritvärde inför univeritet eller högskola">
|
<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">
|
<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://cdnjs.cloudflare.com" crossorigin>
|
||||||
<link rel="preconnect" href="https://pagead2.googlesyndication.com" crossorigin>
|
<link rel="preconnect" href="https://pagead2.googlesyndication.com" crossorigin>
|
||||||
<script async src="/js/modernizer-webp.js"></script>
|
<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 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">
|
<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">
|
<link rel="stylesheet" async href="/css/main.css">
|
||||||
|
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
@ -50,4 +49,5 @@ echo '
|
|||||||
<meta name="theme-color" content="#27233a">
|
<meta name="theme-color" content="#27233a">
|
||||||
|
|
||||||
|
|
||||||
|
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
';
|
';
|
||||||
|
@ -19,13 +19,12 @@
|
|||||||
<meta property="og:description" content="Beräkna ditt gymnasie meritvärde inför univeritet eller högskola">
|
<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">
|
<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://cdnjs.cloudflare.com' crossorigin>
|
||||||
<link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
|
<link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
|
||||||
<script async src="/js/modernizer-webp.js"></script>
|
<script async src="/js/modernizer-webp.js"></script>
|
||||||
<link rel="stylesheet" async href="/css/main.css">
|
<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">
|
<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>
|
</head>
|
||||||
<body id="bg">
|
<body id="bg">
|
||||||
|
|
||||||
|
2
src/js/jquery.js
vendored
2
src/js/jquery.js
vendored
@ -2827,7 +2827,7 @@ function nodeName( elem, name ) {
|
|||||||
|
|
||||||
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
|
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 );
|
var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
;(function() {
|
(function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2220,7 +2220,7 @@ MaterialSnackbar.prototype.cleanup_ = function () {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
this.element_.setAttribute('aria-hidden', 'true');
|
this.element_.setAttribute('aria-hidden', 'true');
|
||||||
this.textElement_.textContent = '';
|
this.textElement_.textContent = '';
|
||||||
if (!Boolean(this.actionElement_.getAttribute('aria-hidden'))) {
|
if (!this.actionElement_.getAttribute('aria-hidden')) {
|
||||||
this.setActionHidden_(true);
|
this.setActionHidden_(true);
|
||||||
this.actionElement_.textContent = '';
|
this.actionElement_.textContent = '';
|
||||||
this.actionElement_.removeEventListener('click', this.actionHandler_);
|
this.actionElement_.removeEventListener('click', this.actionHandler_);
|
||||||
@ -2881,7 +2881,7 @@ MaterialTextfield.prototype['checkDisabled'] = MaterialTextfield.prototype.check
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
MaterialTextfield.prototype.checkFocus = function () {
|
MaterialTextfield.prototype.checkFocus = function () {
|
||||||
if (Boolean(this.element_.querySelector(':focus'))) {
|
if ((this.element_.querySelector(':focus'))) {
|
||||||
this.element_.classList.add(this.CssClasses_.IS_FOCUSED);
|
this.element_.classList.add(this.CssClasses_.IS_FOCUSED);
|
||||||
} else {
|
} else {
|
||||||
this.element_.classList.remove(this.CssClasses_.IS_FOCUSED);
|
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('touchend', this.boundMouseEnterHandler, false);
|
||||||
this.forElement_.addEventListener('mouseleave', this.boundMouseLeaveAndScrollHandler, false);
|
this.forElement_.addEventListener('mouseleave', this.boundMouseLeaveAndScrollHandler, false);
|
||||||
window.addEventListener('scroll', this.boundMouseLeaveAndScrollHandler, true);
|
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.ignoringMouseDown_ = false;
|
||||||
this.boundDownHandler = this.downHandler_.bind(this);
|
this.boundDownHandler = this.downHandler_.bind(this);
|
||||||
this.element_.addEventListener('mousedown', this.boundDownHandler);
|
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.boundUpHandler = this.upHandler_.bind(this);
|
||||||
this.element_.addEventListener('mouseup', this.boundUpHandler);
|
this.element_.addEventListener('mouseup', this.boundUpHandler);
|
||||||
this.element_.addEventListener('mouseleave', this.boundUpHandler);
|
this.element_.addEventListener('mouseleave', this.boundUpHandler);
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
importScripts('/cache-polyfill.js');
|
importScripts('/js/cache-polyfill.js');
|
||||||
|
|
||||||
|
|
||||||
self.addEventListener('install', function(e) {
|
self.addEventListener('install', function(e) {
|
||||||
|
self.skipWaiting();
|
||||||
e.waitUntil(
|
e.waitUntil(
|
||||||
caches.open('meritkollen').then(function(cache) {
|
caches.open('meritkollen').then(function(cache) {
|
||||||
return cache.addAll([
|
return cache.addAll([
|
||||||
|
Reference in New Issue
Block a user