mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-25 17:43:07 +02:00
first rebase
ALSO: Remove fading on dropdown menu click. This is also a bug on the actual upstream, when the cursor leaves the screen the menu disappears but the fading doesn't. This causes things like the menu saying it's open when it's not and closed when open. I'm not dealing with an upstream bug.
This commit is contained in:
committed by
lifehackerhansol
parent
247e815186
commit
5641d7e51a
20
banner.js
20
banner.js
@@ -1,17 +1,19 @@
|
||||
const fs = require('fs');
|
||||
const pkg = require('./package.json');
|
||||
const filename = 'assets/js/main.min.js';
|
||||
const fs = require("fs");
|
||||
const pkg = require("./package.json");
|
||||
const filename = "assets/js/main.min.js";
|
||||
const script = fs.readFileSync(filename);
|
||||
const padStart = str => ('0' + str).slice(-2)
|
||||
const dateObj = new Date;
|
||||
const date = `${dateObj.getFullYear()}-${padStart(dateObj.getMonth() + 1)}-${padStart(dateObj.getDate())}`;
|
||||
const padStart = str => ("0" + str).slice(-2);
|
||||
const dateObj = new Date();
|
||||
const date = `${dateObj.getFullYear()}-${padStart(
|
||||
dateObj.getMonth() + 1
|
||||
)}-${padStart(dateObj.getDate())}`;
|
||||
const banner = `/*!
|
||||
* Minimal Mistakes Jekyll Theme ${pkg.version} by ${pkg.author}
|
||||
* Copyright ${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
|
||||
* Copyright 2013-${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
|
||||
* Licensed under ${pkg.license}
|
||||
*/
|
||||
`;
|
||||
|
||||
if (script.slice(0, 3) != '/**') {
|
||||
if (script.slice(0, 3) != "/**") {
|
||||
fs.writeFileSync(filename, banner + script);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user