Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.06 KB | None | 0 0
  1. html>
  2.  
  3.  <head>
  4.  <meta content= " text / html ; charset=utf-8 " http-equiv=
  5. Content-Type ">
  6.  <title> Hamming Encoder </title>
  7.  <link rel= " stylesheet " type= " text /css" href= "css/ style .
  8. css">
  9.  </head>
  10.  
  11.  <body>
  12.  
  13. <div id=" hamming-encoder ">
  14.  
  15. <h1>Hamming code for
  16.  <select v-on : change= " initDataBits ()" v-model= "
  17. numberOfDataBits ">
  18.  <option value= "4" >4</ option>
  19.  <option value= "8" >8</ option>
  20.  </ select>
  21. bits< /h1>
  22.  
  23.  
  24.  <br>
  25.  <ul v-for= "(bit , index ) in dataBits ">
  26.  <li>
  27.  <input maxlength= "1" : placeholder= "'D '+
  28. index " v-model= "bit. data "
  29. v-bind : class= "[ validateBit ( bit. data ) ?
  30. 'valid-input ' : 'invalid-input ']" />
  31.  </ li>
  32.  </ ul>
  33.  <br>
  34.  Data bits : <code> {{ dataBits }}</ code>
  35.  <br>
  36.  
  37. <button v-on : click= " send ()" >Send< / button>
  38.  
  39.  <p> {{ status }}</p>
  40.  
  41.  </ div>
  42.  
  43.  <script type= " text / javascript " src= " libs /vue.js"></
  44. script>
  45. <script type= " text / javascript " src= " libs / axios .js"></
  46. script>
  47.  <script type= " text / javascript " src= "js/app.js"></
  48. script>
  49.  </body>
  50.  
  51.  </ html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement