-
Notifications
You must be signed in to change notification settings - Fork 14
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
32 changed files
with
60 additions
and
65 deletions.
There are no files selected for viewing
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,6 +1,6 @@ | ||
|
||
</main> | ||
<div class="mdui-container-fluid pjax-load bottom-mod"> | ||
<div class="mdui-container-fluid pjax-load bottom-mod" id="bottom"> | ||
<!--Footer--> | ||
<footer class="mdui-row mdui-shadow-2 mdui-color-white bottom"> | ||
|
||
|
@@ -96,29 +96,42 @@ | |
|
||
</div> | ||
|
||
<a class="mdui-fab mdui-fab-mini mdui-fab-fixed mdui-color-theme-accent mdui-ripple mdui-fab-hide" id="scrolltop" href="#header" data-scroll> | ||
<i class="mdui-icon material-icons">expand_less</i> | ||
</a> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/js/mdui.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/js/mdui.min.js"></script> | ||
<script type="text/javascript"> | ||
// Using MDUI JQ | ||
var $$ = mdui.JQ; | ||
</script> | ||
|
||
<script src="<?php $this->options->themeUrl('js/search.js') ?>" type="text/javascript"></script> | ||
|
||
<script type="text/javascript"> | ||
//Search JS | ||
searchJQ(); | ||
</script> | ||
|
||
<script src="<?php $this->options->themeUrl('js/scrolltop.js') ?>" type="text/javascript"></script> | ||
|
||
|
||
<script src="https://cdn.jsdelivr.net/gh/cferdinandi/smooth-scroll@15/dist/smooth-scroll.polyfills.min.js"></script> | ||
<script> | ||
var scroll = new SmoothScroll('[data-scroll]'); | ||
</script> | ||
|
||
<script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> | ||
<script>hljs.initHighlightingOnLoad();</script> | ||
|
||
<script src="//cdn.jsdelivr.net/npm/[email protected]/pjax.min.js"></script> | ||
<?php if (in_array('PJAX', $this->options->FunctionSwitch)): ?> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/pjax.min.js"></script> | ||
<?php endif; ?> | ||
|
||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/nprogress.min.css"> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/nprogress.min.js"></script> | ||
|
@@ -142,6 +155,7 @@ | |
</script> | ||
<?php endif; ?> | ||
|
||
<?php if (in_array('PJAX', $this->options->FunctionSwitch)): ?> | ||
<!--PJAX Js Event--> | ||
<script> | ||
var pjax = new Pjax({ | ||
|
@@ -172,6 +186,7 @@ function() { | |
}); | ||
document.addEventListener('pjax:success', function() {NProgress.done(); } ); | ||
</script> | ||
<?php endif; ?> | ||
|
||
|
||
</body> | ||
|
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 |
---|---|---|
|
@@ -11,46 +11,8 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" /> | ||
<meta name="description" content=" " /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="theme-color" content="<?php $this->options->ChromeThemeColor(); ?>" /> | ||
|
||
<!-- All Icons On ios and browsers --> | ||
<?php if (!empty($this->options->IconUrl)): ?> | ||
<link rel="apple-touch-icon" sizes="57x57" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-57x57.png "> | ||
<link rel="apple-touch-icon" sizes="60x60" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-60x60.png "> | ||
<link rel="apple-touch-icon" sizes="72x72" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-72x72.png "> | ||
<link rel="apple-touch-icon" sizes="76x76" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-76x76.png "> | ||
<link rel="apple-touch-icon" sizes="114x114" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-114x114.png "> | ||
<link rel="apple-touch-icon" sizes="120x120" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-120x120.png "> | ||
<link rel="apple-touch-icon" sizes="144x144" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-144x144.png "> | ||
<link rel="apple-touch-icon" sizes="152x152" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-152x152.png "> | ||
<link rel="apple-touch-icon" sizes="180x180" href="<?php $this->options->IconUrl(); ?>/img/icon/apple-icon-180x180.png "> | ||
<link rel="icon" type="image/png" sizes="192x192" href="<?php $this->options->IconUrl(); ?>/img/icon/android-icon-192x192.png "> | ||
<link rel="icon" type="image/png" sizes="32x32" href="<?php $this->options->IconUrl(); ?>/img/icon/favicon-32x32.png "> | ||
<link rel="icon" type="image/png" sizes="96x96" href="<?php $this->options->IconUrl(); ?>/img/icon/favicon-96x96.png "> | ||
<link rel="icon" type="image/png" sizes="16x16" href="<?php $this->options->IconUrl(); ?>/img/icon/favicon-16x16.png "> | ||
<meta name="msapplication-TileColor" content="#ffffff"> | ||
<meta name="msapplication-TileImage" content="<?php $this->options->IconUrl(); ?>/img/icon/ms-icon-144x144.png "> | ||
|
||
<?php else: ?> | ||
|
||
<link rel="apple-touch-icon" sizes="57x57" href="<?php $this->options->themeUrl('img/icon/apple-icon-57x57.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="60x60" href="<?php $this->options->themeUrl('img/icon/apple-icon-60x60.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="<?php $this->options->themeUrl('img/icon/apple-icon-72x72.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="76x76" href="<?php $this->options->themeUrl('img/icon/apple-icon-76x76.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="<?php $this->options->themeUrl('img/icon/apple-icon-114x114.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="<?php $this->options->themeUrl('img/icon/apple-icon-120x120.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="144x144" href="<?php $this->options->themeUrl('img/icon/apple-icon-144x144.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="152x152" href="<?php $this->options->themeUrl('img/icon/apple-icon-152x152.png') ?>"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="<?php $this->options->themeUrl('img/icon/apple-icon-180x180.png') ?>"> | ||
<link rel="icon" type="image/png" sizes="192x192" href="<?php $this->options->themeUrl('img/icon/android-icon-192x192.png') ?>"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="<?php $this->options->themeUrl('img/icon/favicon-32x32.png') ?>"> | ||
<link rel="icon" type="image/png" sizes="96x96" href="<?php $this->options->themeUrl('img/icon/favicon-96x96.png') ?>"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="<?php $this->options->themeUrl('img/icon/favicon-16x16.png') ?>"> | ||
<meta name="msapplication-TileColor" content="#ffffff"> | ||
<meta name="msapplication-TileImage" content="<?php $this->options->themeUrl('img/icon/ms-icon-144x144.png') ?>"> | ||
<?php endif; ?> | ||
<!-- META END --> | ||
|
||
<!--Website Title--> | ||
|
@@ -60,8 +22,12 @@ | |
</title> | ||
<!--Website Title End--> | ||
|
||
<!--Traditional Type of favicon Settings--> | ||
<link rel="icon" type="image/ico" href="<?php $this->options->favicon(); ?>"> | ||
<!-- Favicon Settings --> | ||
<?php if (empty($this->options->IconUrl)): ?> | ||
<link rel="icon" href="<?php $this->options->themeUrl('img/favicon.ico'); ?>"> | ||
<?php else: ?> | ||
<link rel="icon" type="image/ico" href="<?php $this->options->IconUrl(); ?>"> | ||
<?php endif; ?> | ||
<!--Favicon Settings End--> | ||
|
||
<!--Using Default SEO Info Output By Typecho Itself--> | ||
|
@@ -80,7 +46,7 @@ | |
|
||
<!-- MDUI css--> | ||
|
||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected].1/dist/css/mdui.min.css" /> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected].2/dist/css/mdui.min.css" /> | ||
<link href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/gruvbox-dark.min.css" rel="stylesheet"> | ||
|
||
<!--EXTERNAL CSS END--> | ||
|
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,18 @@ | ||
window.onload = function() { | ||
var fab = document.getElementById('scrolltop'); | ||
var clientHeight = document.documentElement.clientHeight; | ||
var timer = null; | ||
var isTop = true; | ||
window.onscroll = function () { | ||
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; | ||
if ( scrollTop >= clientHeight) { | ||
fab.classList.remove('mdui-fab-hide'); | ||
} else { | ||
fab.classList.add('mdui-fab-hide'); | ||
} | ||
if (!isTop) { | ||
clearInterval(timer); | ||
} | ||
isTop = false; | ||
} | ||
} |