Last active
September 6, 2015 02:39
-
-
Save Himenon/ee3ff3046b02854b77e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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