mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +01:00
Merge pull request #2 from ZaneHannanAU/master
No preload, load/play on intersect, remove classes from imgs etc
This commit is contained in:
commit
5ccdf3353a
@ -1,15 +1,22 @@
|
||||
html, body {
|
||||
height: 100%;
|
||||
html {
|
||||
padding-bottom: 30em;
|
||||
padding-bottom: calc(100vh - 30px);
|
||||
}
|
||||
img, video {
|
||||
margin-bottom: 1.5em;
|
||||
max-width: 325px;
|
||||
}
|
||||
h1, h2, h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
h1 { font-size: 2em; }
|
||||
h2 { font-size: 1.5em; }
|
||||
h3 { font-size: 1.25em; }
|
||||
body {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
img {
|
||||
margin: 2px;
|
||||
max-width: 325px;
|
||||
border-bottom: red dotted 30px;
|
||||
}
|
||||
|
||||
.row {
|
||||
@ -37,6 +44,13 @@ img {
|
||||
border-bottom: 1px solid rgba(0,0,0,.125)!important;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
summary > * {
|
||||
display: inline;
|
||||
}
|
||||
|
82
index.html
82
index.html
@ -6,105 +6,103 @@
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||
<meta content="" name="description">
|
||||
<link href="favicon.ico" rel="icon">
|
||||
<link href="assets/style.css" rel="stylesheet">
|
||||
<link href="assets/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="assets/bootstrap-toc.min.css" rel="stylesheet">
|
||||
<link href="assets/style.css" rel="stylesheet">
|
||||
</head>
|
||||
<body data-spy="scroll" data-target="#toc">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<nav class="sticky-top" data-toggle="toc" id="toc"></nav>
|
||||
<nav class="sticky-top" data-toggle="toc" id="toc"><!--toc--></nav>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="text-center mb-4">
|
||||
<img class="mb-4" src="assets/tachiyomi.png">
|
||||
<h1 class="h3 mb-3 font-weight-normal">Getting started with Tachiyomi</h1>
|
||||
<img src="assets/tachiyomi.png">
|
||||
<h1>Getting started with Tachiyomi</h1>
|
||||
<p><a href="https://github.com/inorichi/tachiyomi" target="_blank">Tachiyomi</a> is a free and open source manga reader for Android.</p>
|
||||
</div>
|
||||
<h2 class="h3 mb-3 font-weight-normal">Installation</h2>
|
||||
<h3 class="h5 mb-3 font-weight-normal">Downloading and Installing</h3>
|
||||
<h2>Installation</h2>
|
||||
<h3>Downloading and Installing</h3>
|
||||
<p>Download the latest stable release of Tachiyomi from <a href="https://github.com/inorichi/tachiyomi/releases/tag/v0.8.4">GitHub.</a></p>
|
||||
<p><code>tachiyomi-vX.Y.Z.apk</code></p>
|
||||
<p>If you want to try new features before they get to the stable release, you can download the dev version <a href="http://tachiyomi.kanade.eu/latest">here</a>.</p>
|
||||
<p>Open and install the <code>.apk</code> file you just downloaded from GitHub.</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<img class="mb-4" src="assets/install.jpg" intrinsicsize="1076x608" width="269" height="152">
|
||||
<img src="assets/install.jpg" intrinsicsize="1076x608" width="269" height="152">
|
||||
</div>
|
||||
<h3 class="h5 mb-3 font-weight-normal">Your first extension</h3>
|
||||
<h3>Your first extension</h3>
|
||||
<p>Now that Tachiyomi is installed, open the app and navigate to the <code>Extensions</code> tab.</p>
|
||||
<figure class="d-flex justify-content-center">
|
||||
<video preload="metadata" autoplay muted loop loading="lazy" poster="assets/extensions.png" intrinsicsize="600x1089" width="300" height="544">
|
||||
<figure>
|
||||
<video crossorigin="use-credentials" controls playsinline preload="none" muted loop loading="lazy" poster="assets/extensions.png" intrinsicsize="600x1089" width="300" height="544">
|
||||
<source src="assets/extensions.mp4" type="video/mp4" />
|
||||
<source src="assets/extensions.webm" type="video/webm" />
|
||||
<img src="assets/extensions.gif" alt width="300" height="544"/>
|
||||
<noscript><img src="assets/extensions.gif" alt width="300" height="544"/></noscript>
|
||||
</video>
|
||||
</figure>
|
||||
<p>In this guide we will use MangaDex, our most popular extension. Press the <code>Install</code> button and it will bring up the extension installer. If your phone does not allow third-party installations, follow <a href="#third-party-installs">this</a> guide.</p>
|
||||
<h3 class="h5 mb-3 font-weight-normal">Exploring the catalogue</h3>
|
||||
<h3>Exploring the catalogue</h3>
|
||||
<p>Now that you've installed the MangaDex extension it should show up in the <code>Catalogues</code> tab. The items appearing here are called <code>Sources</code>, an extension can contain multiple sources.</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<img class="mb-4" src="assets/catalogues.png" loading="lazy" intrinsicsize="1080x828" width="270" height="207">
|
||||
<img src="assets/catalogues.png" loading="lazy" intrinsicsize="1080x828" width="270" height="207">
|
||||
</div>
|
||||
<h3 class="h5 mb-3 font-weight-normal">Adding manga to your library</h3>
|
||||
<h3>Adding manga to your library</h3>
|
||||
<p>To find and add manga, you can now either use the <code>Latest</code> button on your source, or you can use <code>Browse</code> and search for it.</p>
|
||||
<p>Now that you've found manga that you want to add to your library, click on it and then press the blue bookmark button.</p>
|
||||
<p>It should now appear in your <code>My library</code> tab, ready to be read!</p>
|
||||
<figure class="d-flex justify-content-center">
|
||||
<video preload="metadata" autoplay muted loop loading="lazy" poster="assets/addtolibrary.png" intrinsicsize="600x1089" width="300" height="544">
|
||||
<figure>
|
||||
<video crossorigin="use-credentials" controls playsinline preload="none" muted loop loading="lazy" poster="assets/addtolibrary.png" intrinsicsize="600x1089" width="300" height="544">
|
||||
<source src="assets/addtolibrary.mp4" type="video/mp4" />
|
||||
<source src="assets/addtolibrary.webm" type="video/webm" />
|
||||
<img src="assets/addtolibrary.gif" alt width="300" height="544"/>
|
||||
<noscript><img src="assets/addtolibrary.gif" alt width="300" height="544"/></noscript>
|
||||
</video>
|
||||
</figure>
|
||||
<div class="mb-4">
|
||||
<h2 class="h3 mb-3 font-weight-normal">Frequently Asked Questions</h2>
|
||||
<h2>Frequently Asked Questions</h2>
|
||||
<div class="mb-5 accordion">
|
||||
<details>
|
||||
<summary><h3 class="h5 mb-3 font-weight-normal" id="well-known-extensions">What are some good extensions?</h3></summary>
|
||||
<summary><h3>What are some good extensions?</h3></summary>
|
||||
<p>The most popular are MangaDex, MangaRock and MangaSee, these are large sites which host content from scanlators, there's also extensions like Genkan, Madara, FoolSlide and ComiCake which contain sources which host directly from the scanlators own websites.</p>
|
||||
<p><a href="https://docs.google.com/spreadsheets/d/1TyJEUg78WWH4zgnf3g6M2lkbWpBWbd40FYiPVQhW8IU/edit#gid=0" target="_blank">Here</a>'s a good spreadsheet showing the different extensions and their sources.</p>
|
||||
</details>
|
||||
<details>
|
||||
<summary><h3 class="h5 mb-3 font-weight-normal" id="third-party-installs">How do I allow third-party installations on my phone?</h3></summary>
|
||||
<summary><h3>How do I allow third-party installations on my phone?</h3></summary>
|
||||
<p>When installing your first extension and are promted that your phone isn't allowed to install unknown apps from that source, simply press the <code>Settings</code> button and then allow it.</p>
|
||||
<p>Two example videos, left one is for newer Androids.</p>
|
||||
<figure class="d-flex justify-content-center">
|
||||
<video preload="metadata" autoplay muted loop loading="lazy" poster="assets/unknownapps-android8.png" intrinsicsize="400x688" width="200" height="344">
|
||||
<figure>
|
||||
<video crossorigin="use-credentials" controls playsinline preload="none" muted loop loading="lazy" poster="assets/unknownapps-android8.png" intrinsicsize="400x688" width="200" height="344">
|
||||
<source src="assets/unknownapps-android8.mp4" type="video/mp4" />
|
||||
<source src="assets/unknownapps-android8.webm" type="video/webm" />
|
||||
<img src="assets/unknownapps-android8.gif" alt width="200" height="344"/>
|
||||
<noscript><img src="assets/unknownapps-android8.gif" alt width="200" height="344"/></noscript>
|
||||
</video>
|
||||
</figure>
|
||||
<figure class="d-flex justify-content-center">
|
||||
<video preload="metadata" autoplay muted loop loading="lazy" poster="assets/unknownapps-android7.png" intrinsicsize="400x688" width="200" height="344">
|
||||
<video crossorigin="use-credentials" controls playsinline preload="none" muted loop loading="lazy" poster="assets/unknownapps-android7.png" intrinsicsize="400x688" width="200" height="344">
|
||||
<source src="assets/unknownapps-android7.mp4" type="video/mp4" />
|
||||
<source src="assets/unknownapps-android7.webm" type="video/webm" />
|
||||
<img src="assets/unknownapps-android7.gif" alt width="200" height="344"/>
|
||||
<noscript><img src="assets/unknownapps-android7.gif" alt width="200" height="344"/></noscript>
|
||||
</video>
|
||||
</figure>
|
||||
</details>
|
||||
<details>
|
||||
<summary><h3 class="h5 mb-3 font-weight-normal" id="mangadex-no-results">I'm not getting any results when searching/browsing MangaDex...</h3></summary>
|
||||
<summary><h3>I'm not getting any results when searching/browsing MangaDex...</h3></summary>
|
||||
<p>Go to <code>Browse</code>/<code>Latest</code> for MangaDex under <code>Catalogues</code>, enter a random manga and then press overflow menu (3 dot menu) in the top-right corner and then the <code>Open in web view</code> button.</p>
|
||||
<p>Now go to the hamburger menu, press the <code>Manga</code> drop-down and then choose either <code>Sign up</code> or <code>Log in</code>.</p>
|
||||
</details>
|
||||
<details>
|
||||
<summary><h3 class="h5 mb-3 font-weight-normal" id="mangadex-still-no-results">I've logged in to MangaDex and still no results...</h3></summary>
|
||||
<summary><h3>I've logged in to MangaDex and still no results...</h3></summary>
|
||||
<p>Go to <code>Browse</code>/<code>Latest</code> for MangaDex under <code>Catalogues</code>, enter a random manga and then press the overflow menu (3 dot menu) in the top-right corner and then the <code>Open in web view</code> button.</p>
|
||||
<p>Now go to the hamburger menu, press the <code>Manga</code> drop-down and then <code>Titles</code>. The last step is to go to the icon in the upper right that looks like four-boxes and select <code>Detailed</code>.</p>
|
||||
</details>
|
||||
<details>
|
||||
<summary><h3 class="h5 mb-3 font-weight-normal" id="extensions-wont-install">The extensions won't install...</h3></summary>
|
||||
<summary><h3>The extensions won't install...</h3></summary>
|
||||
<p>In some cases your phone might have some issues downloading the extensions, in those cases you can try installing them yourselves directly from the source. <a href="https://github.com/inorichi/tachiyomi-extensions/tree/repo/apk" target="_blank">Here</a>'s the repository for the files.</p>
|
||||
<p>To install just download the <code>.apk</code> file for the extension you want and then install it, like how you installed Tachiyomi.</p>
|
||||
</details>
|
||||
<p class="mt-5 text-muted">More frequently asked questions can be found <a href="https://github.com/inorichi/tachiyomi/wiki/FAQ#frequently-asked-questions" target="_blank">here</a>.</p>
|
||||
</div>
|
||||
<h2 class="h3 mb-3 font-weight-normal">Related Links</h2>
|
||||
<h3 class="h5 mb-3 font-weight-normal"><a href="https://github.com/inorichi/tachiyomi/">Github</a></h3>
|
||||
<h3 class="h5 mb-3 font-weight-normal"><a href="https://github.com/inorichi/tachiyomi/wiki">Wiki</a></h3>
|
||||
<h3 class="h5 mb-3 font-weight-normal"><a href="https://discord.gg/tachiyomi">Discord</a></h3>
|
||||
<h2>Related Links</h2>
|
||||
<h3><a href="https://github.com/inorichi/tachiyomi/">Github</a></h3>
|
||||
<h3><a href="https://github.com/inorichi/tachiyomi/wiki">Wiki</a></h3>
|
||||
<h3><a href="https://discord.gg/tachiyomi">Discord</a></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -120,6 +118,22 @@
|
||||
q.parentElement.parentElement.open = true;
|
||||
}
|
||||
})
|
||||
if ('IntersectionObserver' in self) {
|
||||
const mo = new IntersectionObserver(i => {
|
||||
for (const s of i) {
|
||||
/** @type {HTMLVideoElement} */
|
||||
const v = s.target;
|
||||
if (s.isIntersecting && v.paused) {
|
||||
v.load()
|
||||
v.play()
|
||||
} else if (!v.paused) v.pause()
|
||||
}
|
||||
})
|
||||
for (let v of document.querySelectorAll('video')) {
|
||||
mo.observe(v)
|
||||
v.controls = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user