From 137fa136d287f1bc930c71c89c3482389b580e17 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Tue, 8 Jan 2013 21:56:29 -0500 Subject: [PATCH] Added auto-rotation. --- configuration.htm | 11 ++++++++++- src/js/pannellum.js | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/configuration.htm b/configuration.htm index f61b664..e132562 100644 --- a/configuration.htm +++ b/configuration.htm @@ -30,6 +30,9 @@ if(form.autoload.checked) { embed_code.innerHTML += '&autoload=yes'; } + if(form.autorotate.value != 'none') { + embed_code.innerHTML += '&autorotate=' + escape(form.autorotate.value); + } if(form.license.value > -1) { embed_code.innerHTML += '&license=' + escape(form.license.value); } @@ -77,9 +80,15 @@ Embed Size:

Initial Parameters:
-

+

Include Pannellum Logo:

Auto Load:

+ Auto Rotate: +

Creative Commons License: