From 518f43e226e17deffeb4f88a213a8e3436c3c9f1 Mon Sep 17 00:00:00 2001 From: Ole Henrik Stabell Date: Mon, 20 Aug 2018 18:21:13 +0200 Subject: [PATCH] Change urls to github ones --- js/flavortext.js | 78 ++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/js/flavortext.js b/js/flavortext.js index fdea7f8..40979e9 100644 --- a/js/flavortext.js +++ b/js/flavortext.js @@ -1,6 +1,6 @@ function GrabRandomFlavorText() { // Get JSON file from server - $.getJSON('https://destinyflavortext.net/data/flavortext.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/flavortext.json', function(data) { // Grab random entry from list var entry = data[Math.floor(Math.random()*data.length)]; @@ -18,7 +18,7 @@ } // Variables with info on the website, used for @About function. - var aboutTitle = "About DestinyFlavorText.net"; + var aboutTitle = "About Destiny Flavor Text"; 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 The Antioxidants If you would like to contribute to DestinyFlavorText.net's development, help contribute to the source code over on Github: https\://github.com/antioxidants/destinyflavortext."; // Changes the flavor text, into a small description for the website. @@ -30,12 +30,12 @@ // Opens the list page function goToLists() { - window.location = "https://destinyflavortext.net/lists.html"; + window.location = "https://darkstarteam.github.io/destinyflavortext/lists.html"; } // Returns the user to the home page function GoHome() { - window.location = "https://destinyflavortext.net" + window.location = "https://darkstarteam.github.io/destinyflavortext/" } function ThemeChooser() { @@ -87,7 +87,7 @@ // Grabs all the flavortext and displays it as a list. function GrabFlavorText() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/flavortext.json', function(data) { + $.getJSON('flavortext.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -111,7 +111,7 @@ // Grabs all flavor text from auto rifles and displays it as a list. function GrabAutos() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/autos.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/autos.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -132,7 +132,7 @@ // Grabs all flavor text from fusion rifles and displays it as a list. function GrabFusions() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/fusions.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/fusions.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -153,7 +153,7 @@ // Grabs all flavor text from hand cannons and displays it as a list. function GrabHandCannons() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/hand%20cannons.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/hand%20cannons.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -174,7 +174,7 @@ // Grabs all flavor text from machine guns and displays it as a list. function GrabLmgs() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/lmgs.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/lmgs.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -195,7 +195,7 @@ // Grabs all flavor text from pulse rifles and displays it as a list. function GrabPulses() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/pulses.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/pulses.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -216,7 +216,7 @@ // Grabs all flavor text from rocket launchers and displays it as a list. function GrabRockets() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/rockets.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/rockets.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -237,7 +237,7 @@ // Grabs all flavor text from scout rifles and displays it as a list. function GrabScouts() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/scouts.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/scouts.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -258,7 +258,7 @@ // Grabs all flavor text from shotguns and displays it as a list. function GrabShotguns() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/shotguns.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/shotguns.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -279,7 +279,7 @@ // Grabs all flavor text from sidearms and displays it as a list. function GrabSidearms() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/sidearms.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/sidearms.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -300,7 +300,7 @@ // Grabs all flavor text from sniper rifles and displays it as a list. function GrabSnipers() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/snipers.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/snipers.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -320,7 +320,7 @@ // Grabs all flavor text from swords and displays it as a list. function GrabSwords() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/weapons/swords.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/weapons/swords.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -341,7 +341,7 @@ // Grabs all flavor text from artifacts and displays it as a list. function GrabArtifacts() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/artifacts.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/artifacts.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -362,7 +362,7 @@ // Grabs all flavor text from hunter artifacts and displays it as a list. function GrabHunterArtifacts() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/hunter_artifact.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/hunter_artifact.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -383,7 +383,7 @@ // Grabs all flavor text from hunter chest armor and displays it as a list. function GrabHunterChestArmor() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/hunter_chest_armor.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/hunter_chest_armor.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -404,7 +404,7 @@ // Grabs all flavor text from cloaks and displays it as a list. function GrabCloaks() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/hunter_cloaks.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/hunter_cloaks.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -425,7 +425,7 @@ // Grabs all flavor text from hunter gauntlets and displays it as a list. function GrabHunterGauntlets() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/hunter_gauntlets.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/hunter_gauntlets.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -446,7 +446,7 @@ // Grabs all flavor text from hunter helmets and displays it as a list. function GrabHunterHelmets() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/hunter_helmets.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/hunter_helmets.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -467,7 +467,7 @@ // Grabs all flavor text from hunter leg armor and displays it as a list. function GrabHunterLegArmor() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/hunter_leg_armor.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/hunter_leg_armor.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -488,7 +488,7 @@ // Grabs all flavor text from titan artifacts and displays it as a list. function GrabTitanArtifacts() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/titan_artifacts.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/titan_artifacts.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -509,7 +509,7 @@ // Grabs all flavor text from titan chest armor and displays it as a list. function GrabTitanChestArmor() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/titan_chest_armor.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/titan_chest_armor.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -530,7 +530,7 @@ // Grabs all flavor text from marks and displays it as a list. function GrabMarks() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/titan_marks.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/titan_marks.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -551,7 +551,7 @@ // Grabs all flavor text from titan gauntlets and displays it as a list. function GrabTitanGauntlets() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/titan_gauntlets.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/titan_gauntlets.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -572,7 +572,7 @@ // Grabs all flavor text from titan helmets and displays it as a list. function GrabTitanHelmets() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/titan_helmets.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/titan_helmets.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -593,7 +593,7 @@ // Grabs all flavor text from titan leg armor and displays it as a list. function GrabTitanLegArmor() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/titan_leg_armor.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/titan_leg_armor.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -614,7 +614,7 @@ // Grabs all flavor text from warlock artifacts and displays it as a list. function GrabWarlockArtifacts() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/warlock_artifact.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/warlock_artifact.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -635,7 +635,7 @@ // Grabs all flavor text from warlock chest armor and displays it as a list. function GrabWarlockChestArmor() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/warlock_chest_armor.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/warlock_chest_armor.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -656,7 +656,7 @@ // Grabs all flavor text from bonds and displays it as a list. function GrabBonds() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/warlock_bonds.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/warlock_bonds.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -677,7 +677,7 @@ // Grabs all flavor text from warlock gauntlets and displays it as a list. function GrabWarlockGauntlets() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/warlock_gauntlets.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/warlock_gauntlets.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -698,7 +698,7 @@ // Grabs all flavor text from warlock helmets and displays it as a list. function GrabWarlockHelmets() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/warlock_helmets.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/warlock_helmets.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -719,7 +719,7 @@ // Grabs all flavor text from warlock leg armor and displays it as a list. function GrabWarlockLegArmor() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/armor/warlock_leg_armor.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/armor/warlock_leg_armor.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -740,7 +740,7 @@ // Grabs all flavor text from ghost shells and displays it as a list. function GrabGhosts() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/misc/ghosts.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/misc/ghosts.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -761,7 +761,7 @@ // Grabs all flavor text from ships and displays it as a list. function GrabShips() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/misc/ships.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/misc/ships.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -782,7 +782,7 @@ // Grabs all flavor text from sparrows and displays it as a list. function GrabSparrows() { $("#item_list").html(""); - $.getJSON('https://destinyflavortext.net/data/misc/sparrows.json', function(data) { + $.getJSON('https://darkstarteam.github.io/destinyflavortext/data/misc/sparrows.json', function(data) { var container = $('#item_list'); for(var i = 0, k = data.length; i < k; i++){ @@ -798,4 +798,4 @@ container.append(name, flavor); } }) - }; \ No newline at end of file + };