Tugamars_PT

Untitled

Jun 21st, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pt">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Expressionismo Abstrato - Aluno 99999</title>
  6. <style>
  7. body{background-color:#166;}
  8. td { vertical-align: top; }
  9. .imag{width:165px; border:1px solid #fff; margin-top:10px; margin-bottom:10px;}
  10. </style>
  11. <script src="../ExprAbstr/ExprAbstrBD.js"></script>
  12. <script src="ExprAbstrPars.js"></script>
  13. <script>
  14. var PATH = "../ExprAbstr/"; //diretorio das imagens
  15. var interface = {};
  16. //inicialização
  17. function inic(){
  18. adqInterf();
  19. inicInterf();
  20.  
  21.  
  22. }
  23. //adquire as referências para o interface
  24. function adqInterf(){
  25. interface.top = { left:document.getElementById("topleft"), center:document.getElementById("topcenter"), right:document.getElementById("topright")};
  26. interface.main = { left:document.getElementById("mainleft"), center:document.getElementById("maincenter"), right:document.getElementById("mainright")};
  27. }
  28.  
  29. //inicializa a configuração inicial do interface
  30. function inicInterf(){
  31. configApres();
  32. pintores();
  33. }
  34.  
  35. function resetInterface(){
  36.  
  37. }
  38.  
  39. //configura a apresentação do texto descritivo central
  40. function configApres(){
  41. var cod1 = "";
  42. //parágrafos do texto central
  43. cod1 += '<h1>'+titulo()+'</h1>';
  44. cod1 += '<h2>'+subtitulo()+'</h2>';
  45.  
  46. cod1 +='<p class="etik">'+textoIntrod(0)+'</p>';
  47. cod1 +='<p class="etik">'+textoIntrod(1)+'</p>';
  48. cod1 +='<p class="etik">'+textoIntrod(2)+'</p>';
  49. cod1 +='<p class="etik">'+textoIntrod(3)+'</p>';
  50. cod1 +='<p class="etik">'+textoIntrod(4)+'</p>';
  51.  
  52. interface.main.center.innerHTML = cod1;
  53. }
  54.  
  55. function pintores(){
  56. var cod = "";
  57. //coluna da esquerda
  58. for(var iPintor=0; iPintor<numPintores(); iPintor++){
  59. cod='<img class="imag" onclick="apresPintores('+iPintor+')" src="'+PATH + FotoPintores(iPintor)+'"/>';
  60. interface.main.left.innerHTML += cod+'<p><b>'+nomePintor(iPintor)+'</b>, pintor de nacionalidade '+nacPintor(iPintor)+', nascido a '+ dataBioPintor(nascimPintor(iPintor))
  61. +' em '+locNascPintor(iPintor)+', e falecido a '+dataBioPintor(datMortePintor(iPintor))+' em '+locMortePintor(iPintor)+'.</p><br>';
  62. }
  63. }
  64. //converte uma data para inteiros
  65. function dataBioPintor (data){
  66. var NM = ["janeiro:", "fevereiro:","março:","abril:","maio:","junho:","julho:","agosto:","setembro:","outubro:","novembro:", "dezembro:"];
  67. var ano = data.substring(0, 4);
  68. var mes = data.substring(4, 6);
  69. var dia = data.substring(6, 8);
  70. mes = NM[parseInt(mes) - 1];
  71. return dia + " de " + mes + " de " + ano;
  72. }
  73. //função que mostra a outra pagina atraves do clique no pintor
  74. function apresPintores(nPintor){
  75.  
  76.  
  77. }
  78. //função que esconde uma pagina e mostra a outra pelo clique no pintor
  79.  
  80.  
  81.  
  82.  
  83. </script>
  84. </head>
  85. <body>
  86. <table>
  87. <tr>
  88. <td id="topleft"></td>
  89. <td id="topcenter"></td>
  90. <td id="topright"></td>
  91. </tr>
  92. <tr>
  93. <td id="mainleft"></td>
  94. <td id="maincenter"></td>
  95. <td id="mainright"></td>
  96. </tr>
  97. </table>
  98.  
  99. <script>
  100. inic();
  101. </script>
  102. </body>
  103. </html>
Advertisement
Add Comment
Please, Sign In to add comment