iHanoi.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html>
  2. <meta charset="UTF-8">
  3. <html>
  4. <head>
  5. <title> Torre de Hanoi </title>
  6. <Style>
  7. #Disk_quantity{
  8. position: absolute;
  9. height: 10%;
  10. width: 5%;
  11. top: 5%;
  12. right: 3%;
  13. font-size: 200%;
  14. text-align-last:center;
  15. }
  16. #planoDeFundo {
  17. background :#d7f3f9;
  18. width: 90%;
  19. height: 75%;
  20. position: absolute;
  21. }
  22. #restart_button{
  23. position:absolute;
  24. border:1px solid gray;
  25. border-radius: 7%;
  26. font-size: 0.875;
  27. word-wrap: break-word;
  28. max-width: 7%;
  29. left: 21%;
  30. top: 5%;
  31. }
  32. #A_button{
  33. position:absolute;
  34. border:1px solid gray;
  35. border-radius: 7%;
  36. font-size: 1;
  37. height: 4.5%;
  38. width: 20%;
  39. left: 5.4%;
  40. top: 77%;
  41. }
  42. #B_button{
  43. position:absolute;
  44. border:1px solid gray;
  45. border-radius: 7%;
  46. font-size: 1;
  47. height: 5%;
  48. word-wrap: break-word;
  49. width: 20%;
  50. left: 35.5%;
  51. top: 77%;
  52. }
  53. #C_button{
  54. position:absolute;
  55. border:1px solid gray;
  56. border-radius: 7%;
  57. font-size: 1;
  58. height: 5%;
  59. width: 20%;
  60. left: 66%;
  61. top: 77%;
  62. }
  63. #Undo_button{
  64. position:absolute;
  65. border:1px solid gray;
  66. border-radius: 7%;
  67. font-size: 1;
  68. height:5%;
  69. width: 20%;
  70. left: 20%;
  71. top: 83%;
  72. }
  73. #Redo_button{
  74. position:absolute;
  75. border:1px solid gray;
  76. border-radius: 7%;
  77. font-size: 1;
  78. height: 5%;
  79. word-wrap: break-word;
  80. width: 20%;
  81. left: 51%;
  82. top: 83%;
  83. }
  84. #Restart_button{
  85. position:absolute;
  86. border:1px solid gray;
  87. border-radius: 7%;
  88. font-size: 1;
  89. height: 5%;
  90. word-wrap: break-word;
  91. width: 20%;
  92. left: 35.5%;
  93. top: 89%;
  94. }
  95. </Style>
  96. <script src="js/jquery-3.3.1.min.js"></script>
  97. </head>
  98. <body>
  99. <div class="task" >
  100. <button id="A_button" onclick="buttonClick(0)">A</button>
  101. <button id="B_button" onclick="buttonClick(1)">B</button>
  102. <button id="C_button" onclick="buttonClick(2)">C</button>
  103. <button id="Undo_button" onclick="undo()">Desfazer</button>
  104. <button id="Redo_button" onclick="redo()">Refazer</button>
  105. <button id="Restart_button" onclick="reset(nDisks)">Recomeçar</button>
  106. <canvas id="planoDeFundo" width="1024" height="615">
  107. Seu navegador não suporta o recurso Canvas. Atualize-o para utilizar esse recurso
  108. </canvas>
  109. <script src= "js/start.js"></script>
  110. <script src="js/iHanoiFunctions.js"></script>
  111. </div>
  112. <div class="creation">
  113. <select id="Disk_quantity" name="Discos" class="cDiscos" onChange="reset(this.value)">
  114. <option>2</option>
  115. <option>3</option>
  116. <option>4</option>
  117. <option>5</option>
  118. <option>6</option>
  119. </select>
  120. </div>
  121. </body>
  122. </html>