Advertisement
Pihtija

SKI vezbe 2

Oct 31st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. index.html
  2. -----------------
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8" />
  7.  
  8. <title>Page Title</title>
  9. <style>
  10. table,td,th{border: 1px solid black;}
  11. </style>
  12. </head>
  13. <body>
  14. <table>
  15. <thead>
  16. <th>Rbr</th>
  17. <th>Ucesnici</th>
  18. <th>Ucesnice</th>
  19. </thead>
  20. <tbody>
  21. <tr>
  22. <td>1</td>
  23. <td>20</td>
  24. <td>30</td>
  25. </tr>
  26. <tr>
  27. <td>2</td>
  28. <td>10</td>
  29. <td>20</td>
  30. </tr>
  31. <tr>
  32. <td>3</td>
  33. <td>10</td>
  34. <td>50</td>
  35. </tr>
  36. <tr>
  37. <td>4</td>
  38. <td colspan="2">50</td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. <a href="forma.html">Forma</a>
  43. <br>
  44. <a href="canvas.html">Canvas</a>
  45.  
  46. </body>
  47. </html>
  48. -----------------------------------
  49. tabela.html - zavrshiti kuci
  50. -----------------------------------
  51. <!DOCTYPE html>
  52. <html>
  53. <head>
  54. <meta charset="utf-8" />
  55.  
  56.  
  57.  
  58. </head>
  59. <body>
  60. <table>
  61. <thead>
  62. <th>Termin</th>
  63. <th>Ponedeljak</th>
  64. <th>utorak</th>
  65. <th>Sreda</th>
  66. <th>Cetvrtak</th>
  67. <th>Petak</th>
  68.  
  69.  
  70. </thead>
  71. </table>
  72. </body>
  73. </html>
  74. -------------------------------
  75. forma.html
  76. -------------------------------
  77. <!DOCTYPE html>
  78. <html>
  79. <head>
  80. <meta charset="utf-8" />
  81. <title>Forma</title>
  82.  
  83. </head>
  84. <body>
  85. <form action="upis.php">
  86. <label for="ime">Unesite ime</label>
  87. <input type="text" name="ime" id="ime" required>
  88. <br>
  89. <label for="vreme">Unesite termin koji vam odgovara</label>
  90. <input type="time" name="vreme" id="vreme">
  91. <br>
  92. <label for="">Izaberite godinu studija</label>
  93. <br>
  94. <input type="radio" name="godina" id="" value="1">Prva godina
  95. <br>
  96. <input type="radio" name="godina" id="" value="2">Druga godina
  97. <br>
  98. <input type="radio" name="godina" id="" value="3">Treca godina
  99. <br>
  100. <label for="">Izaberite predmete</label>
  101. <br>
  102. <input type="checkbox" name="predmet1" id=""> SKI1
  103. <br>
  104. <input type="checkbox" name="predmet2" id=""> SKI2
  105. <br>
  106. <input type="checkbox" name="predmet3" id=""> SKI3
  107. <br>
  108. <label for="">Unesite email</label>
  109. <input type="email" name="email" id="" required>
  110. <br>
  111. <label for="">Komentar</label>
  112. <textarea name="komentar" id="" cols="30" rows="10"></textarea>
  113. <br>
  114. <input type="submit" value="Posalji">
  115. </form>
  116. </body>
  117. </html>
  118. -----------------------------------
  119. canvas.html
  120. -----------------------------------
  121. <!DOCTYPE html>
  122. <html>
  123. <head>
  124. <meta charset="utf-8" />
  125. <title>Canvas</title>
  126. </head>
  127. <body>
  128. <canvas id="canvas1" width="1000px" height="1000px" style="border:1px solid black;"></canvas>
  129. <script>
  130. var c=document.getElementById("canvas1");
  131. var ctx=c.getContext("2d");
  132.  
  133. ctx.strokeStyle="red";
  134. ctx.styleFill="blue";
  135.  
  136. ctx.beginPath();
  137. ctx.moveTo(10,10);
  138. ctx.lineTo(10,110);
  139. ctx.lineTo(110,110);
  140. ctx.closePath();
  141. ctx.stroke();
  142. ctx.fillStyle="red";
  143. ctx.fillRect(200,200,500,201);
  144. ctx.fillStyle="blue";
  145. ctx.fillRect(200,400,500,202);
  146. ctx.fillStyle="white";
  147. ctx.fillRect(200,600,500,203);
  148.  
  149.  
  150.  
  151. </script>
  152. </body>
  153. </html>
  154. ----------------------------------
  155. canvas2.html
  156. ---------------------------------<!DOCTYPE html>
  157. <html>
  158. <head>
  159. <meta charset="utf-8" />
  160. <title>Canvas</title>
  161. </head>
  162. <body>
  163. <canvas id="canvas1" width="300px" height="300px" style="border:1px solid black;"></canvas>
  164. <script>
  165. var c=document.getElementById("canvas1");
  166. var ctx=c.getContext("2d");
  167.  
  168. ctx.strokeStyle="red";
  169. ctx.styleFill="blue";
  170.  
  171.  
  172. ctx.fillStyle="red";
  173. ctx.fillRect(0,0,300,100);
  174. ctx.fillStyle="blue";
  175. ctx.fillRect(0,100,300,100);
  176. ctx.fillStyle="white";
  177. ctx.fillRect(0,200,300,200);
  178.  
  179.  
  180.  
  181. </script>
  182. </body>
  183. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement