spanish-quizzer

An app to quiz you on Spanish vocabulary and verb conjugations
git clone https://git.ashermorgan.net/spanish-quizzer/
Log | Files | Refs | README

commit 1cd351a03d435380fd1289a6990dd74cc15ad1ea
parent 743d8d2531ababca54b216ad08eed393f52565d7
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Wed, 29 Apr 2020 13:33:46 -0700

Implement share button.

Diffstat:
MScripts/Settings.js | 3+++
Mindex.html | 10+++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/Scripts/Settings.js b/Scripts/Settings.js @@ -19,6 +19,9 @@ function Load() { } // Add event Listeners + document.addEventListener("click", function (e) { + document.getElementById('share').hidden = true; + }); document.getElementById("quizzerInput").addEventListener("keydown", function (e) { if (e.keyCode === 13) { // Key was enter diff --git a/index.html b/index.html @@ -129,7 +129,15 @@ </div> <div class="footer"> - <a href="Reference">Reference Tables</a> + <div id="share" hidden> + <a href="mailto:?Subject=Spanish-Quizzer&amp;Body=https://ashermorgan.github.io/Spanish-Quizzer">Email</a>&nbsp; + <a href="http://www.facebook.com/sharer.php?u=https://ashermorgan.github.io/Spanish-Quizzer" target="_blank">Facebook</a>&nbsp; + <a href="https://twitter.com/share?url=https://ashermorgan.github.io/Spanish-Quizzer&amp;text=Spanish-Quizzer" target="_blank">Twitter</a>&nbsp; + <a href="http://reddit.com/submit?url=https://ashermorgan.github.io/Spanish-Quizzer&amp;title=Spanish-Quizzer" target="_blank">Reddit</a>&nbsp; + <a id="shareSMS" href="sms:&body=https://ashermorgan.github.io/Spanish-Quizzer" hidden>SMS</a>&nbsp; + </div> + <a href="Reference">Reference Tables</a>&nbsp; + <a href="javascript:document.getElementById('share').hidden = false;">Share</a>&nbsp; </div> </body> </html> \ No newline at end of file