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";}
Â
Â
Discover your perfect pony name!
const cutieMarks = { earth: ["ðą", "ð", "ðļ", "ðŧ", "ð", "ð·", "ð", "ðū", "ðĨ", "ðž"], pegasus: ["âïļ", "ð", "âĄ", "ðŠïļ", "ðĪïļ", "ðŠ―", "ðĶïļ", "ðŽïļ", "ðĐïļ", "ðŠķ"], unicorn: ["âĻ", "ðŪ", "ð", "ðŦ", "ð ", "â", "ð", "ðĶ", "ð", "ð"], alicorn: ["ð", "ð", "ð", "ð", "ð°", "ð ", "âïļ", "ðŦ", "ðą", "âūïļ"] };
let currentType = 'earth'; let history = [];
function getRandomElement(array) { return array[Math.floor(Math.random() * array.length)]; }
function generatePonyName() { const gender = document.getElementById("genderSelect").value; const style = nameParts[gender];
// 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;
// Get cutie mark const cutieMark = getRandomElement(cutieMarks[currentType]);
// Display the name document.getElementById("cutieMark").textContent = cutieMark; document.getElementById("ponyName").textContent = name;
// Add to history history.unshift({name, cutieMark}); updateHistory(); }
function setType(type) { currentType = type;
// Update active button styling document.querySelectorAll('.type-btn').forEach(btn => { btn.classList.remove('active'); }); event.target.classList.add('active');
// Generate a new name with this type generatePonyName(); }
function updateHistory() { const historyContainer = document.getElementById("historyPonies"); historyContainer.innerHTML = "";
// Display last 10 names const recentHistory = history.slice(0, 10); recentHistory.forEach(pony => { const ponyElement = document.createElement("div"); ponyElement.className = "history-pony"; ponyElement.innerHTML = `${pony.cutieMark}${pony.name}`; historyContainer.appendChild(ponyElement); }); }
// Generate first name on load window.onload = generatePonyName;