mirror of https://github.com/helloxz/MDtoHTML
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.7 KiB
44 lines
1.7 KiB
<!DOCTYPE html> |
|
<html lang="zh-cmn-Hans" xmlns="http://www.w3.org/1999/xhtml"> |
|
<head> |
|
<meta charset="utf-8" /> |
|
<title>MDtoHTML</title> |
|
<meta name="generator" content="EverEdit" /> |
|
<meta name="author" content="" /> |
|
<meta name="keywords" content="MDtoHTML,markdown" /> |
|
<meta name="description" content="MDtoHTML快速将Markdown文件转换为HTML" /> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<link rel='stylesheet' href='https://libs.xiaoz.top/highlight.js/9.12.0/styles/github.min.css'> |
|
<link rel="stylesheet" href="https://libs.xiaoz.top/layui-v2.2.5/layui/css/layui.css"> |
|
<link rel="stylesheet" href="static/style.css"> |
|
</head> |
|
<body> |
|
<div id="container" class = "layui-bg-gray"> |
|
<div class="layui-container"> |
|
<div class="layui-row"> |
|
<div class="layui-col-lg8 layui-col-sm12 layui-col-xs12 layui-col-md12 layui-col-md-offset2"> |
|
<div class="md-html"> |
|
<?php echo $html; ?> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="footer"> |
|
<p>©2018 本文档使用 <a href="https://markdown.win/" target = "_blank">MDtoHTML</a> 构建 | The author <a href="https://www.xiaoz.me/" target = "_blank" title = "小z博客">xiaoz</a></p> |
|
</div> |
|
<script src = 'https://libs.xiaoz.top/highlight.js/9.12.0/highlight.min.js'></script> |
|
<script src = 'https://libs.xiaoz.top/jquery/2.2.4/jquery.min.js'></script> |
|
<script>hljs.initHighlightingOnLoad();</script> |
|
<script> |
|
$(document).ready(function(){ |
|
// 设置网页标题为第一个H标签的内容 |
|
var hText = $(":header:first").text(); // 取第一个标题(Hx)元素 |
|
if(hText.length > 0) { |
|
$('title').text(hText + " - MDtoHTML"); // 设置文档标题 |
|
} |
|
}); |
|
</script> |
|
<!--页面缓存于<?php echo $ftime; ?>--> |
|
</body> |
|
</html>
|