cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv


A Pen By Captain Anonymous

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
  <div class="jumbotron inverse">
    <h2 class="display-4">The SPFBO 2018 Title Generator</h2> 
    <h3>by Para</h3>
  <select id="options" class="custom-select">
    <option value="random">Random</option>
    <option value="nounsOnly">The [x] of [y]</option>
    <option value="adjNoun">The [x][y]</option>
    <option value="leftAdj">The [x][y] of the [z]</option>
    <option value="rightAdj">The [x] of [y][z]</option>
    <option value="bothAdj">The [w][x] of the [y][z]</option>
  <br /><br />
  <h2 id="title">-</h2>
  <br />
  <button type="button" onclick="generate()" class="btn btn-dark">Generate</button>

  background: black !important;
  color: white;

  margin-left: 20px;

  width: 200px;
              var nouns = ["Wine", "Patrol", "Nights", "Gods", "Orb", "Robocopter", "Dreams", "Coven", "Glen", "Fallen", "Dragons", "Endless", "Dimensioner", "Fire", "Witch", "Shipwreck", "Cave", "Diem", "Hold", "Sand", "Raven", "Death", "Road", "Meet", "Honour", "Render", "Water", "Isle", "Mind", "Orchard", "Candor", "Heir", "God", "Gang", "Sea", "One", "Child", "Truth", "Great", "Prophecy", "Whisperer", "Stars", "Hourglass", "Ocean", "Maker", "Hunters", "Oath", "Season", "Darkness", "Game", "Wind", "Vale", "Curse", "Hunter", "Spectre", "Bile", "Rogue", "Path", "Dance", "Lion", "Swords", "Roses", "Takeover", "Shadow", "Magic", "Symphony", "Winter", "Boy", "Casting", "Father", "Faun", "Hero", "Wizard", "Hog", "Song", "Silver", "Merchant", "Empire", "Integral", "Necromancer", "Thieves", "Mabus", "Heart", "Souls", "Faces", "King", "Rise", "Quarter", "Blood", "Crown", "Sentinel", "Hall", "Angel", "Bastard", "Devil", "Sphere", "Soul", "Wolf", "Life", "Murder", "Pledges", "City", "Legacy", "Paradise",  "Light", "Night", "Sky", "Daughter", "Shield", "Lilith", "Feeding", "Clock", "Nectar", "Meggido", "Prometheus", "Falls", "Dragon", "Act", "Hell", "Dawn", "Servant", "Defender", "Rights", "Chaos", "Voice", "Storm",    "Blade", "Dark", "Kingdom"];

var adjectives = ["Lost", "Fallen", "Raven", "Forged", "Rogue", "Foolish", "Blue", "Red", "Last", "Bound", "Strange", "Easy", "Hostile", "Silver", "Hero", "Boy", "Thousand", "Chosen", "Hidden",  "First", "Careful", "Blood", "Sphere", "Angel", "Bastard", "Devil", "Legacy", "Light", "Night", "Dragon", "Hell", "Dawn", "Chaos", "Spinning", "Sworn", "Dark", "Brutal"];

var adverbs = ["Magically"];

function nounsOnlyGen(noun1, noun2){
  return "The " + noun1 + " of " + noun2;
function adjNounGen(adj, noun){
  return "The " + adj + " " + noun;
function leftAdjGen(adj, noun1, noun2){
  return "The " + adj+ " " + noun1 + " of the " + noun2;
function rightAdjGen(adj, noun1, noun2){
  return "The " + noun1 + " of " + adj + " " + noun2;
function bothAdjGen(adj1, adj2, noun1, noun2){
  return "The " + adj1 + " " + noun1 + " of the " + adj2 + " " + noun2;

function generate(){
  var nounsLen = nouns.length;
  var adjsLen = adjectives.length;
  var noun1 = Math.floor(Math.random() * nounsLen);
  var noun2 = Math.floor(Math.random() * nounsLen);
  var adj1 = Math.floor(Math.random() * adjsLen);
  var adj2 = Math.floor(Math.random() * adjsLen);
  var val = document.getElementById("options").value;
  var title;
  var rndfunc = Math.floor(Math.random() * 5); 
  if(val == "nounsOnly" || (val == "random" && rndfunc == 0)){
    title = nounsOnlyGen(nouns[noun1], nouns[noun2]);
  else if(val == "adjNoun" || (val == "random" && rndfunc == 1)){
    title = adjNounGen(adjectives[adj1], nouns[noun1]);

  else if(val == "leftAdj" || (val == "random" && rndfunc == 2)){
    title = leftAdjGen(adjectives[adj1], nouns[noun1], nouns[noun2]);
  else if(val == "rightAdj" || (val == "random" && rndfunc == 3)){
    title = rightAdjGen(adjectives[adj1], nouns[noun1], nouns[noun2]);
  else if(val == "bothAdj" || (val == "random" && rndfunc == 4)){
    title = bothAdjGen(adjectives[adj1], adjectives[adj2], nouns[noun1], nouns[noun2]);
  document.getElementById("title").innerHTML = title;
Loading ..................