Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@2152c31696c8409983789c80ab57c4d91465a2fc # v4
uses: github/codeql-action/init@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
with:
languages: "javascript"
queries: +security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2152c31696c8409983789c80ab57c4d91465a2fc # v4
uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
17 changes: 0 additions & 17 deletions .github/workflows/dependency-review.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Install dependencies
run: npm install --no-package-lock

- name: Lint Code Base
uses: super-linter/super-linter/slim@f6d06a003575dde14f917e642302cf1251f28f4a # v8
uses: super-linter/super-linter/slim@61abc07d755095a68f4987d1c2c3d1d64408f1f9 # v8.5.0
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -34,6 +37,5 @@ jobs:
VALIDATE_BIOME_FORMAT: false
VALIDATE_BIOME_LINT: false
VALIDATE_CHECKOV: false
VALIDATE_HTML: false
VALIDATE_JSCPD: false
VALIDATE_MARKDOWN: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Thumbs.db

# Files
npm-debug.log
package-lock.json
4 changes: 2 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
lockfile-version = 2
registry = 'https://registry.npmjs.org/'
package-lock=false
registry=https://registry.npmjs.org/
7 changes: 2 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dark Mode Switch</title>
<meta name="description" content="Add a dark-mode theme toggle with a Bootstrap Custom Switch">
<meta name="color-scheme" content="dark light">
<meta name="fediverse:creator" content="@christianoliff@mastodon.social">

<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2280%22>🌓</text></svg>">
Expand All @@ -21,10 +22,6 @@

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css">

<!-- IE 11 polyfill for CSS and Custom Properties -->
<script
nomodule>window.MSInputMethodContext && document.documentMode && document.write('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-ie11@5/css/bootstrap-ie11.min.css"><script src="https://cdn.jsdelivr.net/npm/ie11-custom-properties@4/ie11CustomProperties.min.js"><\/script>');</script>

<link rel="stylesheet" href="dark-mode.css">

</head>
Expand Down
Loading
Loading