mirror of https://github.com/Mabbs/mabbs.github.io
Compare commits
No commits in common. '1052b66270cb9ed7b5f3760a50a909ecc7f33669' and '7659d3e9d56e65d948a1784789d9ebbeb8751de9' have entirely different histories.
1052b66270
...
7659d3e9d5
@ -1,37 +0,0 @@
|
|||||||
---
|
|
||||||
layout: default
|
|
||||||
title: 离线模式
|
|
||||||
---
|
|
||||||
|
|
||||||
# 离线模式
|
|
||||||
|
|
||||||
本页用于管理本博客的离线阅读功能:
|
|
||||||
|
|
||||||
- **启用离线模式**:浏览器会下载整站压缩包(`MayxBlog.7z`)并解包到本地缓存,之后即使没有网络也能正常浏览博客;
|
|
||||||
- **自动回退**:当站点压缩包更新(博客重新部署)时,离线缓存会自动失效并回退到在线模式,下次重新启用即可获取最新内容;
|
|
||||||
- **手动切换**:离线模式下可以随时在本页切回在线模式,切回后页面将重新通过网络加载。
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<tbody>
|
|
||||||
<tr><th>当前状态</th><td id="offline-state">检测中…</td></tr>
|
|
||||||
<tr><th>缓存版本</th><td id="offline-version">-</td></tr>
|
|
||||||
<tr><th>文件统计</th><td id="offline-files">-</td></tr>
|
|
||||||
<tr><th>解包时间</th><td id="offline-time">-</td></tr>
|
|
||||||
<tr><th>持久存储</th><td id="offline-persist">-</td></tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<p id="offline-progress-box" hidden="hidden">
|
|
||||||
<progress id="offline-progress" max="100" value="0"></progress>
|
|
||||||
|
|
||||||
<small id="offline-progress-text">准备中…</small>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><strong id="offline-message"></strong></p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<button type="button" id="offline-enable">启用离线模式</button>
|
|
||||||
<button type="button" id="offline-disable">切换回在线模式</button>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<script src="/assets/js/offline-page.js"></script>
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2018 ნიკა
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue