-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
114 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.nav-list-site-settings { | ||
margin-top: 10px; | ||
} | ||
|
||
.nav-list-link .fas { | ||
margin-right: 6px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
const lightIcon = "fa-sun"; | ||
const darkIcon = "fa-moon"; | ||
|
||
let isDark = | ||
window.matchMedia && | ||
window.matchMedia("(prefers-color-scheme: dark)").matches; | ||
|
||
const siteNav = document.querySelector("nav.site-nav"); | ||
const icon = document.createElement("i"); | ||
icon.classList.add("fas"); | ||
const span = document.createElement("span"); | ||
span.innerHTML = "Toggle dark mode"; | ||
const link = document.createElement("a"); | ||
link.classList.add("nav-list-link"); | ||
link.append(icon, span); | ||
link.setAttribute("href", "#"); | ||
const li = document.createElement("li"); | ||
li.classList.add("nav-list-item"); | ||
li.append(link); | ||
const ul = document.createElement("ul"); | ||
ul.classList.add("nav-list", "nav-list-site-settings"); | ||
ul.append(li); | ||
siteNav.append(ul); | ||
|
||
function update() { | ||
if (isDark) { | ||
jtd.setTheme("dark"); | ||
icon.classList.remove(darkIcon); | ||
icon.classList.add(lightIcon); | ||
} else { | ||
jtd.setTheme("light"); | ||
icon.classList.remove(lightIcon); | ||
icon.classList.add(darkIcon); | ||
} | ||
} | ||
|
||
update(); | ||
|
||
function toggle() { | ||
isDark = !isDark; | ||
update(); | ||
} | ||
|
||
jtd.addEvent(link, "click", function (event) { | ||
event.preventDefault(); | ||
toggle(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: Import | ||
description: Importing torrents into bitmagnet | ||
parent: Guides | ||
layout: default | ||
nav_order: 6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: Text Search | ||
description: Using bitmagnet's text search | ||
parent: Guides | ||
layout: default | ||
nav_order: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters