Advertisement
Guest User

Абітурієнту

a guest
Feb 23rd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.65 KB | None | 0 0
  1. ! DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <meta charset="utf-8">
  6. <title>Березняк</title>
  7. <script type="text/javascript" charset="utf-8" id="zm-extension" src="moz-extension://c0d2d1fb-f4ce-48ef-8dc3-f537e2223ac8/scripts/webrtc-patch.js" async=""></script>
  8. <style type="text/css">
  9.  .text{
  10. width:300 ;
  11. }
  12. .grade{
  13. width: 70;
  14. }
  15. </style>
  16.  
  17. </head>
  18. <body>
  19. <h1>Для абітурієнта!</h1>
  20. <p>П.І.Б.</p>
  21. <input class="text" id="nm" type="text" value="" required>
  22. <p>Дата народження</p>
  23. <input  id="data" type="date" value="2018-07-22" min="1999-01-01" max="2019-01-01">
  24. <p>Адреса</p>
  25. <input id="address" class="text" type="text" value="" required>
  26. <input id="com" type="checkbox" checked> Проживаю в місті
  27. <p>Номер моб. телефону</p>
  28. <input id="mob" class="text" type="text" value="" required>
  29. <p>Стать</p>
  30. <input id="" type="radio" name="choise" checked> Жіноча
  31. <input type="radio" name="choise" checked>Чоловічна
  32. <p>Оцінка з математики</p>
  33. <input class="grade" id="math" type="number" value="" required >
  34. <p>Оцінка з української мови</p>
  35. <input  class="grade" id="mova" type="number" value="" required >
  36. <p>Ваше фото</p>
  37. <input type="file" id="foto">
  38. <input type="button" value="Перевірити" onclick="someFunc()">
  39. <script type="text/javascript">
  40. function someFunc(){
  41.             Win = window.open("about:blank","exemple",'width=800,height=600,top=30,left=300');
  42.         var elem = document.getElementById("nm").value;
  43.             Win.document.write("П.І.Б: "+" "+elem+"<br>");
  44.         var elem1 = document.getElementById("data").value;
  45.             Win.document.write("Дата народження: "+" "+elem1+"<br>");
  46.         var elem2 = document.getElementById("address").value;
  47.             Win.document.write("Адреса: "+" "+elem2+"<br>");
  48.         var elem3 = document.getElementById("com").value;
  49.             elem3.onclick= function(){
  50.             if (elem3.checked){
  51.             Win.document.write("Комерційник" +"<br>");}
  52.              else {Win.document.write("");}}
  53.         var elem4 = document.getElementById("mob").value;
  54.             Win.document.write("Номер телефона: "+" "+elem4+"<br>");
  55.         var elem5 = document.getElementById("foto").value;
  56.             Win.document.write( elem5+"<br>");
  57.        
  58.         var k = parseInt(document.getElementById("math").value)+parseInt(document.getElementById("mova").value);
  59.             Win.document.write("Сума oцінок: "+k);
  60.         }
  61.         function someFunc2(){
  62.             Win.close();
  63.         }
  64. </script>
  65. </body>
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement