Skip to content

Commit

Permalink
Added an about function with some info about the site, removed footer…
Browse files Browse the repository at this point in the history
…(about replaces it)
  • Loading branch information
Hennamann committed May 11, 2017
1 parent c1db2ed commit 8302dc5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 4 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body {
font-size: 12pt;
}

#refresh_button {
.button {
vertical-align: middle;
cursor: pointer;
overflow: visible;
Expand All @@ -32,8 +32,10 @@ body {
text-decoration: none;
display: inline-block;
font-size: 16px;


}
#refresh_button:hover {
.button:hover {
background-color: #ffce1f;
}

Expand Down
8 changes: 1 addition & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@
<br>
<p id="name"></p>
<p id="flavortext"></p>
<button id="refresh_button" onclick="Refresh()">One more</button>
</div>
<br>
<div class="footer">
<div id="credit">
<p>Brought to you by the lovely guardians over at <a href="https://antioxidantsin.space">The Antioxidants</a>.</p>
</div>
<button class="button" id="refresh_button" onclick="Refresh()">One more</button> <button class="button" id="about_button" onclick="About()">About</button>
</div>
</body>
</html>
8 changes: 8 additions & 0 deletions js/flavortext.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@

function Refresh() {
location.reload();
}

var aboutTitle = "About DestinyFlavorText.net";
var aboutText = "Destiny Flavor Text, is a simple website that will give you a random piece of flavortext from Destiny on request. It is being developed by Hennamann from <a href=\"https\://antioxidantsin.space\">The Antioxidants</a> If you would like to contribute to DestinyFlavorText.net's development, help contribute to the source code over on Github: <a href=\"https\://github.com/antioxidants/destinyflavortext\">https\://github.com/antioxidants/destinyflavortext</a>.";

function About() {
document.getElementById("name").innerHTML = aboutTitle;
document.getElementById("flavortext").innerHTML = aboutText;
};

0 comments on commit 8302dc5

Please sign in to comment.