diff --git a/css/main.css b/css/main.css index e027070..a9e558f 100644 --- a/css/main.css +++ b/css/main.css @@ -34,9 +34,8 @@ body { text-decoration: none; display: inline-block; font-size: 16px; - - } + .button:hover { background-color: #ffce1f; } diff --git a/data/flavortext.json b/data/flavortext.json index aa5e2f9..419cb27 100644 --- a/data/flavortext.json +++ b/data/flavortext.json @@ -4840,352 +4840,352 @@ "flavor":"\"Those who fly beneath the Sun do not come back unscathed.\" —Parables of the Allspring" }, { - "0":"A Little Voice", - "1":"Pardon me, but could I interrupt?" + "name":"A Little Voice", + "flavor":"Pardon me, but could I interrupt?" }, { - "0":"Ace of Spades", - "1":"Don't play your hand unless you're sure you have that ace in the hole." + "name":"Ace of Spades", + "flavor":"Don't play your hand unless you're sure you have that ace in the hole." }, { - "0":"Appellant III", - "1":"Executor-issued hand cannon for loyal supporters of the New Monarchy." + "name":"Appellant III", + "flavor":"Executor-issued hand cannon for loyal supporters of the New Monarchy." }, { - "0":"Azurduy-A", - "1":"Break the Darkness's hold on your City." + "name":"Azurduy-A", + "flavor":"Break the Darkness's hold on your City." }, { - "0":"Backhanded Compliment", - "1":"\"You look good in red.\"" + "name":"Backhanded Compliment", + "flavor":"\"You look good in red.\"" }, { - "0":"Bandit Mk. 24", - "1":"Hand cannons reward calm technique and sharp shooting. The Bandit is a multirole design with a distinctive burnt-peat smell." + "name":"Bandit Mk. 24", + "flavor":"Hand cannons reward calm technique and sharp shooting. The Bandit is a multirole design with a distinctive burnt-peat smell." }, { - "0":"Bandit Mk. 36", - "1":"A reliable gun in unreliable times, the Bandit Mk.36 allegedly features an onboard manufactory. Buyer beware." + "name":"Bandit Mk. 36", + "flavor":"A reliable gun in unreliable times, the Bandit Mk.36 allegedly features an onboard manufactory. Buyer beware." }, { - "0":"Byronic Hero", - "1":"Brood, baby, brood." + "name":"Byronic Hero", + "flavor":"Brood, baby, brood." }, { - "0":"Cordova-HC3", - "1":"Old roads. Bright arches. Loud voices. Stay close." + "name":"Cordova-HC3", + "flavor":"Old roads. Bright arches. Loud voices. Stay close." }, { - "0":"Down and Doubt 00-0", - "1":"We all have those days." + "name":"Down and Doubt 00-0", + "flavor":"We all have those days." }, { - "0":"Duke Mk. 10", - "1":"Hand cannons reward calm technique and sharp shooting. The Mark 10 Duke is a well-balanced example." + "name":"Duke Mk. 10", + "flavor":"Hand cannons reward calm technique and sharp shooting. The Mark 10 Duke is a well-balanced example." }, { - "0":"Duke Mk. 20", - "1":"Hand cannons reward calm technique and sharp shooting. Some Mark 20 Dukes bear a hand-scratched engraving, I DO NOT STRAY." + "name":"Duke Mk. 20", + "flavor":"Hand cannons reward calm technique and sharp shooting. Some Mark 20 Dukes bear a hand-scratched engraving, I DO NOT STRAY." }, { - "0":"Duke Mk. 21", - "1":"Hand cannons reward calm technique and sharp shooting. The Mark 21 Duke is notable for its excellent reliability even when wet." + "name":"Duke Mk. 21", + "flavor":"Hand cannons reward calm technique and sharp shooting. The Mark 21 Duke is notable for its excellent reliability even when wet." }, { - "0":"Equuleus", - "1":"A Guardian relic named for the little horse of the night sky." + "name":"Equuleus", + "flavor":"A Guardian relic named for the little horse of the night sky." }, { - "0":"Eyasluna", - "1":"One day, young hawk, thou shalt sail beneath the silvered moon." + "name":"Eyasluna", + "flavor":"One day, young hawk, thou shalt sail beneath the silvered moon." }, { - "0":"Fatebringer", - "1":"Delivering the inevitable, one pull at a time." + "name":"Fatebringer", + "flavor":"Delivering the inevitable, one pull at a time." }, { - "0":"Finnala's Peril", - "1":"A personal firearm, forged in fire by the Lords of the Iron Banner." + "name":"Finnala's Peril", + "flavor":"A personal firearm, forged in fire by the Lords of the Iron Banner." }, { - "0":"Gaheris-D", - "1":"Balanced and dependable, the Häkke Gaheris-D is a true warrior's weapon." + "name":"Gaheris-D", + "flavor":"Balanced and dependable, the Häkke Gaheris-D is a true warrior's weapon." }, { - "0":"Häkke Test-A", - "1":"Häkke prototype. Score Crucible kills with this weapon to gather data for Häkke's armament scientists." + "name":"Häkke Test-A", + "flavor":"Häkke prototype. Score Crucible kills with this weapon to gather data for Häkke's armament scientists." }, { - "0":"Hard Luck Mk. 52", - "1":"Marked with spades. Tuned for a fight. Ready to end any uncomfortable disputes." + "name":"Hard Luck Mk. 52", + "flavor":"Marked with spades. Tuned for a fight. Ready to end any uncomfortable disputes." }, { - "0":"Harrowed Zaouli's Bane", - "1":"Go, child! Run! Don't look back! Don't—\"" + "name":"Harrowed Zaouli's Bane", + "flavor":"Go, child! Run! Don't look back! Don't—\"" }, { - "0":"Hawkmoon", - "1":"Stalk thy prey and let loose thy talons upon the Darkness." + "name":"Hawkmoon", + "flavor":"Stalk thy prey and let loose thy talons upon the Darkness." }, { - "0":"Heaven Can Wait", - "1":"There's still work for us in Hell." + "name":"Heaven Can Wait", + "flavor":"There's still work for us in Hell." }, { - "0":"Her Mercy", - "1":"This hand cannon was commissioned for those Wolves who pledged allegiance to the Queen after the Reef War." + "name":"Her Mercy", + "flavor":"This hand cannon was commissioned for those Wolves who pledged allegiance to the Queen after the Reef War." }, { - "0":"Her Revenge", - "1":"Commissioned for those who would avenge the lost." + "name":"Her Revenge", + "flavor":"Commissioned for those who would avenge the lost." }, { - "0":"Hoss Mk.51", - "1":"This weapon's true weight and heavy punch make for a valued friend when out beyond the City." + "name":"Hoss Mk.51", + "flavor":"This weapon's true weight and heavy punch make for a valued friend when out beyond the City." }, { - "0":"Ill Will", - "1":"I am a particular genie, for a particular wish." + "name":"Ill Will", + "flavor":"I am a particular genie, for a particular wish." }, { - "0":"Imago Loop", - "1":"…once-mighty wings, now dewy and fragile and new, as again the silken threads encased its..." + "name":"Imago Loop", + "flavor":"…once-mighty wings, now dewy and fragile and new, as again the silken threads encased its..." }, { - "0":"Imprecation", - "1":"A prototype from Tex Mechanica, sent along for calibration." + "name":"Imprecation", + "flavor":"A prototype from Tex Mechanica, sent along for calibration." }, { - "0":"Jewel of Osiris", - "1":"Its shimmering facets extend beyond sight or touch." + "name":"Jewel of Osiris", + "flavor":"Its shimmering facets extend beyond sight or touch." }, { - "0":"Jewel of Osiris (Adept)", - "1":"An elite trophy earned only by Trials of Osiris champions." + "name":"Jewel of Osiris (Adept)", + "flavor":"An elite trophy earned only by Trials of Osiris champions." }, { - "0":"Judith-D", - "1":"Headshots are strongly encouraged with the powerful Häkke Judith-D." + "name":"Judith-D", + "flavor":"Headshots are strongly encouraged with the powerful Häkke Judith-D." }, { - "0":"Kaifeng-HC3", - "1":"Winding rivers. Curving roofs. Ancient splendor. Find your way." + "name":"Kaifeng-HC3", + "flavor":"Winding rivers. Curving roofs. Ancient splendor. Find your way." }, { - "0":"Kumakatok HC4", - "1":"When the Omolon Kumakatok HC4 comes knocking, even the Darkness locks its doors." + "name":"Kumakatok HC4", + "flavor":"When the Omolon Kumakatok HC4 comes knocking, even the Darkness locks its doors." }, { - "0":"LOCK_ARETE", - "1":"Her excellence lies in swiftness." + "name":"LOCK_ARETE", + "flavor":"Her excellence lies in swiftness." }, { - "0":"Loner.Rebel", - "1":"Won't be tied down." + "name":"Loner.Rebel", + "flavor":"Won't be tied down." }, { - "0":"Lord High Fixer", - "1":"The Lord will hold court today." + "name":"Lord High Fixer", + "flavor":"The Lord will hold court today." }, { - "0":"Maverick Mk. 20", - "1":"Hand cannons reward calm technique and sharp shooting. The Maverick is a balanced, flexible design with nice heft." + "name":"Maverick Mk. 20", + "flavor":"Hand cannons reward calm technique and sharp shooting. The Maverick is a balanced, flexible design with nice heft." }, { - "0":"Maverick Mk. 32", - "1":"Consistent and comfortable, the flexible Maverick Mk. 32 rewards the thoughtful shooter." + "name":"Maverick Mk. 32", + "flavor":"Consistent and comfortable, the flexible Maverick Mk. 32 rewards the thoughtful shooter." }, { - "0":"Merciful", - "1":"An Awoken gift from the Reef, marked with the Queen's crown." + "name":"Merciful", + "flavor":"An Awoken gift from the Reef, marked with the Queen's crown." }, { - "0":"Merciless", - "1":"An Awoken gift from the Reef, marked with the Queen's crown." + "name":"Merciless", + "flavor":"An Awoken gift from the Reef, marked with the Queen's crown." }, { - "0":"Mos Aria III", - "1":"Reality is a chorus. One voice can change the song." + "name":"Mos Aria III", + "flavor":"Reality is a chorus. One voice can change the song." }, { - "0":"Mos Azoth IV", - "1":"All matter is woven together in the same tapestry. Pull one thread and everything changes." + "name":"Mos Azoth IV", + "flavor":"All matter is woven together in the same tapestry. Pull one thread and everything changes." }, { - "0":"Mos Calamus I", - "1":"All matter tends toward entropy. Your hand will speed it on its way." + "name":"Mos Calamus I", + "flavor":"All matter tends toward entropy. Your hand will speed it on its way." }, { - "0":"Mos Ganon II", - "1":"Hand cannons reward calm technique and sharp shooting. Lightweight composite and a small frame make the Ganon easy to handle." + "name":"Mos Ganon II", + "flavor":"Hand cannons reward calm technique and sharp shooting. Lightweight composite and a small frame make the Ganon easy to handle." }, { - "0":"Mos Ganon III", - "1":"The Ganon points as easy as coming home. Some devilish cunning keeps the frame both strong and light." + "name":"Mos Ganon III", + "flavor":"The Ganon points as easy as coming home. Some devilish cunning keeps the frame both strong and light." }, { - "0":"Mos Ganon V", - "1":"Heavier than the rest of the series, the intricate MGV is crammed with combat systems." + "name":"Mos Ganon V", + "flavor":"Heavier than the rest of the series, the intricate MGV is crammed with combat systems." }, { - "0":"Mos Morsus III", - "1":"Your bullets reach beyond the veil to strike enemies at their purest essence." + "name":"Mos Morsus III", + "flavor":"Your bullets reach beyond the veil to strike enemies at their purest essence." }, { - "0":"Mos Scala I", - "1":"The subtle alignments of Light and power converge in your hand." + "name":"Mos Scala I", + "flavor":"The subtle alignments of Light and power converge in your hand." }, { - "0":"NIFTY_BISCUIT", - "1":"Godfinger Eta-ACTIUM III Hand-Mounted Artillery (Inedible Type)" + "name":"NIFTY_BISCUIT", + "flavor":"Godfinger Eta-ACTIUM III Hand-Mounted Artillery (Inedible Type)" }, { - "0":"Omolon Test HC1", - "1":"Omolon prototype. Make precision shots to gather data for Omolon's weapons developers." + "name":"Omolon Test HC1", + "flavor":"Omolon prototype. Make precision shots to gather data for Omolon's weapons developers." }, { - "0":"Painted Big Chief Mk. 45", - "1":"A powerful and effective Tex Mechanica hand cannon, earned through glory in the Crucible." + "name":"Painted Big Chief Mk. 45", + "flavor":"A powerful and effective Tex Mechanica hand cannon, earned through glory in the Crucible." }, { - "0":"Painted Mos Ardus V", - "1":"A compact Cassoid firearm, earned through glory in the Crucible." + "name":"Painted Mos Ardus V", + "flavor":"A compact Cassoid firearm, earned through glory in the Crucible." }, { - "0":"Peccadillo's Grace", - "1":"A flexible Vanguard-issue hand cannon, its performance retuned by an Exo's Bayesian profiler." + "name":"Peccadillo's Grace", + "flavor":"A flexible Vanguard-issue hand cannon, its performance retuned by an Exo's Bayesian profiler." }, { - "0":"Polite Denial 0/1", - "1":"Thanks, but no thanks." + "name":"Polite Denial 0/1", + "flavor":"Thanks, but no thanks." }, { - "0":"Primed Big Sky Mk. 48", - "1":"A powerful Tex Mechanica firearm, earned through glory in the Crucible." + "name":"Primed Big Sky Mk. 48", + "flavor":"A powerful Tex Mechanica firearm, earned through glory in the Crucible." }, { - "0":"Red Hand IX", - "1":"Executor-issued personal firearm for loyal supporters of the New Monarchy." + "name":"Red Hand IX", + "flavor":"Executor-issued personal firearm for loyal supporters of the New Monarchy." }, { - "0":"Regulator Mk. 56", - "1":"Someone put a lot of care into the construction of this potent hand cannon." + "name":"Regulator Mk. 56", + "flavor":"Someone put a lot of care into the construction of this potent hand cannon." }, { - "0":"Renegade Mk. 55", - "1":"Rigged and ready for fine-tuning, the Renegade Mk.55 is an outlaw's weapon." + "name":"Renegade Mk. 55", + "flavor":"Rigged and ready for fine-tuning, the Renegade Mk.55 is an outlaw's weapon." }, { - "0":"Rience-D", - "1":"You will not suffer these invader kings to live." + "name":"Rience-D", + "flavor":"You will not suffer these invader kings to live." }, { - "0":"Searcher Mk. 20", - "1":"Hand cannons reward calm technique and sharp shooting. The high-caliber Searcher hits above its class." + "name":"Searcher Mk. 20", + "flavor":"Hand cannons reward calm technique and sharp shooting. The high-caliber Searcher hits above its class." }, { - "0":"Searcher Mk. 37", - "1":"Massive rounds give the Searcher Mk.37 some real kick." + "name":"Searcher Mk. 37", + "flavor":"Massive rounds give the Searcher Mk.37 some real kick." }, { - "0":"Silvered Maverick Mk. 41", - "1":"A well-balanced Tex Mechanica hand cannon, earned through glory in the Crucible." + "name":"Silvered Maverick Mk. 41", + "flavor":"A well-balanced Tex Mechanica hand cannon, earned through glory in the Crucible." }, { - "0":"Sir Isaac", - "1":"What comes up must go down." + "name":"Sir Isaac", + "flavor":"What comes up must go down." }, { - "0":"Six Dreg Pride", - "1":"Who needs four arms when it takes only one to draw, aim and squeeze?" + "name":"Six Dreg Pride", + "flavor":"Who needs four arms when it takes only one to draw, aim and squeeze?" }, { - "0":"Six Dreg Pride II", - "1":"Who needs four arms when it takes only one to draw, aim and squeeze?" + "name":"Six Dreg Pride II", + "flavor":"Who needs four arms when it takes only one to draw, aim and squeeze?" }, { - "0":"Stolen Pride", - "1":"Aim, kill, repeat." + "name":"Stolen Pride", + "flavor":"Aim, kill, repeat." }, { - "0":"TFWPKY 1969", - "1":"...and if it doesn't, the bullets surely will." + "name":"TFWPKY 1969", + "flavor":"...and if it doesn't, the bullets surely will." }, { - "0":"The Chance", - "1":"A personal firearm, named and sanctified by the leaders of the Future War Cult." + "name":"The Chance", + "flavor":"A personal firearm, named and sanctified by the leaders of the Future War Cult." }, { - "0":"The Devil You Don't", - "1":"So many demons, it's hard to keep their names straight." + "name":"The Devil You Don't", + "flavor":"So many demons, it's hard to keep their names straight." }, { - "0":"The Devil You Know", - "1":"Let's make a deal…" + "name":"The Devil You Know", + "flavor":"Let's make a deal…" }, { - "0":"The First Curse", - "1":"\"...is when death becomes an afterthought.\"" + "name":"The First Curse", + "flavor":"\"...is when death becomes an afterthought.\"" }, { - "0":"The Fulcrum", - "1":"A personal firearm, augmented, named and sanctified by the leaders of the Future War Cult." + "name":"The Fulcrum", + "flavor":"A personal firearm, augmented, named and sanctified by the leaders of the Future War Cult." }, { - "0":"The Last Word", - "1":"\"Yours…not mine.\" - Renegade Hunter Shin Malphur to Dredgen Yor" + "name":"The Last Word", + "flavor":"\"Yours…not mine.\" - Renegade Hunter Shin Malphur to Dredgen Yor" }, { - "0":"The Revelator", - "1":"Repent! Repent!" + "name":"The Revelator", + "flavor":"Repent! Repent!" }, { - "0":"The Vanity", - "1":"A personal firearm, named and sanctified by the leaders of the Future War Cult." + "name":"The Vanity", + "flavor":"A personal firearm, named and sanctified by the leaders of the Future War Cult." }, { - "0":"The Water Star", - "1":"Here in this desert of glass and hardship, you will find true refreshment." + "name":"The Water Star", + "flavor":"Here in this desert of glass and hardship, you will find true refreshment." }, { - "0":"The Water Star (Adept)", - "1":"Here in this desert of glass and hardship, you will find true refreshment." + "name":"The Water Star (Adept)", + "flavor":"Here in this desert of glass and hardship, you will find true refreshment." }, { - "0":"Thorn", - "1":"\"To rend one's enemies is to see them not as equals, but objects—hollow of spirit and meaning.\" - 13th Understanding, 7th Book of Sorrow" + "name":"Thorn", + "flavor":"\"To rend one's enemies is to see them not as equals, but objects—hollow of spirit and meaning.\" - 13th Understanding, 7th Book of Sorrow" }, { - "0":"Threnody HC4", - "1":"Turn the funeral dirge into an aria of victory." + "name":"Threnody HC4", + "flavor":"Turn the funeral dirge into an aria of victory." }, { - "0":"Timur's Lash", - "1":"A personal firearm, forged in fire by the Lords of the Iron Banner." + "name":"Timur's Lash", + "flavor":"A personal firearm, forged in fire by the Lords of the Iron Banner." }, { - "0":"Uffern HC4", - "1":"Omolon's Uffern HC4 sentences the City's enemies to burn." + "name":"Uffern HC4", + "flavor":"Omolon's Uffern HC4 sentences the City's enemies to burn." }, { - "0":"Up the Ante", - "1":"Until they fold, or you're dead." + "name":"Up the Ante", + "flavor":"Until they fold, or you're dead." }, { - "0":"Venation III", - "1":"A personal firearm modified by Dead Orbit's superb technicians and specialists." + "name":"Venation III", + "flavor":"A personal firearm modified by Dead Orbit's superb technicians and specialists." }, { - "0":"Vortimer-D", - "1":"Where you come from is not important. It's for what you do that you will be remembered." + "name":"Vortimer-D", + "flavor":"Where you come from is not important. It's for what you do that you will be remembered." }, { - "0":"Word of Crota", - "1":"There was life, and He spoke unto it; and it was silent, and lived no more." + "name":"Word of Crota", + "flavor":"There was life, and He spoke unto it; and it was silent, and lived no more." }, { - "0":"Zaouli's Bane", - "1":"Go, child! Run! Don't look back! Don't—\"" + "name":"Zaouli's Bane", + "flavor":"Go, child! Run! Don't look back! Don't—\"" }, { "name":"0A0X Nightmask", diff --git a/index.html b/index.html index ec17c94..73db463 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,9 @@ + Destiny Flavor Text + diff --git a/js/flavortext.js b/js/flavortext.js index 28eabbe..d294879 100644 --- a/js/flavortext.js +++ b/js/flavortext.js @@ -1,5 +1,8 @@ + grabFlavorText(); + + function grabFlavorText() { // Get JSON file from server - $.getJSON('https://cdn.rawgit.com/antioxidants/destinyflavortext/development/data/flavortext.json', function(data) { + $.getJSON('https://destinyflavortext.net/data/flavortext.json', function(data) { // Grab random entry from list var entry = data[Math.floor(Math.random()*data.length)]; @@ -7,10 +10,11 @@ var myObj = entry; document.getElementById("name").innerHTML = myObj.name; document.getElementById("flavortext").innerHTML = myObj.flavor; - }); - + }) + } + function Refresh() { - location.reload(); + grabFlavorText(); } var aboutTitle = "About DestinyFlavorText.net"; @@ -19,4 +23,4 @@ function About() { document.getElementById("name").innerHTML = aboutTitle; document.getElementById("flavortext").innerHTML = aboutText; - }; \ No newline at end of file +}; \ No newline at end of file