Widget: Random: Difference between revisions

From The Lost Media Wiki
Jump to: navigation, search
(Created page with "<script> $(document).ready(function() { $("#reloadable").load(location.href + " #reloadable"); var refreshId = setInterval(function() { $("#reloadable").load(loc...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<script>
<script>
  $(document).ready(function() {
  $('.reloader').click(function(e){  
    $("#reloadable").load(location.href + " #reloadable");
        e.preventDefault();
  var refreshId = setInterval(function() {
$("#reloadable").load(location.href+" #reloadable>*","").fadeIn("slow");
    $("#reloadable").load(location.href + " #reloadable");
$.ajaxSetup({ cache: false });
  }, 2000);
});
  $.ajaxSetup({ cache: false });
</script>
});
</script>

Latest revision as of 09:14, 1 February 2018

<script>
$('.reloader').click(function(e){ 
       e.preventDefault();
$("#reloadable").load(location.href+" #reloadable>*","").fadeIn("slow");
$.ajaxSetup({ cache: false });
});
</script>