-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link to source on Title and Chapters in the Manga Details modal (#124)
- Loading branch information
Showing
7 changed files
with
138 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
<meta name="referrer" content="no-referrer" /> | ||
|
||
<meta name="application-name" content="Tachibk Viewer" /> | ||
<meta name="theme-color" content="#444444" /> | ||
|
||
<meta property="og:url" content="https://backup.mihon.tools" /> | ||
<meta name="twitter:url" content="https://backup.mihon.tools" /> | ||
|
@@ -50,24 +51,43 @@ | |
<link rel="stylesheet" type="text/css" href="styles.css" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link rel="preconnect" href="https://cdn.jsdelivr.net" /> | ||
<link | ||
rel="stylesheet" | ||
rel="preload" | ||
as="style" | ||
type="text/css" | ||
onload="this.onload=null;this.rel='stylesheet'" | ||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,200..400,1,0&display=swap" | ||
/> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" /> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/index.min.js" crossorigin="anonymous"></script> | ||
<link | ||
rel="preload" | ||
as="style" | ||
type="text/css" | ||
onload="this.onload=null;this.rel='stylesheet'" | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" | ||
/> | ||
<noscript> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,200..400,1,0&display=swap" | ||
/> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" /> | ||
</noscript> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/index.min.js" crossorigin="anonymous" async></script> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/protobufjs/7.4.0/protobuf.min.js" | ||
integrity="sha512-YkIMOpNvty00n18XVhKkktutdTvDgBFTKtlQpygsjF6eM8k7FliYYqWmhadNPzsICYJYxHMsSvCgDVunuFZ4Tg==" | ||
src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js" | ||
integrity="sha512-g2TeAWw5GPnX7z0Kn8nFbYfeHcvAu/tx6d6mrLe/90mkCxO+RcptyYpksUz35EO337F83bZwcmUyHiHamspkfg==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" | ||
async | ||
></script> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js" | ||
integrity="sha512-g2TeAWw5GPnX7z0Kn8nFbYfeHcvAu/tx6d6mrLe/90mkCxO+RcptyYpksUz35EO337F83bZwcmUyHiHamspkfg==" | ||
src="https://cdnjs.cloudflare.com/ajax/libs/protobufjs/7.4.0/protobuf.min.js" | ||
integrity="sha512-YkIMOpNvty00n18XVhKkktutdTvDgBFTKtlQpygsjF6eM8k7FliYYqWmhadNPzsICYJYxHMsSvCgDVunuFZ4Tg==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" | ||
async | ||
></script> | ||
</head> | ||
|
||
|
@@ -128,7 +148,7 @@ <h2>Load your .tachibk, .proto.gz or extracted .json file</h2> | |
<div class="manga-header landscape"> | ||
<img id="manga-thumbnail" src="" /> | ||
<div class="manga-meta"> | ||
<h1 id="manga-title"></h1> | ||
<a id="manga-title-link" target="_blank"><h1 id="manga-title"></h1></a> | ||
<div class="manga-details"> | ||
<ul id="manga-tracking"></ul> | ||
<p id="manga-author"></p> | ||
|
@@ -142,7 +162,7 @@ <h1 id="manga-title"></h1> | |
<!-- Portrait View --> | ||
<div class="manga-header portrait"> | ||
<div class="manga-meta"> | ||
<h1 id="manga-title"></h1> | ||
<a id="manga-title-link" target="_blank"><h1 id="manga-title"></h1></a> | ||
<ul id="manga-tracking"></ul> | ||
<img id="manga-thumbnail" src="" /> | ||
<div class="manga-details"> | ||
|
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,8 +1,8 @@ | ||
export function addMaterialSymbol(element, symbol) { | ||
const symbolSpan = document.createElement('span'); | ||
symbolSpan.className = 'material-symbols-outlined'; | ||
symbolSpan.classList.add('material-symbols-outlined'); | ||
symbolSpan.textContent = symbol; | ||
if (element instanceof NodeList) element.forEach(e => e.appendChild(symbolSpan.cloneNode(true))); | ||
else element.appendChild(symbolSpan.cloneNode(true)); | ||
else if (element) element.appendChild(symbolSpan.cloneNode(true)); | ||
return symbolSpan; | ||
} |
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