This repository has been archived by the owner on Oct 8, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 726bf9e
Showing
42 changed files
with
970 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
desertedisland.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Eric Huber | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Deserted Island Name Generator | ||
<p align="center"> | ||
<img src="https://desertedisland.name/img/logo.png"> | ||
</p> | ||
Plan your island getaway and pick the perfect island name from a variety of categories! https://desertedisland.name | ||
|
||
## About | ||
[Animal Crossing: New Horizons](http://www.animal-crossing.com/new-horizons) will allow players to name their very own island. In the prequels, this task was often described as difficult. Until the release of Animal Crossing: New Horizons, players will hopefully be able to find inspiration from this Deserted Island Name Generator! | ||
|
||
Generates island names from a variety of sources, such as Nintendo games and fruits. | ||
|
||
## Name Sources (Categories) | ||
You can submit more name sources! Please keep the sources [PG](https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system#MPAA_film_ratings) and use common sense when submitting a new list of names. | ||
|
||
1. [Fork the repository](https://github.com/Externalizable/desertedisland.name/fork) | ||
2. Add a `.txt` file in `/names/` | ||
3. Fill your `.txt` file with as many names as your category serves | ||
4. Add your `.txt` file name to of the `files` array in `core.js`, without the succeeding `.txt` | ||
* **Example:** Your `.txt` file is `Pokemon SwSh.txt`, which means you want to insert `"Pokemon SwSh",` into the array, ideally somewhere in the middle | ||
5. [Submit a Pull Request](https://github.com/Externalizable/desertedisland.name/pulls), and don't forget to describe your category! | ||
|
||
Alternatively, you can [open an issue](https://github.com/Externalizable/desertedisland.name/issues/new) and wait for a contributor to add the category for you! | ||
|
||
## Authors | ||
- [Externalizable](https://github.com/Externalizable) - Website & domain | ||
- [MrFowben](https://twitter.com/MrFowben) - Logo, icon, background | ||
|
||
See also the list of [contributors](https://github.com/Externalizable/desertedisland.name/contributors) who participated in this project. | ||
|
||
## License | ||
This project is licensed under the MIT License - see the [LICENSE](https://github.com/Externalizable/desertedisland.name/blob/master/LICENSE) file for details |
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>AC:NH Island Name Generator</title> | ||
<link href="./style/style.css" rel="stylesheet" /> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | ||
<script src="./js/core.js"></script> | ||
<link rel="apple-touch-icon" sizes="180x180" href="./meta/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="./meta/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="./meta/favicon-16x16.png"> | ||
<link rel="manifest" href="./meta/site.webmanifest"> | ||
<link rel="mask-icon" href="./meta/safari-pinned-tab.svg" color="#009534"> | ||
<link rel="shortcut icon" href="./meta/favicon.ico"> | ||
<meta name="msapplication-TileColor" content="#00be42"> | ||
<meta name="msapplication-config" content="./meta/browserconfig.xml"> | ||
<meta name="theme-color" content="#ffffff"> | ||
<meta name="msapplication-TileColor" content="#779ecb"> | ||
<meta name="msapplication-config" content="./meta/browserconfig.xml"> | ||
<meta name="theme-color" content="#ffffff"> | ||
<meta name="description" content="Plan your island getaway and pick the perfect island name from a variety of categories!"> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:url" content="https://desertedisland.name"> | ||
<meta name="twitter:title" content="Animal Crossing: New Horizons Island Name Generator"> | ||
<meta name="twitter:description" content="Plan your island getaway and pick the perfect island name from a variety of categories!"> | ||
<meta name="twitter:image" content="https://desertedisland.name/meta/thumbnail.png"> | ||
<meta name="twitter:image:alt" content="Animal Crossing Leaf"> | ||
<meta name="twitter:creator" content="Externalizable"> | ||
<meta property="og:title" content="Animal Crossing: New Horizons Island Name Generator"> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:image" content="https://desertedisland.name/meta/thumbnail.png"> | ||
<meta property="og:url" content="https://desertedisland.name"> | ||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" /> | ||
</head> | ||
|
||
<body> | ||
<a href="https://github.com/Externalizable/desertedisland.name" target="_blank" id="github" aria-label="View source on GitHub"><svg id="github" width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"> | ||
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path> | ||
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" | ||
style="transform-origin: 130px 106px;" class="octo-arm"></path> | ||
<path | ||
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" | ||
fill="currentColor" class="octo-body"></path> | ||
</svg></a> | ||
<div id="wrapper"> | ||
<div id="container"> | ||
<img id="logo" src="./img/logo.png"></img> | ||
<div id="name" class="box"> | ||
<span>Enable Javascript to use this website</span> | ||
</div> | ||
<i id="redo" class="fas fa-redo-alt spin"></i> | ||
<div id="sources" class="box"> | ||
<div id="title"> | ||
<h2>Name Sources</h2> | ||
</div> | ||
<div id="content"> | ||
<label> | ||
<input type="checkbox" id="select-all" checked> | ||
<i class="check fas"></i> | ||
<span>Select All</span> | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
<footer> | ||
<span>Art by <a href="https://twitter.com/MrFowben" target="_blank">@MrFowben</a></span> | ||
<span>Website by <a href="https://twitter.com/Externalizable" target="_blank">@Externalizable</a></span> | ||
</footer> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
var dictionary = {}; | ||
|
||
var files = [ | ||
"Colors", | ||
"Elder Scrolls V Skyrim", | ||
"Flowers", | ||
"Fruits & Vegetables", | ||
"Gems & Minerals", | ||
"Pokemon DPPT", | ||
"Pokemon RBY", | ||
"Pokemon RSE", | ||
"Pokemon SwSh", | ||
"Planets & Stars", | ||
"Super Mario Galaxy", | ||
"Super Mario Odyssey", | ||
"Super Mario Sunshine", | ||
"Trees", | ||
"Undertale", | ||
"US Towns", | ||
"Zelda BOTW", | ||
"Zelda Majoras Mask", | ||
"Zelda OOT", | ||
"Zelda Wind Waker" | ||
]; | ||
|
||
function getNames() { | ||
var names = {}; | ||
for (var key in dictionary) { | ||
var id = convertToId(key); | ||
if ($("input#" + id).is(":checked")) { | ||
for (var entry in dictionary[key]) { | ||
var name = dictionary[key][entry]; | ||
if (!names.hasOwnProperty(name)) { | ||
names[name] = key; | ||
} | ||
} | ||
} | ||
} | ||
return names; | ||
} | ||
|
||
function convertToId(name) { | ||
return name.toLowerCase().replace(/\s/g, "_").replace(/\W/g, ""); | ||
} | ||
|
||
$(document).ready(function() { | ||
files.forEach(function(file, i) { | ||
$.get("./names/" + file.replace(/\s/g, "%20").replace("/\&/g", "%26") + ".txt", function(data) { | ||
dictionary[file] = data.split('\n'); | ||
$("#content").append("<label><input type=\"checkbox\" id=\"" + convertToId(file) + "\" checked><i class=\"check fas\"></i><span>" + file + "</span></label>"); | ||
}); | ||
}); | ||
|
||
$("#redo").on("click", function() { | ||
var button = $(this); | ||
button.removeClass("spin"); | ||
setTimeout(function() { | ||
button.addClass("spin"); | ||
|
||
var element = $("#name").find("span:first"); | ||
|
||
var names = getNames(); | ||
var keys = Object.keys(names); | ||
var values = Object.values(names); | ||
|
||
var currentName = element.text(); | ||
var name; | ||
var category; | ||
if (keys.length > 0) { | ||
while (name == undefined || name == currentName) { | ||
var index = Math.floor(Math.random() * keys.length); | ||
name = keys[index] + " Island"; | ||
category = values[index]; | ||
} | ||
} | ||
if (name == undefined) name = "Isle of Nothingness"; | ||
if (category == undefined) category = "Never Ending Void"; | ||
|
||
element.text(name); | ||
element.attr("category", category); | ||
}, 100); | ||
}); | ||
|
||
$("#select-all").click(function(event) { | ||
var checked = this.checked; | ||
$(":checkbox").each(function() { | ||
this.checked = checked; | ||
}); | ||
}); | ||
|
||
setTimeout(function() { | ||
$(":checkbox").change(function(event) { | ||
if (!this.checked) { | ||
$("#select-all").each(function() { | ||
this.checked = false; | ||
}); | ||
} | ||
}); | ||
|
||
$("#redo").click(); | ||
}, 100); | ||
}); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/meta/mstile-150x150.png"/> | ||
<TileColor>#00be42</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "", | ||
"short_name": "", | ||
"icons": [ | ||
{ | ||
"src": "/meta/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/meta/android-chrome-256x256.png", | ||
"sizes": "256x256", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Aero | ||
Blue | ||
Cyan | ||
Fuchsia | ||
Green | ||
Indigo | ||
Magenta | ||
Orange | ||
Red | ||
Violet | ||
Yellow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Dawnstar, | ||
Falkreath, | ||
Markarth, | ||
Morthal, | ||
Riften, | ||
Solitude, | ||
Whiterun, | ||
Windhelm, | ||
Winterhold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Bluebell | ||
Cherry Blossom | ||
Chrysanthemum | ||
Crocus | ||
Daffodil | ||
Daisy | ||
Dandelion | ||
Geranium | ||
Hyacinth | ||
Iris | ||
Lily | ||
Lotus | ||
Orchid | ||
Peony | ||
Poppy | ||
Rose | ||
Snowdrop | ||
Sunflower | ||
Tulip | ||
Water Lily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Apple | ||
Apricot | ||
Avocado | ||
Banana | ||
Blackberry | ||
Blackcurrant | ||
Blueberry | ||
Cantaloupe | ||
Cherry | ||
Clementine | ||
Coconut | ||
Cranberry | ||
Durian | ||
Fig | ||
Grape | ||
Grapefruit | ||
Guava | ||
Honeydew | ||
Jackfruit | ||
Kiwi | ||
Lemon | ||
Lime | ||
Lychee | ||
Mandarin | ||
Mango | ||
Nectarine | ||
Olive | ||
Orange | ||
Papaya | ||
Passion | ||
Peach | ||
Pear | ||
Pineapple | ||
Pitaya | ||
Plum | ||
Pomegranate | ||
Prune | ||
Pummelo | ||
Quince | ||
Raspberry | ||
Rhubarb | ||
Soursop | ||
Strawberry | ||
Tangerine | ||
Watermelon |
Oops, something went wrong.