Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#nav > div > ul.clearfix.mainnav > li:nth-child(5) > a').html($('#nav > div > ul.clearfix.mainnav > li:nth-child(5) > a').text() + ' <em class="mark-number mirko-counter">...</em>');
- $.ajax({
- url: 'http://mirkoonline.herokuapp.com/jsonp',
- dataType: 'jsonp',
- success: function(data){
- console.log(data);
- $('.mirko-counter').text('Aktywni: '+data.counter);
- },
- error: function() {
- $('.mirko-counter').text('?');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement