fallbacks for noscript
parent
8a1aee319d
commit
5a2f9bbd33
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "navigation"
|
||||
date: 2022-05-27T13:40:38+02:00
|
||||
type: "nav"
|
||||
layout: "nav"
|
||||
draft: false
|
||||
---
|
@ -0,0 +1 @@
|
||||
../prettier/bin-prettier.js
|
@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "hugo-batsite",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"node_modules/prettier": {
|
||||
"version": "2.6.2",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
|
||||
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,111 @@
|
||||

|
||||
|
||||
<h2 align="center">Opinionated Code Formatter</h2>
|
||||
|
||||
<p align="center">
|
||||
<em>
|
||||
JavaScript
|
||||
· TypeScript
|
||||
· Flow
|
||||
· JSX
|
||||
· JSON
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
CSS
|
||||
· SCSS
|
||||
· Less
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
HTML
|
||||
· Vue
|
||||
· Angular
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
GraphQL
|
||||
· Markdown
|
||||
· YAML
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
<a href="https://prettier.io/docs/en/plugins.html">
|
||||
Your favorite language?
|
||||
</a>
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3AProd+branch%3Amain">
|
||||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Prod?label=Prod&style=flat-square"></a>
|
||||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev+branch%3Amain">
|
||||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Dev?label=Dev&style=flat-square"></a>
|
||||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint+branch%3Amain">
|
||||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Lint?label=Lint&style=flat-square"></a>
|
||||
<a href="https://codecov.io/gh/prettier/prettier">
|
||||
<img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a>
|
||||
<a href="https://twitter.com/acdlite/status/974390255393505280">
|
||||
<img alt="Blazing Fast" src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-brightgreen.svg?style=flat-square"></a>
|
||||
<br/>
|
||||
<a href="https://www.npmjs.com/package/prettier">
|
||||
<img alt="npm version" src="https://img.shields.io/npm/v/prettier.svg?style=flat-square"></a>
|
||||
<a href="https://www.npmjs.com/package/prettier">
|
||||
<img alt="weekly downloads from npm" src="https://img.shields.io/npm/dw/prettier.svg?style=flat-square"></a>
|
||||
<a href="#badge">
|
||||
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>
|
||||
<a href="https://gitter.im/jlongster/prettier">
|
||||
<img alt="Chat on Gitter" src="https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square"></a>
|
||||
<a href="https://twitter.com/PrettierCode">
|
||||
<img alt="Follow Prettier on Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square"></a>
|
||||
</p>
|
||||
|
||||
## Intro
|
||||
|
||||
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
|
||||
|
||||
### Input
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```js
|
||||
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
|
||||
```
|
||||
|
||||
### Output
|
||||
|
||||
```js
|
||||
foo(
|
||||
reallyLongArg(),
|
||||
omgSoManyParameters(),
|
||||
IShouldRefactorThis(),
|
||||
isThereSeriouslyAnotherOne()
|
||||
);
|
||||
```
|
||||
|
||||
Prettier can be run [in your editor](https://prettier.io/docs/en/editors.html) on-save, in a [pre-commit hook](https://prettier.io/docs/en/precommit.html), or in [CI environments](https://prettier.io/docs/en/cli.html#list-different) to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!
|
||||
|
||||
---
|
||||
|
||||
**[Documentation](https://prettier.io/docs/en/)**
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
[Install](https://prettier.io/docs/en/install.html) ·
|
||||
[Options](https://prettier.io/docs/en/options.html) ·
|
||||
[CLI](https://prettier.io/docs/en/cli.html) ·
|
||||
[API](https://prettier.io/docs/en/api.html)
|
||||
|
||||
**[Playground](https://prettier.io/playground/)**
|
||||
|
||||
---
|
||||
|
||||
## Badge
|
||||
|
||||
Show the world you're using _Prettier_ → [](https://github.com/prettier/prettier)
|
||||
|
||||
```md
|
||||
[](https://github.com/prettier/prettier)
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
@ -0,0 +1,62 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __commonJS = function(cb, mod) {
|
||||
return function __require() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
};
|
||||
|
||||
// node_modules/semver-compare/index.js
|
||||
var require_semver_compare = __commonJS({
|
||||
"node_modules/semver-compare/index.js": function(exports2, module2) {
|
||||
module2.exports = function cmp(a, b) {
|
||||
var pa = a.split(".");
|
||||
var pb = b.split(".");
|
||||
for (var i = 0; i < 3; i++) {
|
||||
var na = Number(pa[i]);
|
||||
var nb = Number(pb[i]);
|
||||
if (na > nb)
|
||||
return 1;
|
||||
if (nb > na)
|
||||
return -1;
|
||||
if (!isNaN(na) && isNaN(nb))
|
||||
return 1;
|
||||
if (isNaN(na) && !isNaN(nb))
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/please-upgrade-node/index.js
|
||||
var require_please_upgrade_node = __commonJS({
|
||||
"node_modules/please-upgrade-node/index.js": function(exports2, module2) {
|
||||
var semverCompare = require_semver_compare();
|
||||
module2.exports = function pleaseUpgradeNode2(pkg, opts) {
|
||||
var opts = opts || {};
|
||||
var requiredVersion = pkg.engines.node.replace(">=", "");
|
||||
var currentVersion = process.version.replace("v", "");
|
||||
if (semverCompare(currentVersion, requiredVersion) === -1) {
|
||||
if (opts.message) {
|
||||
console.error(opts.message(requiredVersion));
|
||||
} else {
|
||||
console.error(pkg.name + " requires at least version " + requiredVersion + " of Node, please upgrade");
|
||||
}
|
||||
if (opts.hasOwnProperty("exitCode")) {
|
||||
process.exit(opts.exitCode);
|
||||
} else {
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// bin/prettier.js
|
||||
var pleaseUpgradeNode = require_please_upgrade_node();
|
||||
var packageJson = require("./package.json");
|
||||
pleaseUpgradeNode(packageJson);
|
||||
var cli = require("./cli.js");
|
||||
module.exports = cli.run(process.argv.slice(2));
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "prettier",
|
||||
"version": "2.6.2",
|
||||
"description": "Prettier is an opinionated code formatter",
|
||||
"bin": "./bin-prettier.js",
|
||||
"repository": "prettier/prettier",
|
||||
"funding": "https://github.com/prettier/prettier?sponsor=1",
|
||||
"homepage": "https://prettier.io",
|
||||
"author": "James Long",
|
||||
"license": "MIT",
|
||||
"main": "./index.js",
|
||||
"browser": "./standalone.js",
|
||||
"unpkg": "./standalone.js",
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"files": [
|
||||
"*.js",
|
||||
"esm/*.mjs"
|
||||
],
|
||||
"scripts": {
|
||||
"prepublishOnly": "node -e \"assert.equal(require('.').version, require('..').version)\""
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "hugo-batsite",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"devDependencies": {
|
||||
"prettier": "2.6.2"
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "2.6.2",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
|
||||
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"prettier": {
|
||||
"version": "2.6.2",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
|
||||
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"prettier": "2.6.2"
|
||||
}
|
||||
}
|
@ -1,9 +1,11 @@
|
||||
import { updateMode } from "./lightmode.js";
|
||||
import { activateHamburger } from "./hamburger.js";
|
||||
import { randomizeWords } from "./randomword.js";
|
||||
import { unhide_elements } from "./noscript.js";
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
updateMode();
|
||||
activateHamburger();
|
||||
randomizeWords();
|
||||
unhide_elements();
|
||||
});
|
||||
|
@ -0,0 +1,10 @@
|
||||
const flexes = document.getElementsByClassName("flexjs");
|
||||
const iflexes = document.getElementsByClassName("iflexjs");
|
||||
export function unhide_elements() {
|
||||
for (let element of flexes) {
|
||||
element.style.display = "flex";
|
||||
}
|
||||
for (let element of iflexes) {
|
||||
element.style.display = "inline-flex";
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<title>navigation@bat</title>
|
||||
<script type="module" src="/js/main.js"></script>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/scss/main.css">
|
||||
<link rel="alternate" type="application/rss+xml" href="https://zoe.kittycat.homes/nav/index.xml" title="bat" />
|
||||
<link rel="icon" type="image/x-icon" href="/svg/favicon.svg">
|
||||
</head>
|
||||
<body class="colorswitch"><div id="content">
|
||||
<section id="main">
|
||||
<header>
|
||||
<h1 id="title" class="colorswitch">
|
||||
<a href="../" class="colorswitch uplink">navigation</a>
|
||||
</h1>
|
||||
</header>
|
||||
<div>
|
||||
<article id="content" class="colorswitch">
|
||||
|
||||
<p>
|
||||
<nav>
|
||||
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/" title="home"> home</a>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/links/" title="links"> links</a>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/music/" title="music"> music</a>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/games/" title="games"> games</a>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/software/" title="software"> software</a>
|
||||
|
||||
</nav>
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
</div><footer class="colorswitch">
|
||||
<span id="footer-left"><a href="/" id="pageindicator" class="colorswitch" title="navigation"> bat</a></span>
|
||||
<span id="footer-center">
|
||||
<nav id="footer-nav" aria-label="navigation">
|
||||
|
||||
|
||||
<a class="footer-nav-item colorswitch" href="/" title="home"> </a>
|
||||
|
||||
<a class="footer-nav-item colorswitch" href="/links/" title="links"> </a>
|
||||
|
||||
<a class="footer-nav-item colorswitch" href="/music/" title="music"> </a>
|
||||
|
||||
<a class="footer-nav-item colorswitch" href="/games/" title="games"> </a>
|
||||
|
||||
<a class="footer-nav-item colorswitch" href="/software/" title="software"> </a>
|
||||
|
||||
</nav>
|
||||
</span>
|
||||
<span id="footer-right">
|
||||
<div class="flexjs">
|
||||
<input type="checkbox" id="darkmode-toggle" aria-label="darkmode toggle" class="toggleinput">
|
||||
<label class="togglelabel colorswitch" for="darkmode-toggle" aria-label="darkmode toggle" role="checkbox" id="darkmode-toggle-label"></label>
|
||||
</div>
|
||||
<div class="flexjs">
|
||||
<button type="button" id="darkmode-button-small" class="colorswitch hamburger"></button>
|
||||
<nav aria-label="hamburger menu">
|
||||
<button type="button" id="hamburger-button" class="colorswitch hamburger" title="hamburger navigation menu button"></button>
|
||||
</nav>
|
||||
</div>
|
||||
<noscript>
|
||||
<nav>
|
||||
<a class="colorswitch footer-nav-item" id="replacement-burger" href="/nav"></a>
|
||||
</nav>
|
||||
</noscript>
|
||||
<div class="hamburger colorswitch hidden" id="hamburger-bg">
|
||||
<nav id="hamburger-nav" aria-label="navigation">
|
||||
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/" title="home"> home</a><br>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/links/" title="links"> links</a><br>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/music/" title="music"> music</a><br>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/games/" title="games"> games</a><br>
|
||||
|
||||
<a class="hamburger-nav-item colorswitch" href="/software/" title="software"> software</a><br>
|
||||
|
||||
</nav>
|
||||
</span>
|
||||
</noscript>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>navigation on bat</title>
|
||||
<link>https://zoe.kittycat.homes/nav/</link>
|
||||
<description>Recent content in navigation on bat</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>eng</language>
|
||||
<lastBuildDate>Fri, 27 May 2022 13:40:38 +0200</lastBuildDate><atom:link href="https://zoe.kittycat.homes/nav/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|