Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset = "UTF-8">
  5. <title>Kein datensatz</title>
  6. <style>
  7.  
  8. #container{
  9. background-color: #CCC;
  10. display: block;
  11. width: 286px;
  12. border: 1px solid black;
  13. }
  14.  
  15. .szvg{
  16. width: 103px;
  17. float: left;
  18. }
  19.  
  20. .mezo{
  21. padding: 5px;
  22. clear: both;
  23. }
  24.  
  25. #klikk{
  26. margin: 5px;
  27. width: 276px;
  28. }
  29.  
  30. #valasz{
  31. font-size: 11px;
  32. margin: 10px 0 10px 0;
  33. }
  34.  
  35. #valasz > input{
  36. width: 18px;
  37. }
  38.  
  39. textarea{
  40. resize: none;
  41. margin: 5px;
  42. width: 270px;
  43. height: 300px;
  44. }
  45.  
  46. body{
  47. font-family: Calibri, Verdana, Tahoma, Geneva, sans-serif;
  48. }
  49.  
  50. </style>
  51. <script>
  52. function csapassad(){
  53. var spid = document.jozsi.sp.value;
  54. var lord = document.jozsi.lord.value;
  55. var netz = document.jozsi.netz.value;
  56. var rou1 = document.jozsi.r1.value;
  57. var rou2 = document.jozsi.r2.value;
  58.  
  59. if(rou1 === ""){
  60. rou1 = rou2;
  61. rou2 = "";
  62. }
  63.  
  64. if (document.getElementById("hotline").checked) {
  65. document.getElementById("oput").value = "lofasz";
  66. }
  67.  
  68. if (document.getElementById("fconf").checked) {
  69. alert("fc");
  70. }
  71.  
  72. if (document.getElementById("confehlt").checked) {
  73. alert("cf");
  74. }
  75.  
  76. if (document.getElementById("radius").checked) {
  77. alert("rd");
  78. }
  79. }
  80. </script>
  81. </head>
  82. <body>
  83. <div id = "container">
  84. <form name="jozsi">
  85. <div class = "mezo">
  86. <div class = "szvg">SP-ID:&nbsp;</div>
  87. <input type = "text" name= "sp">
  88. </div>
  89. <div class = "mezo">
  90. <div class = "szvg">LOrd:&nbsp;</div>
  91. <input type = "text" name= "lord">
  92. </div>
  93. <div class = "mezo">
  94. <div class = "szvg">NETZ:&nbsp;</div>
  95. <input type = "text" name= "netz">
  96. </div>
  97. <div class = "mezo">
  98. <div class = "szvg">Router 1:&nbsp;</div>
  99. <input type = "text" name= "r1">
  100. </div>
  101. <div class = "mezo">
  102. <div class = "szvg">Router 2:&nbsp;</div>
  103. <input type = "text" name= "r2">
  104. </div>
  105. <div id = "valasz">
  106. <input type = "radio" id = "hotline" value="hotline" checked>Hotline
  107. <input type = "radio" id = "fconf" value="fconf">Final Config
  108. <input type = "radio" id = "confehlt" value="confehlt">Konfig fehlt
  109. <input type = "radio" id = "radius" value="radius">RADIUS
  110. </div>
  111. <input type = "button" id = "klikk" onclick = "csapassad()" value = "Generál">
  112. <br />
  113. <textarea id="oput" placeholder = "Használat: töltsd ki a mezőket, válassz egy gombot és generáld! Ide kerül az output." readonly></textarea>
  114. </form>
  115. </div>
  116. </body>
  117. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement