Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. <style>.evidence{color:#a00;font-weight:bold;}</style>
  8. </head>
  9. <body>
  10. <b>Click the button to get orders.</b>
  11. <button onclick="game();">Get me wet!</button>
  12. <br><br>
  13. <div id="orders"></div>
  14. <script id="jsbin-javascript">
  15. var original_guests = [
  16. {name: "Bee", genital: "pussy", possessive: "her"},
  17. {name: "Paolo", genital: "dick", possessive: "his"}
  18. ];
  19. var actions = [
  20. "kiss",
  21. "lick",
  22. "touch with hands or massage",
  23. "bite",
  24. "touch with {{POSSESSIVE}} feet",
  25. "touch with {{POSSESSIVE}} {{GENITAL}}",
  26. "touch with {{POSSESSIVE}} nose"
  27. ];
  28. var subjects = [
  29. "toes",
  30. "nipples",
  31. "lips",
  32. "ears",
  33. "neck",
  34. "{{GENITAL}}",
  35. "back"
  36. ];
  37. function extract(min, max) {
  38. return Math.round(Math.random() * max) + min;
  39. };
  40. function evidence(s) {
  41. return '<span class="evidence">' + s + '</span>';
  42. }
  43. function game() {
  44. var guests = original_guests.slice(0);
  45. var guest1 = guests.splice(extract(0, guests.length-1), 1)[0];
  46. var guest2 = guests.splice(extract(0, guests.length-1), 1)[0];
  47.  
  48. var action = extract(0, actions.length-1);
  49. var subject = extract(0, subjects.length-1);
  50.  
  51. var phrase = evidence(guest1.name);
  52. phrase += ' have to ';
  53. phrase += evidence(actions[action])
  54. .replace('{{GENITAL}}', guest1.genital)
  55. .replace('{{POSSESSIVE}}', guest1.possessive);
  56. phrase += ' ';
  57. phrase += guest2.name;
  58. phrase += '\'s ';
  59. phrase += evidence(subjects[subject])
  60. .replace('{{GENITAL}}', guest2.genital)
  61.  
  62.  
  63. document.getElementById('orders').innerHTML = phrase;
  64.  
  65. };
  66. </script>
  67.  
  68.  
  69.  
  70. <script id="jsbin-source-javascript" type="text/javascript">var original_guests = [
  71. {name: "Bee", genital: "pussy", possessive: "her"},
  72. {name: "Paolo", genital: "dick", possessive: "his"}
  73. ];
  74. var actions = [
  75. "kiss",
  76. "lick",
  77. "touch with hands or massage",
  78. "bite",
  79. "touch with {{POSSESSIVE}} feet",
  80. "touch with {{POSSESSIVE}} {{GENITAL}}",
  81. "touch with {{POSSESSIVE}} nose"
  82. ];
  83. var subjects = [
  84. "toes",
  85. "nipples",
  86. "lips",
  87. "ears",
  88. "neck",
  89. "{{GENITAL}}",
  90. "back"
  91. ];
  92. function extract(min, max) {
  93. return Math.round(Math.random() * max) + min;
  94. };
  95. function evidence(s) {
  96. return '<span class="evidence">' + s + '</span>';
  97. }
  98. function game() {
  99. var guests = original_guests.slice(0);
  100. var guest1 = guests.splice(extract(0, guests.length-1), 1)[0];
  101. var guest2 = guests.splice(extract(0, guests.length-1), 1)[0];
  102.  
  103. var action = extract(0, actions.length-1);
  104. var subject = extract(0, subjects.length-1);
  105.  
  106. var phrase = evidence(guest1.name);
  107. phrase += ' have to ';
  108. phrase += evidence(actions[action])
  109. .replace('{{GENITAL}}', guest1.genital)
  110. .replace('{{POSSESSIVE}}', guest1.possessive);
  111. phrase += ' ';
  112. phrase += guest2.name;
  113. phrase += '\'s ';
  114. phrase += evidence(subjects[subject])
  115. .replace('{{GENITAL}}', guest2.genital)
  116.  
  117.  
  118. document.getElementById('orders').innerHTML = phrase;
  119.  
  120. };</script></body>
  121. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement