Commit ee6fd2a1 by liuronglei

feat(index): 增加介绍网站(待完善)

parent 5f5e8e77
<html>
<body>
<h1>SparrowZZ</h1>
</body>
<html lang="en" class="js fontawesome-i2svg-active fontawesome-i2svg-complete">
<head>
<meta charset="utf-8">
<!-- begin _includes/seo.html -->
<title>Sparrowzz - Sparrowzz</title>
<meta name="description" content="低代码控制器">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="Sparrowzz">
<meta property="og:title" content="低代码控制器">
<meta property="og:description" content="低代码控制器">
<!-- end _includes/seo.html -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- For all browsers -->
<link rel="stylesheet" href="./index/assets/css/main.css">
<script type="text/javascript" src="./index/assets/js/index.js"></script>
</head>
<body class="layout--splash">
<object data="./index/header.html" class="header-page"></object>
<div class="initial-content">
<div class="page__hero--overlay back-img">
<div class="wrapper">
<h1 id="page-title" class="page__title" itemprop="headline">
Sparrowzz
</h1>
<p class="page__lead">这是Sparrowzz总体介绍这是Sparrowzz总体介绍这是Sparrowzz总体介绍这是Sparrowzz总体介绍
</p>
<a>
<img src="./index/assets/img/badge.svg">
</a>
<p>
<a href="/start/#install" class="btn btn--light-outline btn--large">
<img src="./index/assets/img/download.svg" class="index-prefix" /><!-- <i class="fas fa-download"></i> --> 下载安装
</a>
<a href="/contact/#list" class="btn btn--light-outline btn--large">
<img src="./index/assets/img/envelope.svg" class="index-prefix" /><!-- <i class="fas fa-envelope"></i> --> 获取更新
</a>
</p>
</div>
</div>
<div id="main" role="main">
<article class="splash" itemscope="" itemtype="http://schema.org/CreativeWork">
<meta itemprop="headline" content="pandapower">
<meta itemprop="description" content="An easy to use open source tool for power system modeling, analysis and optimization with a high degree of automation.">
<section class="page__content" itemprop="text">
<p>开始使用Sparrowzz,您需要</p>
<ol>
<li>
<p>编译Sparrowzz主程序:</p>
<div class="language-plaintext highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code>这是Sparrowzz主程序编译脚本
</code></pre>
</div>
</div>
</li>
<li>
<p>运行Sparrowzz主程序:</p>
<div class="language-plaintext highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code>这是Sparrowzz主程序运行脚本
</code></pre>
</div>
</div>
</li>
<li>
<p>配置Sparrowzz实例:</p>
<div class="language-plaintext highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code>这是Sparrowzz实例配置
</code></pre>
</div>
</div>
</li>
<li>
<p>运行Sparrowzz实例:</p>
<div class="language-plaintext highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code>这是Sparrowzz实例运行
</code></pre>
</div>
</div>
</li>
<li>
<p>查看实例运行结果:</p>
<div class="language-plaintext highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code>这是Sparrowzz实例运行结果查看
</code></pre>
</div>
</div>
</li>
</ol>
<p>使用Sparrowzz,您可以完成:</p>
<div class="feature__wrapper">
</div>
<div class="feature__wrapper">
<div class="feature__item">
<div class="archive__item">
<div class="archive__item-teaser">
<img src="./index/assets/img/electric_modeling.png" alt="">
</div>
<div class="archive__item-body">
<h2 class="archive__item-title">Electric Modeling</h2>
<div class="archive__item-excerpt">
<p>Includes thoroughly validated equivalent circuit models for lines, transformers, switches and more.</p>
</div>
<p>
<a href="./index/about.html#modeling" class="btn btn--primary">了解更多</a>
</p>
</div>
</div>
</div>
<div class="feature__item">
<div class="archive__item">
<div class="archive__item-teaser">
<img src="./index/assets/img/power_flow.png" alt="">
</div>
<div class="archive__item-body">
<h2 class="archive__item-title">Power System Analysis</h2>
<div class="archive__item-excerpt">
<p>Supports power flow, optimal power flow, state estimation, short-circuit calculation and topological graph searches.</p>
</div>
<p>
<a href="./index/about.html#analysis" class="btn btn--primary">了解更多</a>
</p>
</div>
</div>
</div>
<div class="feature__item">
<div class="archive__item">
<div class="archive__item-teaser">
<img src="./index/assets/img/osi_symbol.png" alt="">
</div>
<div class="archive__item-body">
<h2 class="archive__item-title">Free and Open</h2>
<div class="archive__item-excerpt">
<p>Published under a BSD License and therefore free to use, modify and share however you want.</p>
</div>
<p>
<a href="https://github.com/shufengdong/sparrowzz/" class="btn btn--primary">在github中浏览</a>
</p>
</div>
</div>
</div>
</div>
</section>
</article>
</div>
</div>
<aside class="sidebar__top">
<a href="#" id="sidebar">
<img src="./index/assets/img/angle-double-up.svg" /><!-- <i class="fas fa-angle-double-up fa-2x"></i> -->
</a>
</aside>
<object data="./index/footer.html" class="footer-page"></object>
</body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
aria-hidden="true"
data-prefix="fas"
data-icon="angle-double-up"
role="img"
viewBox="0 0 320 512"
data-fa-i2svg=""
version="1.1"
id="svg37712"
sodipodi:docname="angle-double-up.svg"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs37716" />
<sodipodi:namedview
id="namedview37714"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="0.15036377"
inkscape:cx="-1300.1802"
inkscape:cy="691.65597"
inkscape:window-width="1336"
inkscape:window-height="983"
inkscape:window-x="-12"
inkscape:window-y="19"
inkscape:window-maximized="0"
inkscape:current-layer="svg37712" />
<path
fill="currentColor"
d="M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"
id="path37710"
style="fill:#3aa6e3;fill-opacity:1" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="139"
height="20"
version="1.1"
id="svg327"
sodipodi:docname="badge.svg"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview329"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="1.4282031"
inkscape:cx="-138.28565"
inkscape:cy="40.960561"
inkscape:window-width="1336"
inkscape:window-height="1032"
inkscape:window-x="572"
inkscape:window-y="53"
inkscape:window-maximized="0"
inkscape:current-layer="svg327" />
<defs
id="defs301">
<linearGradient
id="a"
x1="0"
y1="0"
x2="0"
y2="1"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(139 0 0 20 -0 0)">
<stop
offset="0"
stop-color="#bbbbbb"
stop-opacity="0.1"
id="stop296" />
<stop
offset="1"
stop-color="#000000"
stop-opacity="0.1"
id="stop298" />
</linearGradient>
</defs>
<path
fill="#555555"
stroke="none"
d="M 3 0 L 136 0 C 137.65686 0 139 1.3431457 139 3 L 139 17 C 139 18.656855 137.65686 20 136 20 L 3 20 C 1.3431457 20 0 18.656855 0 17 L 0 3 C -0 1.3431457 1.3431457 0 3 0 Z"
id="path303" />
<path
fill="#44cc11"
stroke="none"
d="M 89 0 L 136 0 C 137.65686 0 139 1.3431457 139 3 L 139 17 C 139 18.656855 137.65686 20 136 20 L 89 20 C 87.34315 20 86 18.656855 86 17 L 86 3 C 86 1.3431457 87.34315 0 89 0 Z"
id="path305" />
<path
fill="#44cc11"
stroke="none"
d="M 86 0 L 99 0 L 99 20 L 86 20 Z"
id="path307" />
<path
fill="url(#a)"
stroke="none"
d="M 3 0 L 136 0 C 137.65686 0 139 1.3431457 139 3 L 139 17 C 139 18.656855 137.65686 20 136 20 L 3 20 C 1.3431457 20 0 18.656855 0 17 L 0 3 C -0 1.3431457 1.3431457 0 3 0 Z"
id="path309" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:12px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none"
x="15.556589"
y="14.353703"
id="text1939"><tspan
sodipodi:role="line"
id="tspan1937"
x="15.556589"
y="14.353703"
style="font-size:12px;fill:#ffffff">功能完成度</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:12px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.957907"
x="96.581963"
y="15.043459"
id="text9755"
transform="scale(1.0439423,0.95790735)"><tspan
sodipodi:role="line"
id="tspan9753"
x="96.581963"
y="15.043459"
style="font-size:12px;fill:#ffffff;stroke-width:0.957907">90%</tspan></text>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
aria-hidden="true"
data-prefix="fas"
data-icon="download"
role="img"
viewBox="0 0 512 512"
data-fa-i2svg=""
version="1.1"
id="svg37582"
sodipodi:docname="download.svg"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs37586" />
<sodipodi:namedview
id="namedview37584"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="0.30072754"
inkscape:cx="540.35623"
inkscape:cy="517.07934"
inkscape:window-width="1920"
inkscape:window-height="1010"
inkscape:window-x="-6"
inkscape:window-y="-6"
inkscape:window-maximized="1"
inkscape:current-layer="svg37582" />
<path
fill="currentColor"
d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
id="path37580"
style="fill:#ffffff" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
aria-hidden="true"
data-prefix="fas"
data-icon="envelope"
role="img"
viewBox="0 0 512 512"
data-fa-i2svg=""
version="1.1"
id="svg37494"
sodipodi:docname="envelope.svg"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs37498" />
<sodipodi:namedview
id="namedview37496"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="0.30072754"
inkscape:cx="693.3186"
inkscape:cy="706.61968"
inkscape:window-width="1920"
inkscape:window-height="1010"
inkscape:window-x="-6"
inkscape:window-y="-6"
inkscape:window-maximized="1"
inkscape:current-layer="svg37494" />
<path
fill="currentColor"
d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"
id="path37492"
style="fill:#ffffff" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
aria-hidden="true"
data-prefix="fas"
data-icon="rss-square"
role="img"
viewBox="0 0 448 512"
data-fa-i2svg=""
version="1.1"
id="svg37620"
sodipodi:docname="feed.svg"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs37624" />
<sodipodi:namedview
id="namedview37622"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="0.30072754"
inkscape:cx="114.72178"
inkscape:cy="766.47452"
inkscape:window-width="1336"
inkscape:window-height="804"
inkscape:window-x="495"
inkscape:window-y="70"
inkscape:window-maximized="0"
inkscape:current-layer="svg37620" />
<path
fill="currentColor"
d="M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"
id="path37618"
style="fill:#ff9955" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
aria-hidden="true"
data-prefix="fas"
data-icon="file-alt"
role="img"
viewBox="0 0 384 512"
data-fa-i2svg=""
version="1.1"
id="svg43097"
sodipodi:docname="file-alt.svg"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs43101" />
<sodipodi:namedview
id="namedview43099"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="0.30072754"
inkscape:cx="-108.07125"
inkscape:cy="593.56053"
inkscape:window-width="1920"
inkscape:window-height="1010"
inkscape:window-x="-6"
inkscape:window-y="-6"
inkscape:window-maximized="1"
inkscape:current-layer="svg43097" />
<path
fill="currentColor"
d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"
id="path43095"
style="fill:#ffffff" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
aria-hidden="true"
data-prefix="fab"
data-icon="github"
role="img"
viewBox="0 0 496 512"
data-fa-i2svg=""
version="1.1"
id="svg37532"
sodipodi:docname="github.svg"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs37536" />
<sodipodi:namedview
id="namedview37534"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="0.30072754"
inkscape:cx="237.75674"
inkscape:cy="852.93152"
inkscape:window-width="1920"
inkscape:window-height="1010"
inkscape:window-x="-6"
inkscape:window-y="-6"
inkscape:window-maximized="1"
inkscape:current-layer="svg37532" />
<path
fill="currentColor"
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
id="path37530" />
</svg>
function scrollToTop(duration) {
const start = window.scrollY;
const startTime = 'now' in window.performance ? performance.now() : new Date().getTime();
const easeInOutQuad = (t) => t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
function scroll() {
const now = 'now' in window.performance ? performance.now() : new Date().getTime();
const time = Math.min(1, ((now - startTime) / duration));
const timeFunction = easeInOutQuad(time);
window.scrollTo(0, Math.ceil(timeFunction * (0 - start) + start));
if (window.scrollY !== 0) {
requestAnimationFrame(scroll);
}
}
requestAnimationFrame(scroll);
}
window.onload = function() {
document.getElementById("sidebar").onclick = function() {
scrollToTop(800);
}
};
\ No newline at end of file
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body class="layout--splash">
<div class="page__footer">
<footer>
<div class="page__footer-follow">
<ul class="social-icons">
<li>
<a href="https://github.com/shufengdong/sparrowzz/" target="_blank">
<img src="./assets/img/github.svg" class="footer-prefix" /> GitHub
</a>
</li>
<li>
<a href="https://github.com/shufengdong/sparrowzz/" target="_blank">
<img src="./assets/img/feed.svg" class="footer-prefix" /> Feed
</a>
</li>
</ul>
</div>
<div class="page__footer-copyright">© 2024 Sparrowzz. Powered by
<a href="https://sgool.zju.edu.cn/zh-CN/" target="_blank">浙江大学智能电网运行与优化实验室</a></div>
</footer>
</div>
</body>
</html>
\ No newline at end of file
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body class="layout--splash">
<div class="masthead">
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
<a class="site-title" href="#" onclick="reloadParent('../index.html')">
<img class="logo-img" src="./assets/img/sparrowzz.png">
</a>
<ul class="visible-links">
<li class="masthead__menu-item">
<a href="#" onclick="reloadParent('./start.html')">开始使用</a>
</li>
<li class="masthead__menu-item">
<a href="#" onclick="reloadParent('./about.html')">关于Sparrowzz</a>
</li>
<li class="masthead__menu-item">
<a href="#" onclick="reloadParent('./doc.html')">文档</a>
</li>
<li class="masthead__menu-item">
<a href="#" onclick="reloadParent('./references.html')">参考资料</a>
</li>
<li class="masthead__menu-item">
<a href="#" onclick="reloadParent('./contact.html')">联系我们</a>
</li>
</ul>
<button class="greedy-nav__toggle hidden" type="button" count="0">
<span class="visually-hidden">所有菜单</span>
<div class="navicon"></div>
</button>
<ul class="hidden-links hidden"></ul>
</nav>
</div>
</div>
</div>
</body>
</html>
<script>
function reloadParent(page) {
window.parent.location.href = page;
}
</script>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论