christmasElfNames.js (4989B)
1 var nm1 = ["Alabaster", "Angel", "Berry", "Bing", "Bling", "Blitz", "Blue", "Bluebell", "Brandysnap", "Brownie", "Buddy", "Bushy", "Buster", "Butters", "Button", "Buttons", "Candycane", "Cedar", "Chestnut", "Choco", "Cinnamon", "Coco", "Cocoa", "Cookie", "Dash", "Elm", "Evergreen", "Fig", "Figgy", "Fir", "Fizzy", "Flake", "Fluffy", "Frost", "Frosty", "Fruity", "Fudge", "Fuzzle", "Garland", "Ginger", "Gingernuts", "Gingersnap", "Glitter", "Glory", "Hazelnut", "Ice", "Jangle", "Jingle", "Jolly", "Marzipan", "Merry", "Mince", "Mint", "Mistle", "Mistletoe", "Noel", "Nutmeg", "Pepper", "Peppetmint", "Perky", "Pine", "Pinecone", "Pudding", "Rusty", "Shimmer", "Skittle", "Snappy", "Snow", "Snowball", "Snowdrop", "Snowflake", "Sparkle", "Sprinkle", "Sprinkles", "Starlight", "Stripes", "Sugar", "Sugarplum", "Tinkles", "Tinsel", "Tiny", "Topper", "Trinket", "Twinkle", "Twinkletoes", "Wink", "Winter", "Yule"]; 2 var nm2 = ["Angel", "Berry", "Bing", "Bling", "Blitz", "Blue", "Bluebell", "Brownie", "Button", "Buttons", "Candycane", "Choco", "Cinnamon", "Coco", "Cocoa", "Cookie", "Dash", "Fig", "Figgy", "Fizzy", "Flake", "Fluffy", "Fruity", "Fudge", "Fuzzle", "Garland", "Ginger", "Gingernuts", "Gingersnap", "Glitter", "Glory", "Ice", "Jangle", "Jingle", "Jolly", "Merry", "Mince", "Mint", "Mistle", "Mistletoe", "Nutmeg", "Pepper", "Peppetmint", "Perky", "Pine", "Pudding", "Skittle", "Snappy", "Snow", "Snowball", "Snowdrop", "Snowflake", "Sparkle", "Sprinkle", "Sprinkles", "Starlight", "Stripes", "Sugar", "Sugarplum", "Tinkles", "Tinsel", "Tiny", "Topper", "Trinket", "Twinkle", "Twinkletoes", "Wink", "Winter", "Yule"]; 3 var nm3 = ["Angel", "Belle", "Berry", "Bing", "Bling", "Blitz", "Blue", "Bluebell", "Brandy", "Brownie", "Bubbles", "Button", "Buttons", "Candy", "Candycane", "Carol", "Cherry", "Choco", "Cinnamon", "Clove", "Coco", "Cocoa", "Cookie", "Cupcake", "Dandy", "Dash", "Ember", "Emerald", "Eve", "Evie", "Faith", "Fig", "Figgy", "Fizzy", "Flake", "Fluffy", "Fruity", "Fudge", "Fuzzle", "Garland", "Ginger", "Gingernuts", "Gingersnap", "Glitter", "Gloria", "Glory", "Hazel", "Holly", "Honey", "Honeycomb", "Hope", "Ice", "Ivy", "Jangle", "Jewel", "Jingle", "Jolly", "Joy", "Juniper", "Merry", "Mince", "Mint", "Mistle", "Mistletoe", "Noelle", "Nutmeg", "Pepper", "Peppetmint", "Perky", "Pine", "Pudding", "Ruby", "Scarlet", "Skittle", "Snappy", "Snow", "Snowball", "Snowdrop", "Snowflake", "Sparkle", "Sprinkle", "Sprinkles", "Starlight", "Stripes", "Sugar", "Sugarplum", "Tinkles", "Tinsel", "Tiny", "Topper", "Trinket", "Trixie", "Twinkle", "Twinkletoes", "Wink", "Winter", "Yule"]; 4 var nm4 = ["Angel", "Bustle", "Busy", "Candle", "Candy", "Carol", "Chill", "Chilly", "Chimney", "Chocolate", "Cider", "Cookie", "Crackle", "Cuddle", "Dream", "Ever", "Fire", "Flippy", "Frost", "Frosty", "Fruit", "Gift", "Good", "Goody", "Grotto", "Happy", "Holi", "Holly", "Hot", "Hustle", "Ivy", "Jiggle", "Jingle", "Jolly", "Magic", "Milk", "Milky", "Miracle", "Mistle", "Mitten", "Morning", "Muffin", "Nibble", "Night", "Nippy", "Party", "Pickle", "Plum", "Poem", "Pudding", "Rhyme", "Ribbon", "Sleepy", "Snow", "Sparkle", "Sugar", "Sweet", "Toffee", "Twinkle", "Wiggle"]; 5 var nm5 = ["ball", "beard", "bell", "bow", "box", "cake", "cane", "card", "carol", "cheer", "dance", "dancer", "dash", "feast", "flake", "foot", "friend", "frost", "fun", "game", "gift", "glitter", "glove", "guest", "hat", "hope", "hug", "icicle", "ivy", "joke", "joy", "jump", "kiss", "laugh", "light", "love", "milk", "mitten", "moon", "myrrh", "night", "pie", "plum", "scarf", "sledge", "sleigh", "song", "spirit", "star", "toy", "tree", "warmth", "wine", "wish", "wrap"]; 6 7 function nameGen(type) { 8 var tp = type; 9 var br = ""; 10 var element = document.createElement("div"); 11 element.setAttribute("id", "result"); 12 for (i = 0; i < 10; i++) { 13 if (tp === 1) { 14 rnd = Math.floor(Math.random() * nm3.length); 15 rnd2 = Math.floor(Math.random() * nm4.length); 16 rnd3 = Math.floor(Math.random() * nm5.length); 17 names = nm3[rnd] + " " + nm4[rnd2] + nm5[rnd3]; 18 } else if (tp === 2) { 19 rnd = Math.floor(Math.random() * nm2.length); 20 rnd2 = Math.floor(Math.random() * nm4.length); 21 rnd3 = Math.floor(Math.random() * nm5.length); 22 names = nm2[rnd] + " " + nm4[rnd2] + nm5[rnd3]; 23 } else { 24 rnd = Math.floor(Math.random() * nm1.length); 25 rnd2 = Math.floor(Math.random() * nm4.length); 26 rnd3 = Math.floor(Math.random() * nm5.length); 27 names = nm1[rnd] + " " + nm4[rnd2] + nm5[rnd3]; 28 } 29 br = document.createElement('br'); 30 element.appendChild(document.createTextNode(names)); 31 element.appendChild(br); 32 } 33 if (document.getElementById("result")) { 34 document.getElementById("placeholder").removeChild(document.getElementById("result")); 35 } 36 document.getElementById("placeholder").appendChild(element); 37 }