Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
wwb521 committed Dec 12, 2024
1 parent 6686781 commit 886f1a4
Showing 1 changed file with 48 additions and 8 deletions.
56 changes: 48 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@
<tr>
<td align="center"><b>IPTV</b></td>
<td>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.txt</code><br>
短链接:<code>http://gg.gg/1c5sff</code>
<code id="txt-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.txt</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>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.m3u</code><br>
短链接:<code>http://gg.gg/1c5shv</code>
<code id="m3u-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/tv.m3u</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>
</tr>
</table>
Expand All @@ -65,16 +69,36 @@
<tr>
<td align="center"><b>TVBox</b></td>
<td>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/movies.json</code><br>
短链接:<code>http://gg.gg/1c5sjl</code>
<code id="movies-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/movies.json</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>
<code>https://raw.bgithub.xyz/wwb521/live/refs/heads/main/video.json</code><br>
短链接:<code>http://gg.gg/1c5sjx</code>
<code id="video-link">https://raw.bgithub.xyz/wwb521/live/refs/heads/main/video.json</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>
</tr>
</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>

## 🎯 备用资源

### 📌 替代直播源
Expand Down Expand Up @@ -149,4 +173,20 @@
</p>
</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>


0 comments on commit 886f1a4

Please sign in to comment.