Advertisement
mimmie

Untitled

Feb 11th, 2021
1,128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2.         "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.     <title>Random names</title>
  7.     <meta name="description" content="A do it yourself name generator from online-generators.com" />
  8.    
  9.    
  10.    
  11.     <!-- The Generator script. You can move the script to an external file for better overview -->
  12.     <script type="text/javascript">
  13.     /*  Online Name Generators v.1.0 script is  made by Niels Gamborg webmaster at online-generator.com.  
  14.     *    The script is  free (as in "free speech" and also as in "free beer") in anyway. Use it after you own likings.
  15.     *    Peace and love. :)
  16.     */ 
  17.         function generator(){
  18.             // Add your own words to the wordlist. Be carefull to obey the showed syntax
  19.            
  20.             var wordlist1 = ["Talentine","Tommy","Quiche","Lucifer","Sammy","Rupert","Damien","Cern",
  21.                             "Blue","Esmé | Gigi | Geniveve","Kiran","Fae",
  22.                             "Tarenar","Cybele","Cordelia","Hamlet","Renado","Adaigo",
  23.                             "Akimbo","Ash","Aspen","Athena","Avalon","Bunny","Calypso",
  24.                             "Cole","Dawn","Devan","Dew","Dolly","Dove","Dusty","Eddy",
  25.                 "Emrys","Finley","Gilly","Glade","Glory","Grace","Harmony","Harp","Hemlock","Hero",
  26.                             "Hollow","Juniper","Knox","Kona","Laurel","Lenox","Liberty","Lion","Lotus","Love",
  27.                             "Lucia","Maple","Newt","Nova",
  28.                             "Peony","Phoenix","Poppy","River","Rogue","Rory","Rowan",
  29.                             "Salem",
  30.                             "Serenity","Snow","Star",
  31.                             "Sunny","Treasure",
  32.                             "Wolf","Cephei","Cygni","Persei",
  33.                             "Carinae","Venus","Antares","Epsilon","Aldebaran","Orion","Draco","Casper",
  34.                             "Caspian","Ishtar","Tiamat","Abel","Aberdeen","Acacia","Adeline",
  35.                             "Ainsley","Alva","Amity","Anais","Ara","Ariadne","Arielle","Artemis",
  36.                             "Azalea","Behati","Bellamy","Blair","Blake","Callum","Camden","Celine",
  37.                             "Chloe","Clemence","Cleo","Constance","Daria","Delta","Edith","Eloise",
  38.                             "Elsa","Estelle","Fleur","Geneva","Gisele","Glenn","Harriette","Hunter",
  39.                             "Ines","Iris","Isobel","Isolde","Ivy","Jerome","Juliette","Lavender",
  40.                             "London","Lune","Medea","Noir","Octavia","Odessa","Olympia","Peach",
  41.                             "Pietra","Remy","Rosie","Sera","Starr","Suki","Tilley","Willa","Wren",
  42.                             "Wylie","Ysabel","Yvonne","Abbot","Angus","Clement","Dorian","Ferdinand",
  43.                             "Graham","Imogen","Louie","Marigold","Mordecai","Otto","Piper","Poe",
  44.                             "Porter","Presley","Primrose","Quigley","Quincy","Reuben","Rudy",
  45.                             "Sunday","Theodore","Vernon","Wendell","Windy","Wren", "Europa", "Kokari", "Folke", "Einar", "Kurt", "Rolf", "Konrad", "Signe", "Hannah", "Ingegerd", "Brita", "Frida", "Ingeborg", "Viola", "Abel", "Aina", "Alf", "Amalia", "Anita", "Astrid", "Bengt", "Bernt", "Bertil", "Dagmar", "Dorothea", "Elsa", "Erik", "Gertrud", "Gunnar", "Harald", "Helmer", "Hillevi", "Jarl", "Judit", "Karl", "Knut", "Lennart", "Majlis", "Märta", "Ragnar", "Rune", "Sigurd", "Sigvard", "Solveig", "Stig", "Sven", "Agreus", "Azazel", "Uriel"]
  46.            
  47.            
  48.             // Random numbers are made
  49.             var randomNumber1 = parseInt(Math.random() * wordlist1.length);
  50.             var name = wordlist1[randomNumber1];           
  51.            
  52.             //alert(name); //Remove first to slashes to alert the name
  53.            
  54.             //If there's already a name it is removed  
  55.             if(document.getElementById("result")){
  56.                 document.getElementById("placeholder").removeChild(document.getElementById("result"));
  57.             }
  58.             // A div element is created to show the generated name. The Name is added as a textnode. Textnode is added to the placeholder.
  59.             var element = document.createElement("div");
  60.             element.setAttribute("id", "result");
  61.             element.appendChild(document.createTextNode(name));
  62.             document.getElementById("placeholder").appendChild(element);
  63.         }      
  64.     </script>
  65.    
  66.    
  67.    
  68.     <!-- Stylesheet. Change styles here. You can move the stylesheet to a extern file for better overview -->
  69. <style>figure{margin:0}.tmblr-iframe{position:absolute}.tmblr-iframe.hide{display:none}.tmblr-iframe--amp-cta-button{visibility:hidden;position:fixed;bottom:10px;left:50%;transform:translateX(-50%);z-index:100}.tmblr-iframe--amp-cta-button.tmblr-iframe--loaded{visibility:visible;animation:iframe-app-cta-transition .2s ease-out}</style><link href="https://fonts.googleapis.com/css?family=Karla:400,400i,700,700i|Raleway:400,500,600,700,800|Roboto:300i,400,400i,500,500i,700,700i|Muli:400|Source+Sans+Pro:400,600,700|" rel="stylesheet"><!-- Stylesheet. Change styles here. You can move the stylesheet to a extern file for better overview --><style type="text/css">
  70.    
  71.    
  72.         body{font-family: arial, serif; font-size: 15px; text-align: center; color: #999; background-color: #f6f6f6; font-family: 'muli', sans-serif;}
  73.        
  74.         #wrapper{border-left:1px solid #cccccc;border:1px solid #eaeaea;margin:0 auto;padding: 0 20px;width: 300px; margin-top: 50px; background-color: #ffffff; border-radius: 5px;}
  75.        
  76.         #generator{background:#f6f6f6;border:1px solid #f6f6f6;margin:30px 0;font-size:36px;font-weight:bold;padding:20px 0 20px;text-align:center;-moz-border-radius: 5px;-webkit-border-radius: 5px; color: #ffffff; color: #ca9e9e; font-family: 'muli', sans-serif;}
  77.        
  78.         #generator input{ font-family: 'muli', sans-serif;font-size:10px;font-weight:normal;margin-top: 20px}
  79.        
  80.         #footer{font-size: 10px; color: #999; margin: 30px 0 0 0;}
  81.        
  82.         #footer a{color:#999}
  83.        
  84.         h1 {font-size:15px;
  85. text-align:center;
  86. font-family: 'muli', sans-serif;
  87. letter-spacing:0px;
  88. margin-left:7px;
  89. text-transform:uppercase;
  90. font-weight:700;
  91. line-height:12px;
  92. color:;
  93. padding:10px;
  94. padding-top:15px;
  95. border-bottom: 2px solid #ededed;
  96. }
  97.        
  98.         input[type=button] {
  99.     color:#bababa; background-color: #ffffff; border: none; font-family: 'muli', sans-serif;}
  100.     </style>
  101.    
  102.    
  103. </head>
  104. <body onload="generator()">
  105.     <div id="wrapper">
  106.        
  107.         <!-- Change the text to your needs -->
  108.         <p>Just a ton of names I like and have gathered all over.</p>
  109.        
  110.         <!-- The generator result and button. Change text on the button by changing button value. Be carefull changing ID's in this part -->
  111.         <div id="generator" >
  112.             <div id="placeholder"></div>
  113.             <input type="button" value="GO!" onclick="generator()" />      
  114.         </div>
  115.        
  116.         <!--  Change the text to your needs -->
  117.         <p></p>
  118.        
  119.         <!-- The footer. Place any contact info ect here.-->
  120.         <div id="footer">
  121.         <p>This generator is developed with help from the <a href="http://online-generator.com">online name generators</a>.
  122.         </p>
  123.         </div>
  124.     </div>
  125. </body>
  126. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement