report.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>iVProgH - LInE (free educational software and contents)</title>
  7. <link href="../css/bootstrap.min.css" rel="stylesheet">
  8. <link href="../css/style.css" rel="stylesheet">
  9. </head>
  10. <body>
  11. <nav class="navbar navbar-expand-md navbar-dark fixed-top" style="background-color: #03396c;">
  12. <b><a class="navbar-brand" href="#">iVProgH</a></b>
  13. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
  14. <span class="navbar-toggler-icon"></span>
  15. </button>
  16. <div class="collapse navbar-collapse" id="navbarsExampleDefault">
  17. <ul class="navbar-nav mr-auto">
  18. <li class="nav-item active">
  19. <a class="nav-link" href="#">Home</a>
  20. </li>
  21. <li class="nav-item">
  22. <a class="nav-link" href="manual_pt/index.html" title="manual iVProgH">Conheça</a>
  23. </li>
  24. <li class="nav-item">
  25. <a class="nav-link" href="ex_pt/index.html">Exemplos</a>
  26. </li>
  27. <li class="nav-item">
  28. <a class="nav-link" href="#">Download</a>
  29. </li>
  30. <li class="nav-item">
  31. <a class="nav-link" href="../bugs/report.html">Informar uma falha</a>
  32. </li>
  33. <li class="nav-item">
  34. <a class="nav-link" href="#">LInE</a>
  35. </li>
  36. <li class="nav-item">
  37. <a class="nav-link" href="#">Ajuda</a>
  38. </li>
  39. </ul>
  40. <div class="form-inline my-2 my-lg-0">
  41. <img src="../img/img_flag_brazil.png">
  42. <img src="../img/img_flag_usa.png">
  43. </div>
  44. </div>
  45. </nav>
  46. <main role="main">
  47. <div class="jumbotron ivprogh-desc">
  48. <div class="container">
  49. <h1>iVProgH</h1>
  50. </div>
  51. </div>
  52. <div class="container ivprog-container" style="padding: 3em; margin-top: 3em;">
  53. <h4>Informar uma falha</h4>
  54. <p style="color: gray">Obrigado pelo interesse em informar os problemas encontrados no iVProgH! <br />
  55. Por favor, preencha os campos abaixo e nos conte o que aconteceu.</p>
  56. <form action="get.php" method="post" class="needs-validation" novalidate>
  57. <input type="hidden" name="redirect" value="report.html">
  58. <div class="form-group row">
  59. <label for="inputname" class="col-sm-2 col-form-label">Nome:</label>
  60. <div class="col-sm-10">
  61. <input type="text" class="form-control" id="inputname" name="name">
  62. </div>
  63. </div>
  64. <div class="form-group row">
  65. <label for="inputemail" class="col-sm-2 col-form-label">E-mail:</label>
  66. <div class="col-sm-10">
  67. <input type="email" class="form-control" id="inputemail" name="email">
  68. </div>
  69. </div>
  70. <div class="form-group row">
  71. <label for="inputsummary" class="col-sm-2 col-form-label">Falha resumida:</label>
  72. <div class="col-sm-10">
  73. <input type="text" class="form-control" id="inputsummary" name="summary">
  74. </div>
  75. </div>
  76. <div class="form-group row">
  77. <label for="inputdetails" class="col-sm-2 col-form-label">Falha detalhada:*</label>
  78. <div class="col-sm-10">
  79. <textarea id="inputdetails" class="form-control" name="details" style="height: 15em;" required></textarea>
  80. <div class="invalid-feedback">
  81. Por favor, conte-nos exatamente o que aconteceu!
  82. </div>
  83. </div>
  84. </div>
  85. <div class="form-group row">
  86. <div class="offset-sm-2 col-sm-10">
  87. <button type="submit" class="btn btn-primary">Enviar</button>
  88. <span class="reported" style="color: green; font-size: 120%;"></span>
  89. <span class="error" style="color: red; font-size: 120%;"></span>
  90. </div>
  91. </div>
  92. </form>
  93. </div>
  94. </main>
  95. <footer class="container text-center">
  96. <a href="http://www.ime.usp.br/line">iVProgH</a> |
  97. <a href="http://www.ime.usp.br/line">LInE</a> |
  98. <a href="http://www.matematica.br">iM&aacute;tica</a>
  99. </footer>
  100. <script src="../js/jquery.min.js"></script>
  101. <script src="../js/bootstrap.bundle.min.js"></script>
  102. <script type="text/javascript">
  103. $( document ).ready(function() {
  104. $( '#inputname' ).focus();
  105. var forms = document.getElementsByClassName('needs-validation');
  106. // Loop over them and prevent submission
  107. var validation = Array.prototype.filter.call(forms, function(form) {
  108. form.addEventListener('submit', function(event) {
  109. if (form.checkValidity() === false) {
  110. event.preventDefault();
  111. event.stopPropagation();
  112. $(' #inputdetails').focus();
  113. }
  114. form.classList.add('was-validated');
  115. }, false);
  116. });
  117. if (getUrlParameter('reported')) {
  118. $('.reported').text('As informações foram enviadas com sucesso!');
  119. } else if (getUrlParameter('error')) {
  120. $('.error').text('Ocorreu um erro ao tentar enviar os dados, por favor, tente novamente!');
  121. }
  122. });
  123. function getUrlParameter(sParam) {
  124. var sPageURL = window.location.search.substring(1),
  125. sURLVariables = sPageURL.split('&'),
  126. sParameterName,
  127. i;
  128. for (i = 0; i < sURLVariables.length; i++) {
  129. sParameterName = sURLVariables[i].split('=');
  130. if (sParameterName[0] === sParam) {
  131. return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
  132. }
  133. }
  134. }
  135. </script>
  136. </body>
  137. </html>