Skip to content

Commit

Permalink
add a footer, make the text box populate if you have a query param
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronholiman committed Nov 12, 2019
1 parent 0167191 commit 786ad38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
background-color: #0074D9;
color: white;
border: solid 1px #7FDBFF;
border-radius: 2px;
border-radius: 4px;
cursor: pointer;
}
#diagram-form button:hover {
Expand All @@ -45,6 +45,9 @@
overflow-x: auto;
overflow-y: hidden;
}
footer {
margin-top: 50px;
}
</style>
<body>
<h1>Kanji Stroke Order Generator</h1>
Expand Down Expand Up @@ -72,7 +75,8 @@ <h3>How to use:</h3>
<div id="diagram-container">
</div>

<div>Based off the stroke order diagram generator on Jisho.org but with thicker lines</div>
<div>Which in turn uses data from KanjiVG</div>
<footer>
<p>Based off the stroke order diagram generator on Jisho.org but with thicker lines, which in turn uses data from KanjiVG to generate diagrams</p>
</footer>
</body>
</html>
1 change: 1 addition & 0 deletions tsurukame-stroke-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ if (!isNode) {
let kanji = getParameterByName('kanji');
if (kanji) {
let dl = getParameterByName('dl');
document.getElementById('kanji').value = kanji;
getKanji(kanji, dl === '1');
}

Expand Down

0 comments on commit 786ad38

Please sign in to comment.