anyalerob commited on
Commit
4cffcbf
·
verified ·
1 Parent(s): bae8c84

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +2 -14
script.js CHANGED
@@ -119,22 +119,10 @@ async function updateBackgroundImage() {
119
  } catch (error) {
120
  console.error('获取背景图片失败:', error);
121
  showDebugInfo('背景图片加载失败,将使用默认背景');
122
- document.body.style.backgroundImage = `url('https://via.placeholder.com/1920x1080?text=Default+Background')`;
123
  }
124
  }
125
 
126
- // 获取在线访客人数(假设 API)
127
- async function updateOnlineUsers() {
128
- try {
129
- const response = await fetch('https://api.example.com/online-users');
130
- const data = await response.json();
131
- const onlineUsers = data.count || 0;
132
- document.getElementById('online-users').textContent = onlineUsers;
133
- } catch (error) {
134
- console.error('获取在线人数失败:', error);
135
- document.getElementById('online-users').textContent = '未知';
136
- }
137
- }
138
 
139
  // URL提取
140
  function extractURL(text) {
@@ -240,7 +228,7 @@ async function parseContent(urlToParse) {
240
  toggleLoading(true);
241
 
242
  showDebugInfo(`正在解析中: ${url}`);
243
- const apiUrl = `https://api.kxzjoker.cn/api/jiexi_video?url=${encodeURIComponent(url)}`;
244
  const response = await fetch(apiUrl);
245
  showDebugInfo(`收到响应状态: ${response.status}`);
246
 
 
119
  } catch (error) {
120
  console.error('获取背景图片失败:', error);
121
  showDebugInfo('背景图片加载失败,将使用默认背景');
122
+ document.body.style.backgroundImage = `url('https://img.zlee.de/file/1747479255036_【哲风壁纸】优香-少女-蔚蓝档案.png')`;
123
  }
124
  }
125
 
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
  // URL提取
128
  function extractURL(text) {
 
228
  toggleLoading(true);
229
 
230
  showDebugInfo(`正在解析中: ${url}`);
231
+ const apiUrl = `https://api.kxzjoker.cn/api/jiexi_video_2?url=${encodeURIComponent(url)}`;
232
  const response = await fetch(apiUrl);
233
  showDebugInfo(`收到响应状态: ${response.status}`);
234