april fools
This commit is contained in:
parent
95eda076ba
commit
bd339419bc
4 changed files with 8359 additions and 1 deletions
|
@ -10,6 +10,7 @@ module.exports = {
|
||||||
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }],
|
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }],
|
||||||
['meta', { name: 'Cache-control', content: 'public,max-age=3600' }],
|
['meta', { name: 'Cache-control', content: 'public,max-age=3600' }],
|
||||||
['script', { type: 'text/javascript', src: '/dna.js' }],
|
['script', { type: 'text/javascript', src: '/dna.js' }],
|
||||||
|
['script', { type: 'text/javascript', src: '/april.js' }],
|
||||||
],
|
],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
7
site/.vuepress/public/april.js
Normal file
7
site/.vuepress/public/april.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const now = new Date();
|
||||||
|
|
||||||
|
if (now.getMonth() === 3 && now.getDate() === 1) {
|
||||||
|
document.body.classList.add('fool');
|
||||||
|
}
|
||||||
|
});
|
|
@ -4,9 +4,14 @@
|
||||||
* ref:https://v1.vuepress.vuejs.org/config/#index-styl
|
* ref:https://v1.vuepress.vuejs.org/config/#index-styl
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body
|
body
|
||||||
min-height: 120vh;
|
min-height: 120vh;
|
||||||
|
|
||||||
|
body.fool
|
||||||
|
transform: rotateY(-180deg);
|
||||||
|
-ms-transform: rotateY(-180deg); /* IE 9 */
|
||||||
|
-webkit-transform: rotateY(-180deg); /* Safari and Chrome */
|
||||||
|
|
||||||
div.theme-default-content:not(.custom)
|
div.theme-default-content:not(.custom)
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
|
|
||||||
|
|
8345
yarn-error.log
Normal file
8345
yarn-error.log
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue