Skip to content

Commit

Permalink
Change urls to github ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Hennamann authored Aug 20, 2018
1 parent 1fb5a12 commit 518f43e
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions js/flavortext.js
Original file line number Diff line number Diff line change
@@ -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)];

Expand All @@ -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 <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>.";

// Changes the flavor text, into a small description for the website.
Expand All @@ -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() {
Expand Down Expand Up @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -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++){
Expand All @@ -798,4 +798,4 @@
container.append(name, flavor);
}
})
};
};

0 comments on commit 518f43e

Please sign in to comment.