8 lines
330 B
JavaScript
8 lines
330 B
JavaScript
$(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;
|
|
});
|
|
});
|