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.

83 lines
2.7 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  8. <title>gpio raspberrypi html</title>
  9. <!-- Bootstrap -->
  10. <link href="css/bootstrap.min.css" rel="stylesheet">
  11. <link href="own.css" rel="stylesheet">
  12. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  13. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  14. <!--[if lt IE 9]>
  15. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  16. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  17. <![endif]-->
  18. </head>
  19. <body onload='OnLoadIndex()'>
  20. <div class='container'>
  21. <div class="panel panel-default">
  22. <div class="panel-heading"><span class="glyphicon glyphicon-transfer"></span> GPIO raspberry control</div>
  23. <div class="panel-body">
  24. <select id="pinselected">
  25. <option>1</option>
  26. <option>2</option>
  27. <option>3</option>
  28. <option>4</option>
  29. <option>5</option>
  30. <option>6</option>
  31. <option>7</option>
  32. <option>8</option>
  33. <option>9</option>
  34. <option>10</option>
  35. <option>11</option>
  36. <option>12</option>
  37. <option>13</option>
  38. <option>14</option>
  39. <option>15</option>
  40. <option>16</option>
  41. </select>
  42. <div onclick='pinON()' class='btn btn-success'>
  43. <span class="glyphicon glyphicon-ok"></span> encèn pin
  44. </div>
  45. <div onclick='pinOFF()' class='btn btn-danger'>
  46. <span class="glyphicon glyphicon-remove"></span> apaga pin
  47. </div>
  48. <div id='divlistPinsON' class="alert alert-info">
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  54. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  55. <!-- Include all compiled plugins (below), or include individual files as needed -->
  56. <script src="js/bootstrap.min.js"></script>
  57. </body>
  58. <script src="/socket.io/socket.io.js"></script>
  59. <script src='comunication.js'></script>
  60. <script src="libraries/toastr.js"></script>
  61. <link href="libraries/toastr.css" rel="stylesheet">
  62. <script src="index.js"></script>
  63. </html>