Skip to content

Commit

Permalink
Merge pull request #7 from Styro457/dev
Browse files Browse the repository at this point in the history
Version 0.3.0
  • Loading branch information
Styro457 authored Nov 13, 2023
2 parents 928249a + a256551 commit 08b2807
Show file tree
Hide file tree
Showing 29 changed files with 122 additions and 368 deletions.
Binary file removed assets/fonts/BAUHS93.TTF
Binary file not shown.
Binary file added assets/fonts/BAUHS93.woff2
Binary file not shown.
Binary file removed assets/fonts/GameOver.TTF
Binary file not shown.
Binary file added assets/fonts/GameOver.woff2
Binary file not shown.
Binary file removed assets/fonts/OCR-A-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/OCR-A-Regular.woff2
Binary file not shown.
Binary file removed assets/fonts/upheavtt.ttf
Binary file not shown.
Binary file added assets/fonts/upheavtt.woff2
Binary file not shown.
Binary file removed assets/images/button.png
Binary file not shown.
Binary file removed assets/images/buttonBase.png
Binary file not shown.
Binary file removed assets/images/full-background.png
Binary file not shown.
Binary file removed assets/images/machineBody.png
Binary file not shown.
Binary file modified assets/images/machineBody.webp
Binary file not shown.
Binary file removed assets/images/title.png
Binary file not shown.
44 changes: 28 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<!-- wordish.name by Styro457 -->
<!-- version 0.3.0 -->
<!-- https://github.com/Styro457/wordish.name -->
<head>
<meta charset="UTF-8">
<title>Wordish.Name</title>
<title>Product Name Generator - Wordish.Name</title>

<link rel="icon" type="image/x-icon" href="assets/icons/favicon.ico">
<!--Icon created by Vector Squad - Flaticon-->

<link rel="stylesheet" href="style/fonts.css">
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/machine.css">
<link rel="stylesheet" href="style/results.css">
<link rel="stylesheet" href="style/animations.css">

<meta name="description" content="Generate memorable and meaningful names for a project, product or anything else using uncommon dictionary words.">
<meta name="keywords" content="name generator,namegen,name,title,product name,idea generator,generator,dictionary,words,uncommon words">

<meta name="author" content="Styro457">
<link rel="author" href="https://github.com/Styro457"/>

<meta property="og:title" content="Product Name Generator - Wordish.Name"/>
<meta property="og:description" content="Generate memorable and meaningful names for a project, product or anything else using uncommon dictionary words."/>
<meta property="og:url" content="https://wordish.name" />
<meta property="og:image"content="https://raw.githubusercontent.com/Styro457/wordish.name/resources/preview.png" />
<meta name="theme-color" content="#c97584" data-react-helmet="true" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

</head>
<body>
<div class="cover" id="cover"></div>
<div class="machineHolder">
<img class="title unselectable" src="assets/images/title.webp" width="1334" height="173" ondragstart="return false;" alt="Wordish.Name">
<img class="title unselectable" src="assets/images/title.webp" width="1334" height="173" ondragstart="return false;" alt="wordish.name | use words as names">
<div class="machine">
<div class="results" id="results"><p class="resultsSummary" id="resultsSummary"></p></div>
<img class="machineBody unselectable" src="assets/images/machineBody.webp" width="1157" height="984" ondragstart="return false;" alt="Machine"
onload="document.getElementById('cover').classList.add('fadeOut');">
<div class="machineUI">
<form class="machineForm" action="javascript:onFormSubmit(wordsInput.value, generateButton)">
<div class="machineInput">
<input type="text" id="wordsInput" name="wordsInput" class="PixelatedInput" required
onfocus="startCaret(this);"
onfocusout="stopCaret(this);"
oninput="caretInput(this);"
ondragenter="stopCaret(this);"
ondragover="stopCaret(this);"
ondragend="startCaret(this);"
ondragstart="stopCaret(this);"
onkeydown="caretMove(this)"
onkeyup="caretMove(this)"
<label for="wordsInput" class="inputLabel lightText">Enter a few related words separated by commas</label>
<input type="text" id="wordsInput" name="wordsInput" class="PixelatedInput" required
onfocus="startCaret(this);" onfocusout="stopCaret(this);" oninput="caretInput(this);"
ondragenter="stopCaret(this);" ondragover="stopCaret(this);" ondragend="startCaret(this);"
ondragstart="stopCaret(this);" onkeydown="caretInput(this)" onkeyup="caretInput(this)"
>
</div>
<div class="generateButtonBackground">
Expand All @@ -43,11 +55,11 @@
<div class="machineScreen machineScreenOn" id="machineScreenOn"></div>
<div class="machineScreen">
<p class="screenWords scrollBar" id="screenWords"></p>
<p class="checkedWordsCount count" id="checkedWordsCount"></p>
<p class="foundWordsCount count" id="foundWordsCount"></p>
<p class="checkedWords lightText">Checked Words:</p>
<p class="checkedWordsCount lightText" id="checkedWordsCount"></p>
</div>
<div class="machineLinks unselectable">
<a href="https://github.com/Styro457" target=”_blank”><button class="githubAuthorButton"></button></a>
<a href="https://github.com/Styro457" target=”_blank” rel="author"><button class="githubAuthorButton"></button></a>
<a href="https://github.com/Styro457/Wordish.Name" target=”_blank”><button class="githubPageButton"></button></a>
</div>
</div>
Expand Down
53 changes: 0 additions & 53 deletions index2.html

This file was deleted.

168 changes: 0 additions & 168 deletions old_style/style.css

This file was deleted.

16 changes: 5 additions & 11 deletions scripts/apis/datamuse.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
function getRelatedWords(word, searchType, topics, firstLetter, lastLetter, limit, frequencyLimit, minLength) {
return new Promise((resolve) => {
//Create the api input
let url = "https://api.datamuse.com/words?" + searchType + "=" + word + "&max=" + limit + "&md=df";

//Add topics to the api input if they are specified
if(topics !== null && topics.length > 0) {
let topicsString = topics[0];
for (let i = 1; i < Math.max(topics.length, 5); i++) {
for (let i = 1; i < Math.max(topics.length, 5); i++)
topicsString = topicsString + "," + topics[i];
}
url = url + "&topics=" + topicsString;
}

//Get the api response
fetch(url).then(response => {
return response.json()
}).then(data => {
fetch(url).then(response => {return response.json()}).then(data => {
const words = []
let frequency, word;
for(let i in data) {
frequency = data[i]["tags"][data[i]["tags"].length-1]
word = data[i]["word"];
if(frequency.startsWith(frequencyLimit) && !word.includes(" ") && !word.includes("-") && word.length >= minLength) {
words.push(
{
word: word,
definitions: data[i]["defs"],
frequency: frequency
});
words.push({word: word, definitions: data[i]["defs"], frequency: frequency});
}
}
resolve(words)
Expand Down
34 changes: 0 additions & 34 deletions scripts/apis/google-ngram.js

This file was deleted.

Empty file removed scripts/apis/wikictionary.js
Empty file.
Loading

0 comments on commit 08b2807

Please sign in to comment.