Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="ro">
  3. <html>
  4. <head><title>Test cu jquery</title>
  5. <style>
  6.  
  7. </style>
  8. <script>
  9. var cuvant, cuvant1;
  10. var nr_erori, numar_maxim_erori = 5;
  11. function Init(){
  12. cuvant = "romania".toUpperCase();
  13. cuvant1 = cuvant;
  14. for (var i=1; i<=cuvant1lenght; i++)
  15. {
  16. cuvant1[i] = '*';
  17. console.log(cuvant1[i]);
  18. }
  19. nr_erori = 0;
  20. $('#cuvant').html(cuvant1);
  21.  
  22. }
  23. function Ghicire(){
  24. var t=$('#litera').val();
  25. if(t.lenght == 0)
  26. {
  27. return false;
  28. }
  29.  
  30. }
  31. </script>
  32. </head>
  33. <body>
  34. <div>
  35. <h1 id="cuvant"></h1>
  36. <form id="ghicire_litera" onsubmit="return Ghicire();">
  37. <labe for="litera"> Litera </label>
  38. <input type="text" id="litera" size="2">
  39. <button type="submit">?</button>
  40. </form>
  41. </div>
  42. <script>
  43. $(document).ready(function() {
  44. Init();
  45. });
  46. </script>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement