mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
docs: mourn
This commit is contained in:
parent
e78c8daeab
commit
0f914db92b
@ -1,3 +1,4 @@
|
|||||||
|
import './mourn';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import VueRouter from 'vue-router';
|
import VueRouter from 'vue-router';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
12
docs/src/mourn.js
Normal file
12
docs/src/mourn.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
const now = new Date();
|
||||||
|
|
||||||
|
if (now.getFullYear() === 2020 && now.getMonth() === 3 && now.getDate() === 4) {
|
||||||
|
const filter = `
|
||||||
|
html{
|
||||||
|
filter: grayscale(100%);
|
||||||
|
-webkit-filter: grayscale(100%);
|
||||||
|
-moz-filter: grayscale(100%);
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
document.head.insertAdjacentHTML('beforeend', `<style>${filter}</style>`);
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import './mourn';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import Preview from './Preview.vue';
|
import Preview from './Preview.vue';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user