Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(nN) {
- var sound = $('<audio>').attr({
- src: 'http://localhost:8080/addons/notification.mp3',
- type: 'audio/ogg'
- })[0];
- var start = function() {
- sound.play();
- $('#musicButton').stop().animate({
- bottom: 0
- })
- };
- var stop = function() {
- sound.pause();
- sound.currentTime = 0;
- $('#musicButton').stop().animate({
- bottom: 0
- })
- };
- var button = $('<div>').attr({
- id: 'musicButton',
- tip: 'Wyłącz muzykę'
- }).css({
- position: 'absolute',
- bottom: 0,
- right: 0,
- width: 30,
- height: 30,
- textAlign: 'center',
- backgroundColor: 'black',
- color: '#6a6a6a',
- borderTopLeftRadius: '1em',
- lineHeight: '30px'
- }).click(stop).text('■').appendTo('body');
- newNpc = function(npc) {
- for (var i in npc) {
- if (npc[i].wt > 19) {
- start();
- break;
- }
- }
- return nN(npc);
- };
- })(newNpc);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement