Advertisement
Guest User

push.js

a guest
Sep 15th, 2017
630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.75 KB | None | 0 0
  1. <html>
  2. <title>notificaciones</title>
  3. <head>
  4.     <script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
  5.     <script src="/js/push.min.js" type="text/javascript"></script>
  6. <script>
  7. function demo() {
  8.     Push.create('Hello world!', {
  9.         body: 'How\'s it hangin\'?',
  10.         link: '/#',
  11.         timeout: 4000,
  12.         onClick: function () {
  13.             console.log("Fired!");
  14.             window.focus();
  15.             this.close();
  16.         },
  17.         vibrate: [200, 100, 200, 100, 200, 100, 200]
  18.     });
  19. }
  20.  
  21. $(document).ready(function() {
  22.     $("#demo_button").click(demo);
  23. });
  24. </script>
  25. </head>
  26. <body>
  27.  
  28.  
  29.  
  30. <h1>holaaa</h1>
  31. <a id="demo_button" href="#" class="button">View Demo</a>
  32.        
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement