Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.83 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>ILLUMINATI ^</title>
  6.     <style type="text/css">
  7.         a.button{
  8.             padding: 8px 10px;
  9.             background: #fff;
  10.             color: #f44e42;
  11.             text-align: center;
  12.             font-size: 14px;
  13.             text-decoration: none;
  14.             text-transform: uppercase;
  15.             border: 2px solid #f44e42;
  16.             font-family: helvetica;
  17.         }  
  18.     </style>
  19.     <script type="text/javascript">
  20.    
  21.         var uri = "ws://echo.websocket.org";
  22.         var websocket = new WebSocket(uri);
  23.         websocket.onopen=function(){websocket.send("test");}
  24.  
  25.         websocket.onmessage=function(e){console.log(e.data); websocket.close();}
  26.         websocket.onclose=function(){console.log("closed");}
  27.         websocket.onerror=function(e){console.log(e.data);}
  28.  
  29.     </script>
  30. </head>
  31. <body>
  32.  
  33.  
  34.     <center><a class="button" href="#">Click me mudafaka</a></center>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement