bugfix250107.1
全站通知:

Widget:SearchOut

来自恋与深空WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

<!DOCTYPE html> <html lang="zh-CN"> <head>

   <meta charset="UTF-8">
   <title>游戏Wiki搜索</title>
   <style>
       .bwiki-custom-search-body {
           font-family: Arial, sans-serif;
           display: flex;
           justify-content: center;
           align-items: center;
           height: 100vh;
           margin: 0;
           background-color: #f0f2f5;
       }
       .bwiki-custom-search-container {
           background: white;
           padding: 2rem;
           border-radius: 8px;
           box-shadow: 0 2px 4px rgba(0,0,0,0.1);
           text-align: center;
       }
       .bwiki-custom-search-input {
           width: 300px;
           padding: 10px;
           font-size: 16px;
           border: 1px solid #ddd;
           border-radius: 4px;
           margin-right: 10px;
       }
       .bwiki-custom-search-button {
           padding: 10px 20px;
           font-size: 16px;
           background-color: #4e6ef2;
           color: white;
           border: none;
           border-radius: 4px;
           cursor: pointer;
       }
       .bwiki-custom-search-button:hover {
           background-color: #4662d9;
       }
   </style>

</head> <body class="bwiki-custom-search-body">

游戏Wiki搜索

       <form id="bwikiCustomSearchForm" onsubmit="performSearch(event)">
           <input type="text" id="bwikiCustomSearchInput" class="bwiki-custom-search-input" placeholder="输入搜索关键词..." required>
           <button type="submit" class="bwiki-custom-search-button">搜索</button>
       </form>
   <script>
       function performSearch(event) {
           event.preventDefault();
           const searchInput = document.getElementById('bwikiCustomSearchInput');
           if (!searchInput) {
               return;
           }
           const searchTerm = searchInput.value.trim();
           if (searchTerm) {
               const searchUrl = `https://www.baidu.com/s?wd=site:wiki.biligame.com ${encodeURIComponent(searchTerm)}`;
               window.open(searchUrl, '_blank');
           }
       }
   </script>

</body> </html>