amp-web-push-widget button.amp-subscribe { display: inline-flex; align-items: center; border-radius: 5px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 500; background: #4A90E2; margin-top: 7px; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .amp-logo amp-img{width:190px} .amp-menu input{display:none;}.amp-menu li.menu-item-has-children ul{display:none;}.amp-menu li{position:relative;display:block;}.amp-menu > li a{display:block;} .icon-widgets:before {content: "\e1bd";}.icon-search:before {content: "\e8b6";}.icon-shopping-cart:after {content: "\e8cc";}
Unveil your immortal identity…
let currentEra = 'classic'; let history = [];
function getRandomElement(array) { return array[Math.floor(Math.random() * array.length)]; }
function generateVampireName() { const style = vampireParts[currentEra];
// Generate name parts const prefix = getRandomElement(style.prefixes); const middle = getRandomElement(style.middles); const suffix = getRandomElement(style.suffixes);
// Combine name let name = `${prefix} ${middle} ${suffix}`;
// Display the name document.getElementById("vampireDisplay").textContent = `"${name}"`;
// Add to history history.unshift(name); updateHistory(); }
function setEra(era) { currentEra = era;
// Update active button styling document.querySelectorAll('.era-btn').forEach(btn => { btn.classList.remove('active'); }); event.target.classList.add('active');
// Generate a new name with this era generateVampireName(); }
function updateHistory() { const historyContainer = document.getElementById("historyVampires"); historyContainer.innerHTML = "";
// Display last 10 names const recentHistory = history.slice(0, 10); recentHistory.forEach(name => { const vampireElement = document.createElement("div"); vampireElement.className = "history-vampire"; vampireElement.textContent = `"${name}"`; historyContainer.appendChild(vampireElement); }); }
// Generate first name on load
window.onload = generateVampireName;