This commit is contained in:
wwb521 2024-12-12 13:30:18 +08:00
parent 66867817b4
commit 886f1a4a19

View File

@ -45,12 +45,16 @@
<tr> <tr>
<td align="center"><b>IPTV</b></td> <td align="center"><b>IPTV</b></td>
<td> <td>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.txt</code><br> <code id="txt-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.txt</code>
短链接:<code>http://gg.gg/1c5sff</code> <button class="copy-button" onclick="copyText('txt-link')">复制</button><br>
短链接:<code id="txt-short">http://gg.gg/1c5sff</code>
<button class="copy-button" onclick="copyText('txt-short')">复制</button>
</td> </td>
<td> <td>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.m3u</code><br> <code id="m3u-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.m3u</code>
短链接:<code>http://gg.gg/1c5shv</code> <button class="copy-button" onclick="copyText('m3u-link')">复制</button><br>
短链接:<code id="m3u-short">http://gg.gg/1c5shv</code>
<button class="copy-button" onclick="copyText('m3u-short')">复制</button>
</td> </td>
</tr> </tr>
</table> </table>
@ -65,16 +69,36 @@
<tr> <tr>
<td align="center"><b>TVBox</b></td> <td align="center"><b>TVBox</b></td>
<td> <td>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/movies.json</code><br> <code id="movies-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/movies.json</code>
短链接:<code>http://gg.gg/1c5sjl</code> <button class="copy-button" onclick="copyText('movies-link')">复制</button><br>
短链接:<code id="movies-short">http://gg.gg/1c5sjl</code>
<button class="copy-button" onclick="copyText('movies-short')">复制</button>
</td> </td>
<td> <td>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/video.json</code><br> <code id="video-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/video.json</code>
短链接:<code>http://gg.gg/1c5sjx</code> <button class="copy-button" onclick="copyText('video-link')">复制</button><br>
短链接:<code id="video-short">http://gg.gg/1c5sjx</code>
<button class="copy-button" onclick="copyText('video-short')">复制</button>
</td> </td>
</tr> </tr>
</table> </table>
<script>
function copyText(elementId) {
const text = document.getElementById(elementId).textContent;
navigator.clipboard.writeText(text).then(() => {
const button = event.target;
const originalText = button.textContent;
button.textContent = '已复制';
button.style.backgroundColor = '#45a049';
setTimeout(() => {
button.textContent = originalText;
button.style.backgroundColor = '#4CAF50';
}, 1000);
});
}
</script>
## 🎯 备用资源 ## 🎯 备用资源
### 📌 替代直播源 ### 📌 替代直播源
@ -149,4 +173,20 @@
</p> </p>
</div> </div>
<style>
.copy-button {
padding: 4px 8px;
font-size: 12px;
color: #fff;
background-color: #4CAF50;
border: none;
border-radius: 4px;
cursor: pointer;
margin-left: 8px;
}
.copy-button:hover {
background-color: #45a049;
}
</style>