mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
33 lines
569 B
JavaScript
33 lines
569 B
JavaScript
|
|
var auto_delay = 60000;
|
|
var auto_max_time = 3600000;
|
|
var auto_start_time = new Date().getTime();
|
|
|
|
$(function()
|
|
{
|
|
auto_page_refresh();
|
|
});
|
|
|
|
function auto_page_resume()
|
|
{
|
|
auto_start_time = new Date().getTime();
|
|
$('#resume_update_button').hide();
|
|
|
|
auto_page_refresh();
|
|
}
|
|
|
|
function auto_page_refresh()
|
|
{
|
|
page_refresh();
|
|
|
|
var now_time = new Date().getTime();
|
|
if(now_time > auto_start_time + auto_max_time)
|
|
{
|
|
$('#resume_update_button').show();
|
|
document.title = 'yiimp';
|
|
}
|
|
|
|
else
|
|
setTimeout(auto_page_refresh, auto_delay);
|
|
}
|
|
|