Skip to content

Commit

Permalink
fix refresh browser install
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbarnabedikartola committed Aug 29, 2023
1 parent 0530046 commit 363df6f
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

// $(document).ready(function() {
// var pageRefresh = 7000; // 7s
// setInterval(function() {
// refresh();
// }, pageRefresh);
// });
$(document).ready(function() {
var pageRefresh = 7000; // 7s
setInterval(function() {
refresh();
}, pageRefresh);
});

// Functions

function refresh() {
//$('#DivBrowserRefresh').load(location.href + " #DivBrowserRefresh");
//$('#DivBrowserRefresh').load();
$("#DivBrowserRefresh").load(location.href+" #myDiv *","");
$("#DivBrowserRefresh").load(location.href+" #DivBrowserRefresh>*","");
$('#DivBrowserRefresh').load(location.href + " #DivBrowserRefresh");
$('#DivBrowserRefresh').load();
// $("#DivBrowserRefresh").load(location.href+" #myDiv *","");
// $("#DivBrowserRefresh").load(location.href+" #DivBrowserRefresh>*","");
}


Expand Down

0 comments on commit 363df6f

Please sign in to comment.