manuscript.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. function show_miniatura(){
  2. document.getElementById("MIN_info").style.display = "block";
  3. document.getElementById("MISU_info").style.display = "none";
  4. document.getElementById("MANU_info").style.display = "none";
  5. }
  6. function show_manoscritto(){
  7. document.getElementById("MANU_info").style.display = "block";
  8. document.getElementById("MISU_info").style.display = "none";
  9. document.getElementById("MIN_info").style.display = "none";
  10. }
  11. function show_misurazione(){
  12. document.getElementById("MISU_info").style.display = "block";
  13. document.getElementById("MANU_info").style.display = "none";
  14. document.getElementById("MIN_info").style.display = "none";
  15. }
  16. var img_nl = [{
  17. type: "image",
  18. url: "https://fitzmuseum.cam.ac.uk/illuminated/media/w1400h1400/folio_original/marlay-cutting-it-13a.jpg"
  19. }];
  20. var img_el = [{
  21. type: "image",
  22. url: "img/Pb-L.png"
  23. }];
  24. var img_sid = [{
  25. type: "image",
  26. url: "img/spettro.jpeg"
  27. }];
  28. runOpenseadragon(img_nl);
  29. function clearViewer() {
  30. var div = document.getElementById("contentDiv");
  31. while(div.firstChild) {
  32. div.removeChild(div.firstChild);
  33. }
  34. }
  35. function show_riproduzione(){
  36. clearViewer();
  37. runOpenseadragon(img_nl);
  38. }
  39. function show_materiale(){
  40. clearViewer();
  41. runOpenseadragon(img_el);
  42. }
  43. function show_spettro(){
  44. clearViewer();
  45. runOpenseadragon(img_sid);
  46. }