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";}
const nouns = [ "Revenge", "Terror", "Fortune", "Plunder", "Raider", "Marauder", "Raider", "Corsair", "Buccaneer", "Rover", "Raider", "Queen", "King", "Pearl", "Dagger", "Cutlass", "Blade", "Scourge", "Doom", "Vengeance", "Siren", "Harbinger", "Kraken", "Leviathan", "Serpent", "Dragon", "Phoenix", "Hawk", "Eagle", "Shark", "Barracuda" ];
const prefixes = [ "The", "Captain's", "Dread", "Old", "Mad", "Cursed", "Lost", "Flying", "Royal", "Blood", "Sea", "Iron" ];
const suffixes = [ "of the Deep", "of Doom", "of Tortuga", "of the Seven Seas", "from Hell", "of Davy Jones", "of the Black Pearl", "of the Caribbean", "of the Damned", "from the Abyss" ];
function generateShipName() { const captainName = document.getElementById('captainName').value.trim(); const shipType = document.getElementById('shipType').value;
let nameParts = [];
// 50% chance to start with a prefix if (Math.random() > 0.5) { nameParts.push(randomElement(prefixes)); }
// Always include adjective and noun nameParts.push(randomElement(adjectives)); nameParts.push(randomElement(nouns));
// 30% chance to add a suffix if (Math.random() > 0.7) { nameParts.push(randomElement(suffixes)); }
// 40% chance to include captain's name if provided if (captainName && Math.random() > 0.6) { nameParts.push(`(${captainName}'s ${shipType})`); } else { nameParts.push(`(${shipType})`); }
document.getElementById('shipName').textContent = nameParts.join(' '); }
function randomElement(array) { return array[Math.floor(Math.random() * array.length)]; }