https://github.com/pjaerr/pub-name-generator
Generates random pub names
https://github.com/pjaerr/pub-name-generator
ajax css generator html javascript
Last synced: 11 months ago
JSON representation
Generates random pub names
- Host: GitHub
- URL: https://github.com/pjaerr/pub-name-generator
- Owner: Pjaerr
- License: unlicense
- Created: 2018-05-12T16:54:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:23:20.000Z (about 3 years ago)
- Last Synced: 2025-05-08T22:53:59.248Z (11 months ago)
- Topics: ajax, css, generator, html, javascript
- Language: JavaScript
- Homepage: https://pjaerr.github.io/Pub-Name-Generator/
- Size: 220 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pub-Name-Generator
Generates random pub names by grabbing a collection of random nouns or adjectives from a text file, choosing a random format and then updating the DOM with the combination when _spacebar_ is pressed or the screen is clicked/tapped.
Created using **HTML**, **CSS** and **JavaScript**
### Developing Locally
1. Clone the repository
2. Run `npm install`
3. Run `npm start`
4. Open the index.html file on a local server
The JavaScript from the `main.js` is minified and then transpiled into code that will run on older browsers, this is what the grunt tasks are for. The CSS is just normal CSS and can be edited directly in the `main.css` file.
### Pub Name Formats
The _noun_ and _noun_ (The Swan and Goose)
The _noun_ _bodypart_ (The Kings Arms, Head, Feet, Legs, Hands)
The _adjective_ _noun_ (The Old Horse)
The _noun_ (The Globe)