report.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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="../"
  20. title="Navigate to iVProgH homepage.">Home</a>
  21. </li>
  22. <li class="nav-item">
  23. <a class="nav-link" href="../sobre_ivprog.html"
  24. title="Know what iVProgH is and what iVProgH is for.">About</a>
  25. </li>
  26. <li class="nav-item">
  27. <a class="nav-link" href="../ex_en/index.html"
  28. title="See some examples and test iVProgH online.">Examples</a>
  29. </li>
  30. <li class="nav-item">
  31. <a class="nav-link" href="../download.html"
  32. title="Download a copy of iVProgH for your computer.">Download</a>
  33. </li>
  34. <li class="nav-item">
  35. <a class="nav-link" href="../manual_en/index.html"
  36. title="Access online iVProgH manual and learn about all the features.">Help</a>
  37. </li>
  38. <li class="nav-item">
  39. <a class="nav-link" href="../bugs/report.html"
  40. title="Send a message to the iVProgH team.">Contact</a>
  41. </li>
  42. <li class="nav-item">
  43. <a class="nav-link" href="//www.usp.br/line/"
  44. title="Meet the Laboratory of Informatics in Education of the Institute of Mathematics and Statistics of USP.">LInE</a>
  45. </li>
  46. <li class="nav-item">
  47. <a class="nav-link" href="../docs/"
  48. title="Get access to all iVProgH documentation.">Developers</a>
  49. </li>
  50. <li class="nav-item">
  51. <a class="nav-link" href="../publicacoes.html"
  52. title="Read the team publications about iVProgH.">Publications</a>
  53. </li>
  54. </ul>
  55. <div class="form-inline my-2 my-lg-0">
  56. <a href="../../index.html"><img src="../img/img_flag_brazil.png"/></a>
  57. <a href="../index.html"><img src="../img/img_flag_usa.png"/></a>
  58. </div>
  59. </div>
  60. </nav>
  61. <main role="main">
  62. <div class="jumbotron ivprogh-desc">
  63. <div class="container">
  64. <h1>Contact</h1>
  65. </div>
  66. </div>
  67. <div class="container ivprog-container" style="padding: 3em; margin-top: 3em;">
  68. <p style="color: gray">Thank you for your interest in contacting iVProgH! <br />
  69. Please, fill in the fields below.</p>
  70. <form action="get.php" method="post" class="needs-validation" novalidate>
  71. <input type="hidden" name="redirect" value="report.html">
  72. <div class="form-group row">
  73. <label for="inputname" class="col-sm-2 col-form-label">Name:</label>
  74. <div class="col-sm-10">
  75. <input type="text" class="form-control" id="inputname" name="name">
  76. </div>
  77. </div>
  78. <div class="form-group row">
  79. <label for="inputemail" class="col-sm-2 col-form-label">E-mail:</label>
  80. <div class="col-sm-10">
  81. <input type="email" class="form-control" id="inputemail" name="email">
  82. </div>
  83. </div>
  84. <div class="form-group row">
  85. <label for="inputsummary" class="col-sm-2 col-form-label">Subject:</label>
  86. <div class="col-sm-10">
  87. <input type="text" class="form-control" id="inputsummary" name="summary">
  88. </div>
  89. </div>
  90. <div class="form-group row">
  91. <label for="inputdetails" class="col-sm-2 col-form-label">Message:*</label>
  92. <div class="col-sm-10">
  93. <textarea id="inputdetails" class="form-control" name="details" style="height: 15em;" required></textarea>
  94. <div class="invalid-feedback">
  95. Please give us a message!
  96. </div>
  97. </div>
  98. </div>
  99. <div class="form-group row">
  100. <div class="offset-sm-2 col-sm-10">
  101. <button type="submit" class="btn btn-primary">Submit</button>
  102. <span class="reported" style="color: green; font-size: 120%;"></span>
  103. <span class="error" style="color: red; font-size: 120%;"></span>
  104. </div>
  105. </div>
  106. </form>
  107. </div>
  108. </main>
  109. <footer class="container text-center">
  110. <a href="http://www.ime.usp.br/line">iVProgH</a> |
  111. <a href="http://www.ime.usp.br/line">LInE</a> |
  112. <a href="http://www.matematica.br">iM&aacute;tica</a>
  113. </footer>
  114. <script src="../js/jquery.min.js"></script>
  115. <script src="../js/bootstrap.bundle.min.js"></script>
  116. <script type="text/javascript">
  117. $( document ).ready(function() {
  118. $( '#inputname' ).focus();
  119. var forms = document.getElementsByClassName('needs-validation');
  120. // Loop over them and prevent submission
  121. var validation = Array.prototype.filter.call(forms, function(form) {
  122. form.addEventListener('submit', function(event) {
  123. if (form.checkValidity() === false) {
  124. event.preventDefault();
  125. event.stopPropagation();
  126. $(' #inputdetails').focus();
  127. }
  128. form.classList.add('was-validated');
  129. }, false);
  130. });
  131. if (getUrlParameter('reported')) {
  132. $('.reported').text('The information has been sent successfully!');
  133. } else if (getUrlParameter('error')) {
  134. $('.error').text('There was an error while trying to send the data, please try again!');
  135. }
  136. });
  137. function getUrlParameter(sParam) {
  138. var sPageURL = window.location.search.substring(1),
  139. sURLVariables = sPageURL.split('&'),
  140. sParameterName,
  141. i;
  142. for (i = 0; i < sURLVariables.length; i++) {
  143. sParameterName = sURLVariables[i].split('=');
  144. if (sParameterName[0] === sParam) {
  145. return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
  146. }
  147. }
  148. }
  149. </script>
  150. </body>
  151. </html>