Advertisement
BrU32

JS Match Maker Source Code V2

Jan 30th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. <script language="javascript">
  2.  
  3. var name1;
  4.  
  5. var name2;
  6.  
  7. name1 = prompt("Enter your crush or lovers first name.","Eric");
  8.  
  9. name2 = prompt("Enter your first name.","Brittany");
  10.  
  11. var out=name1+name2;
  12.  
  13. if (name1.length + name2.length ==0)
  14.  
  15. {
  16. alert ("Please enter a value.");
  17.  
  18. }
  19.  
  20. if (name1.length + name2.length ==1)
  21.  
  22. {
  23. alert ("Please enter a value.");
  24. }
  25.  
  26. if (name1.length + name2.length ==2)
  27.  
  28. {
  29. alert ("Please enter a value.");
  30. }
  31.  
  32. if (name1.length + name2.length ==3)
  33.  
  34. {
  35. alert ("Short name!!");
  36. }
  37.  
  38. if (name1.length + name2.length ==4)
  39.  
  40. {
  41. alert ("Short name!!");
  42. }
  43.  
  44. if (name1.length + name2.length ==5)
  45.  
  46. {
  47. alert ("Perfect Match!!");
  48. }
  49.  
  50. if (name1.length + name2.length ==6)
  51.  
  52. {
  53. alert ("Horrible match.");
  54. }
  55.  
  56. if (name1.length + name2.length ==7)
  57.  
  58. {
  59. alert ("Perfect Match!!");
  60. }
  61.  
  62. if (name1.length + name2.length ==8)
  63.  
  64. {
  65. alert ("Perfect Match!!");
  66. }
  67.  
  68. if (name1.length + name2.length ==9)
  69.  
  70. {
  71. alert ("Horrible match.");
  72. }
  73.  
  74. if (name1.length + name2.length ==10)
  75.  
  76. {
  77. alert ("Good for a fling.");
  78. }
  79.  
  80. if (name1.length + name2.length ==11)
  81.  
  82. {
  83. alert ("Great match!!");
  84. }
  85.  
  86. if (name1.length + name2.length ==12)
  87.  
  88. {
  89. alert ("A lasting love!!");
  90. }
  91.  
  92. if (name1.length + name2.length ==13)
  93.  
  94. {
  95. alert ("Not a chance.");
  96. }
  97.  
  98. if (name1.length + name2.length ==14)
  99.  
  100. {
  101. alert ("Run!!");
  102. }
  103.  
  104. if (name1.length + name2.length ==15)
  105.  
  106. {
  107. alert ("One night stand!!");
  108. }
  109.  
  110. if (name1.length + name2.length ==16)
  111.  
  112. {
  113. alert ("You don't make a good couple.");
  114. }
  115.  
  116. if (name1.length + name2.length ==17)
  117.  
  118. {
  119. alert ("Pretty good choice.");
  120. }
  121.  
  122. if (name1.length + name2.length ==18)
  123.  
  124. {
  125. alert ("It's not worth it!!");
  126. }
  127.  
  128. if (name1.length + name2.length ==19)
  129.  
  130. {
  131. alert ("Give this love a chance.");
  132. }
  133.  
  134. if (name1.length + name2.length ==20)
  135.  
  136. {
  137. alert ("Not meant to be.");
  138. }
  139.  
  140. if (name1.length + name2.length ==21)
  141.  
  142. {
  143. alert ("Not a good match.");
  144. }
  145.  
  146. if (name1.length + name2.length ==22)
  147.  
  148. {
  149. alert ("You belong together!!");
  150. }
  151.  
  152. if (name1.length + name2.length ==23)
  153.  
  154. {
  155. alert ("Run!!");
  156. }
  157.  
  158. if (name1.length + name2.length ==24)
  159.  
  160. {
  161. alert ("One night stand!!");
  162. }
  163.  
  164. if (name1.length + name2.length ==25)
  165.  
  166. {
  167. alert ("Not a good match.");
  168. }
  169.  
  170. if (name1.length + name2.length ==26)
  171.  
  172. {
  173. alert ("Perfect Match!!");
  174. }
  175.  
  176. if (name1.length + name2.length ==26)
  177.  
  178. {
  179. alert ("Perfect Match!!");
  180. }
  181.  
  182. if (name1.length + name2.length ==27)
  183.  
  184. {
  185. alert ("Horrible match.");
  186. }
  187.  
  188. if (name1.length + name2.length ==28)
  189.  
  190. {
  191. alert ("Good for a fling.");
  192. }
  193.  
  194. if (name1.length + name2.length ==29)
  195.  
  196. {
  197. alert ("Great match!!");
  198. }
  199.  
  200. if (name1.length + name2.length ==30)
  201.  
  202. {
  203. alert ("Pretty good match.");
  204. }
  205.  
  206. if (name1.length + name2.length ==31)
  207.  
  208. {
  209. alert ("Not a chance.");
  210. }
  211.  
  212. if (name1.length + name2.length ==32)
  213.  
  214. {
  215. alert ("Run!!");
  216. }
  217.  
  218. if (name1.length + name2.length ==33)
  219.  
  220. {
  221. alert ("One night stand!!");
  222. }
  223.  
  224. if (name1.length + name2.length ==34)
  225.  
  226. {
  227. alert ("You don't make a good couple.");
  228. }
  229.  
  230. if (name1.length + name2.length ==35)
  231.  
  232. {
  233. alert ("A lasting love!!");
  234. }
  235.  
  236. if (name1.length + name2.length ==36)
  237.  
  238. {
  239. alert ("It's not worth it!!");
  240. }
  241.  
  242. if (name1.length + name2.length ==37)
  243.  
  244. {
  245. alert ("Give this love a chance.");
  246. }
  247.  
  248. if (name1.length + name2.length ==38)
  249.  
  250. {
  251. alert ("You don't make a good couple.");
  252. }
  253.  
  254. </script>
  255.  
  256. <center>
  257. <font face=ariel>
  258. <font color=red>
  259. <body bgcolor=000000>
  260. <img src=http://compulsivecoding.com/favicon.ico>
  261. </center>
  262.  
  263. <h1><body bgcolor=black><font face=arial><font color=red><center><b>Match Maker Coded by BrÜ<br></h1></font><h4><font color=blue></center><center>Refresh Browser To Try Another Match!!</b></center></h4></font></body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement