From 23334e6ffef8b72f17d14528b82ec62882de7ee7 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 30 Mar 2020 17:15:54 +0600 Subject: [PATCH] Update radio.js --- js/radio.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/js/radio.js b/js/radio.js index e67082d..7af623d 100644 --- a/js/radio.js +++ b/js/radio.js @@ -7,15 +7,6 @@ function show() $('#title').html(html); } }); -} - -$(document).ready(function(){ - show(); - setInterval('show()',5000); - }); - -function show1() -{ $.ajax({ url: '../online.php', cache: false, @@ -25,7 +16,9 @@ function show1() }); } -$(document).ready(function(){ - show1(); - setInterval('show1()',5000); - }); +$(document).ready( + () => { + show(); + setInterval(show, 5000); + } +);