使用我们的免费餐饮店铺起名工具,为您的新餐厅找到完美的名称。只需输入一些关于您的业务的信息,我们将生成一系列定制的建议。
var name = document.getElementById('name').value;var cuisine = document.getElementById('cuisine').value;var atmosphere = document.getElementById('atmosphere').value;var target_audience = document.getElementById('target_audience').value;var suggestions = generateSuggestions(name, cuisine, atmosphere, target_audience);var results = document.querySelector('.results');results.style.display = 'block';var resultList = document.querySelector('.results-list');resultList.innerHTML = '';for (var i = 0; i < suggestions.length; i++) {var suggestion = suggestions[i];var listItem = document.createElement('li');listItem.textContent = suggestion;resultList.appendChild(listItem);}});function generateSuggestions(name, cuisine, atmosphere, target_audience) {var suggestions = [];// 根据名称加入建议if (name) {suggestions.push(name);suggestions.push(name + 's');suggestions.push('The '+ name);suggestions.push(name + ' Bistro');suggestions.push(name + ' Kitchen');}// 根据菜系加入建议if (cuisine) {suggestions.push(cuisine + ' House');suggestions.push(cuisine + ' Palace');suggestions.push(cuisine + ' Kitchen');suggestions.push(cuisine + ' Bistro');suggestions.push('Taste of ' + cuisine);}// 根据氛围加入建议if (atmosphere) {suggestions.push(atmosphere + ' Cafe');suggestions.push(atmosphere + ' Bistro');suggestions.push('The ' + atmosphere + ' Room');suggestions.push(atmosphere + ' Dining');suggestions.push('Ambiance of ' + atmosphere);}// 根据目标受众加入建议if (target_audience) {suggestions.push(target_audience + ' Cafe');suggestions.push(target_audience + ' Bistro');suggestions.push('The ' + target_audience + ' Room');suggestions.push(target_audience + ' Dining');suggestions.push('For ' + target_audience);}// 加入一些通用的建议suggestions.push('The Restaurant');suggestions.push('The Eatery');suggestions.push('The Bistro');suggestions.push('The Kitchen');
suggestions.push('The Cafe');return suggestions;}