Advertisement
Guest User

Configurador.js

a guest
Sep 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. function ShowSelected()
  3. {
  4.  
  5.  
  6. var cod = document.getElementById("noPolos").value;
  7.  
  8.  
  9. switch (cod) {
  10. case "3 Polos":
  11. animacion();
  12. document.getElementById('imagenConf').src = "./CentrosDeDistribucion/AK03T.png";
  13.  
  14. break;
  15. case "6 Polos":
  16. animacion();
  17. document.getElementById('imagenConf').src = "./CentrosDeDistribucion/AK05.png";
  18.  
  19. break;
  20. case "9 Polos":
  21. document.getElementById('imagenConf').src = "./CentrosDeDistribucion/AK09.jpg";
  22. document.getElementById('imagenConf').removeClass('trans');
  23. document.getElementById('imagenConf').addClass('trans');
  24. break;
  25. }
  26. }
  27.  
  28.  
  29.  
  30. function animacion(){
  31. var contenedorSuperio = document.getElementById("imagenConf");
  32. $("#imagenConf").addClass("trans");
  33. contenedorSuperio.addEventListener("animatedend", function(){
  34. $("#imagenConf").removeClass("trans");
  35. }), false;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement