Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

58 wiersze
2.2 KiB

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>pannellum embed configuration</title>
  5. <meta charset="utf-8">
  6. <link type="text/css" rel="Stylesheet" href="css/pannellum.css" />
  7. <SCRIPT LANGUAGE="JavaScript">
  8. function processForm (form)
  9. {
  10. var TestVar = form.embed_width.value;
  11. var embed_code = document.getElementById('embed_code');
  12. embed_code.innerHTML = '<iframe title="pannellum panorama viewer"' +
  13. ' width="' + escape(form.embed_width.value) +
  14. '" height="' + escape(form.embed_height.value) +
  15. '" style="border-style:none;"' +
  16. ' src="' + escape(form.pannellum_url.value) +
  17. '?' +
  18. 'panorama=' + escape(form.pano_url.value);
  19. if(form.use_logo.checked)
  20. {
  21. embed_code.innerHTML += '&amp;amp;logo=yes';
  22. }
  23. if(form.pano_title.value != '')
  24. {
  25. embed_code.innerHTML += '&amp;amp;title=' + escape(form.pano_title.value);
  26. }
  27. if(form.pano_author.value != '')
  28. {
  29. embed_code.innerHTML += '&amp;amp;author=' + escape(form.pano_author.value);
  30. }
  31. if(form.autoload.checked)
  32. {
  33. embed_code.innerHTML += '&amp;amp;autoload=yes';
  34. }
  35. embed_code.innerHTML += '"></iframe>';
  36. return false;
  37. }
  38. </SCRIPT>
  39. </head>
  40. <body>
  41. <form name="embed_gen_form" onsubmit="return processForm(embed_gen_form); return false;">
  42. pannellum location:<br>
  43. <input name="pannellum_url" placeholder="pannellum.htm Location" required><p>
  44. Panorama URL:<br>
  45. <input name="pano_url" placeholder="Image File" required><p>
  46. Basic Information:<br>
  47. <input name="pano_title" placeholder="Title"> <input name="pano_author" placeholder="Author"><p>
  48. Embed Size:<br>
  49. <input name="embed_width" type="number" min="200" placeholder="Width" required> <input name="embed_height" type="number" min="150" placeholder="Height" required><p>
  50. Include pannellum logo: <input name="use_logo" type="checkbox" checked><p>
  51. Auto Load: <input name="autoload" type="checkbox"><p>
  52. <input type="submit" value="Generate" onclick="document.getElementById('embed_code').innerHTML = ''"><p>
  53. </form>
  54. <textarea id="embed_code" style="resize: none;" cols="100" readonly></textarea>
  55. </body>
  56. </html>