whisper.cat/weboasis/tv/custom/main.js

8 lines
330 B
JavaScript
Raw Normal View History

2023-10-05 23:28:32 +11:00
$(window).on('load', function () {
$('#m3u8-placeholder')[0].value = localStorage.getItem('m3u8-link') || '';
$('#play-btn').on('click', function () {
localStorage.setItem('m3u8-link', $('#m3u8-placeholder')[0].value);
window.location.href = './player' + '#' + $('#m3u8-placeholder')[0].value;
});
});