You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
4.3 KiB

9 months ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Traineeship</title>
  7. <link
  8. rel="stylesheet"
  9. href="node_modules/bootstrap/dist/css/bootstrap.min.css"
  10. />
  11. <script src="./C++/test.js"></script>
  12. <script src="index.js" defer></script>
  13. </head>
  14. <body>
  15. <div class="container">
  16. <div class="row">
  17. <div class="col-sm-6">
  18. <div class="p-4">
  19. <h1 class="mb-4">Square calculator</h1>
  20. <input
  21. id="numberInput"
  22. class="form-control"
  23. type="number"
  24. placeholder="Enter a number"
  25. />
  26. <button
  27. id="calculateBtn"
  28. class="btn btn-primary mt-3"
  29. onClick="calculateResult()"
  30. >
  31. Calculate square
  32. </button>
  33. </div>
  34. </div>
  35. <div class="col-sm-6">
  36. <div class="p-4">
  37. <h1 class="mb-4">Output</h1>
  38. <div id="output" class="form-control"></div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="container">
  44. <div class="row">
  45. <div class="col-sm-6">
  46. <div class="p-4">
  47. <h1>Sum calculator</h1>
  48. <input
  49. type="number"
  50. class="form-control mb-1"
  51. id="input1"
  52. placeholder="Enter first number"
  53. />
  54. <input
  55. type="number"
  56. class="form-control"
  57. id="input2"
  58. placeholder="Enter second number"
  59. />
  60. <button onclick="calculate()" class="btn btn-primary mt-3">
  61. Calculate Sum
  62. </button>
  63. </div>
  64. </div>
  65. <div class="col-sm-6">
  66. <div class="p-4">
  67. <h1 class="mb-4">Output</h1>
  68. <div id="result" class="form-control"></div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="container">
  74. <h1>Checkbox Container</h1>
  75. <div class="row">
  76. <div class="col-sm-2">
  77. <div class="form-group">
  78. <div class="form-check">
  79. <input
  80. class="form-check-input"
  81. type="checkbox"
  82. value=""
  83. id="checkbox1"
  84. />
  85. <label class="form-check-label" for="checkbox1">
  86. Checkbox 1
  87. </label>
  88. </div>
  89. <div class="form-check">
  90. <input
  91. class="form-check-input"
  92. type="checkbox"
  93. value=""
  94. id="checkbox2"
  95. />
  96. <label class="form-check-label" for="checkbox2">
  97. Checkbox 2
  98. </label>
  99. </div>
  100. <div class="form-check">
  101. <input
  102. class="form-check-input"
  103. type="checkbox"
  104. value=""
  105. id="checkbox3"
  106. />
  107. <label class="form-check-label" for="checkbox3">
  108. Checkbox 3
  109. </label>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="col-sm-4">
  114. <div class="form-group">
  115. <div class="form-check">
  116. <input
  117. class="form-check-input"
  118. type="checkbox"
  119. value=""
  120. id="checkbox4"
  121. />
  122. <label class="form-check-label" for="checkbox4">
  123. Checkbox 4
  124. </label>
  125. </div>
  126. <div class="form-check">
  127. <input
  128. class="form-check-input"
  129. type="checkbox"
  130. value=""
  131. id="checkbox5"
  132. />
  133. <label class="form-check-label" for="checkbox5">
  134. Checkbox 5
  135. </label>
  136. </div>
  137. <div class="form-check">
  138. <input
  139. class="form-check-input"
  140. type="checkbox"
  141. value=""
  142. id="checkbox6"
  143. />
  144. <label class="form-check-label" for="checkbox6">
  145. Checkbox 6
  146. </label>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. </body>
  153. </html>