From 376ec590ea5da21315a37292817997352e58dee6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 15 Apr 2021 03:39:36 +0300 Subject: Create the static site DON'T FORGET TO CHANGE site/config.toml BEFORE DEPLOYMENT --- site/public/transaction-docs/index.html | 126 ++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 site/public/transaction-docs/index.html (limited to 'site/public/transaction-docs/index.html') diff --git a/site/public/transaction-docs/index.html b/site/public/transaction-docs/index.html new file mode 100644 index 0000000..8c35895 --- /dev/null +++ b/site/public/transaction-docs/index.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <title>Transactions | </title> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <style> + :root { + /* Primary theme color */ + --primary-color: #F8D12F; + /* Primary theme text color */ + --primary-text-color: #1E2329; + /* Primary theme link color */ + --primary-link-color: #2F57F7; + /* Secondary color: the background body color */ + --secondary-color: #FAFAFA; + --secondary-text-color: #303030; + /* Highlight text color of table of content */ + --toc-highlight-text-color: #d46e13; + } +</style> + + <link href="https://fonts.googleapis.com/css?family=Alfa+Slab+One&display=swap" rel="stylesheet"> + <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600&display=swap" rel="stylesheet"> + <link rel="stylesheet" href="/normalize.css"> + <link rel="stylesheet" href="http://localhost:8080/juice.css"> + + +</head> + +<body> + +<header class="box-shadow"> + + +<a href="http://localhost:8080/"> + <div class="logo"> + <img src="http://localhost:8080/gradecoin.png" alt="logo"> + Gradecoin + </div> +</a> + +<nav> + + <a class="nav-item subtitle-text" href="http://localhost:8080/block-docs/">Blocks</a> + + <a class="nav-item subtitle-text" href="http://localhost:8080/transaction-docs/">Transactions</a> + + <a class="nav-item subtitle-text" href="http://localhost:8080/register-docs/">Register</a> + + <a class="nav-item subtitle-text" href="http://localhost:8080/jwt/">JWT</a> + + + + <a class="nav-item subtitle-text" href="https://github.com/zhuowei/nft_ptr#why">why?</a> + + +</nav> + +</header> + + + <main> + + + + + + <div class="content text"> + +<div class="heading-text">Transaction documentation</div> +<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod +tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At +vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd +ubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> + + + </div> + + + + </main> + + +<footer> + ⁂ +</footer> + +</body> +<script> + function highlightNav(heading) { + let pathname = location.pathname; + document.querySelectorAll(".toc a").forEach((item) => { + item.classList.remove("active"); + }); + document.querySelector(".toc a[href$='" + pathname + "#" + heading + "']").classList.add("active"); + } + + let currentHeading = ""; + window.onscroll = function () { + let h = document.querySelectorAll("h1,h2,h3,h4,h5,h6"); + let elementArr = []; + + h.forEach(item => { + if (item.id !== "") { + elementArr[item.id] = item.getBoundingClientRect().top; + } + }); + elementArr.sort(); + for (let key in elementArr) { + if (!elementArr.hasOwnProperty(key)) { + continue; + } + if (elementArr[key] > 0 && elementArr[key] < 300) { + if (currentHeading !== key) { + highlightNav(key); + currentHeading = key; + } + break; + } + } + } +</script> + +</html> -- cgit v1.2.3-70-g09d2