Skip to content

Instantly share code, notes, and snippets.

@Himenon
Last active September 6, 2015 02:39
Show Gist options
  • Save Himenon/ee3ff3046b02854b77e8 to your computer and use it in GitHub Desktop.
Save Himenon/ee3ff3046b02854b77e8 to your computer and use it in GitHub Desktop.
$(function() {
$(".notification-counter").text('100');
var counter = 0;
function getLatestNotice() {
counter++;
$("title").text('おい' + counter);
console.log('counter = ' + counter);
$.get('/notification/fetch/Count', function(data) {
var noticeCount = data;
$(".notification-counter").text('100');
});
var badgeFetch = setTimeout(function() {
getLatestNotice();
}, 1000);
}
getLatestNotice();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment