embed.html 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html ng-app="ivprog">
  3. <head>
  4. <title>iVProg - versão HTML</title>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <link href="css/bootstrap.min.css" rel="stylesheet" media="screen" />
  8. <link href="css/font-awesome.css" rel="stylesheet" media="screen" />
  9. <link href="css/bootstrap-editable.css" rel="stylesheet" media="screen" />
  10. <link href="css/ivprog.css" rel="stylesheet" media="screen" />
  11. </head>
  12. <body>
  13. <h1>Embed example to be used in iAssign:</h1>
  14. <input type="button" class="btn" value="call getAnswer()" id="getAnswer" />
  15. <input type="button" class="btn" value="call getEvaluation()" id="getEvaluation" />
  16. <br>
  17. <iframe src="main.html" style="width: 100%; height: 600px;" id="ivprog" name="ivprog"></iframe>
  18. <script src="js/jquery.1.8.3.js"></script>
  19. <script>
  20. $(function(){
  21. $("#getAnswer").click(function(){
  22. alert(window.frames.ivprog.getAnswer());
  23. });
  24. $("#getEvaluation").click(function(){
  25. alert(window.frames.ivprog.getEvaluation());
  26. });
  27. });
  28. </script>
  29. </body>
  30. </html>