mirror of
https://github.com/leoherzog/TorrentParts.git
synced 2026-01-24 04:08:04 -08:00
Add Dynamic Page Title
This commit is contained in:
@@ -12040,6 +12040,12 @@ function display() {
|
|||||||
|
|
||||||
window.location.hash = parser.toMagnetURI(parsed);
|
window.location.hash = parser.toMagnetURI(parsed);
|
||||||
|
|
||||||
|
if (parsed.name) {
|
||||||
|
document.title = "Torrent Parts | " + parsed.name;
|
||||||
|
} else {
|
||||||
|
document.title = "Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createFileRow(icon, name, size) {
|
function createFileRow(icon, name, size) {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html lang="en">
|
<!DOCTYPE html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
<title>Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link</title>
|
||||||
<script async src="https://kit.fontawesome.com/9ca49f101f.js"></script>
|
<script async src="https://kit.fontawesome.com/9ca49f101f.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
6
parse.js
6
parse.js
@@ -154,6 +154,12 @@ function display() {
|
|||||||
|
|
||||||
window.location.hash = parser.toMagnetURI(parsed);
|
window.location.hash = parser.toMagnetURI(parsed);
|
||||||
|
|
||||||
|
if (parsed.name) {
|
||||||
|
document.title = "Torrent Parts | " + parsed.name;
|
||||||
|
} else {
|
||||||
|
document.title = "Torrent Parts | Inspect and edit what's in your Torrent file or Magnet link";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createFileRow(icon, name, size) {
|
function createFileRow(icon, name, size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user