From b2704040e9f883ef7fffaaf18638de8d96344c18 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Mon, 28 May 2012 21:45:02 -0400 Subject: [PATCH] Bumped version number. --- VERSION | 2 +- build/pannellum.htm | 45 +++++++++++++++++++++++---------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/VERSION b/VERSION index ceab6e1..9f8e9b6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1 \ No newline at end of file +1.0 \ No newline at end of file diff --git a/build/pannellum.htm b/build/pannellum.htm index 58a8400..c6e420e 100644 --- a/build/pannellum.htm +++ b/build/pannellum.htm @@ -1,25 +1,7 @@ - -pannellum

Loading...

Load
Panorama

A browser supporting WebGL (and the canvas element) is required to view this panorama.

\ No newline at end of file +window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)}}());document.addEventListener("contextmenu",onRightClick,!1);"yes"==getURLParameter("logo")&&(document.getElementById("pannellum_logo").style.display="inline");getURLParameter("title")&&(document.getElementById("title_box").innerHTML=getURLParameter("title")); +getURLParameter("author")&&(document.getElementById("author_box").innerHTML="by "+getURLParameter("author")); +if(getURLParameter("license")){var licenseType;switch(parseInt(getURLParameter("license"))){case 0:licenseType="by";break;case 1:licenseType="by-sa";break;case 2:licenseType="by-nd";break;case 3:licenseType="by-nc";break;case 4:licenseType="by-nc-sa";break;case 5:licenseType="by-nc-nd"}document.getElementById("author_box").innerHTML+='
';var license=document.getElementById("license").style; +license.backgroundImage="url('http://i.creativecommons.org/l/"+licenseType+"/3.0/80x15.png')";license.width="80px"}var popoutmode=!1;"yes"==getURLParameter("popout")&&(document.getElementById("fullwindowtoggle_button").id="fullwindowtoggle_button_active",popoutmode=!0);var camera,scene,renderer,renderGL,fov=70,texture_placeholder,isUserInteracting=!1,onMouseDownMouseX=0,onMouseDownMouseY=0,lon=0,onMouseDownLon=0,lat=0,onMouseDownLat=0,phi=0,theta=0,fullWindowActive=!1,isTimedOut=!1,about_box=document.getElementById("about_box"); +if("yes"==getURLParameter("autoload")||"yes"==getURLParameter("popoutautoload"))"yes"!=getURLParameter("popoutautoload")&&(document.getElementById("load_box").load_box.style.display="inline"),init(),animate();else{var load_button=document.getElementById("load_button");load_button.style.display="table"} +function init(){var a,c;a=document.getElementById("container");camera=new THREE.Camera(fov,window.innerWidth/window.innerHeight,1,1100);scene=new THREE.Scene;var d=new Image,e=new THREE.Texture(d);d.onload=function(){e.needsUpdate=!0;c=new THREE.Mesh(new THREE.Sphere(500,60,40),new THREE.MeshBasicMaterial({map:e}));c.scale.x=-1;try{scene.addObject(c)}catch(b){load_box.style.display="none",document.getElementById("nocanvas").style.display="table"}try{renderer=new THREE.WebGLRenderer,renderer.setSize(window.innerWidth, +window.innerHeight),renderer.initWebGLObjects(scene)}catch(d){load_box.style.display="none",document.getElementById("nocanvas").style.display="table"}a.appendChild(renderer.domElement);document.addEventListener("mousedown",onDocumentMouseDown,!1);document.addEventListener("mousemove",onDocumentMouseMove,!1);document.addEventListener("mouseup",onDocumentMouseUp,!1);document.addEventListener("mousewheel",onDocumentMouseWheel,!1);document.addEventListener("DOMMouseScroll",onDocumentMouseWheel,!1);document.addEventListener("onresize", +onDocumentResize,!1);document.addEventListener("mozfullscreenchange",onFullScreenChange,!1);document.addEventListener("webkitfullscreenchange",onFullScreenChange,!1);document.addEventListener("fullscreenchange",onFullScreenChange,!1);document.addEventListener("mozfullscreenerror",fullScreenError,!1);document.addEventListener("webkitfullscreenerror",fullScreenError,!1);document.addEventListener("fullscreenerror",fullScreenError,!1);window.addEventListener("resize",onDocumentResize,!1);document.addEventListener("keydown", +onDocumentKeyPress,!1);renderInit();setTimeout("isTimedOut = true",500)};d.src=getURLParameter("panorama");document.getElementById("page").className="grab"} +function onRightClick(a){document.getElementById("about").style.left=a.clientX+"px";document.getElementById("about").style.top=a.clientY+"px";clearTimeout(onRightClick.t1);clearTimeout(onRightClick.t2);document.getElementById("about").style.display="block";document.getElementById("about").style.opacity=1;onRightClick.t1=setTimeout(function(){document.getElementById("about").style.opacity=0},2E3);onRightClick.t2=setTimeout(function(){document.getElementById("about").style.display="none"},2500);a.preventDefault()} +function onDocumentMouseDown(a){a.preventDefault();isUserInteracting=!0;onPointerDownPointerX=a.clientX;onPointerDownPointerY=a.clientY;onPointerDownLon=lon;onPointerDownLat=lat;document.getElementById("page").className="grabbing"}function onDocumentMouseMove(a){isUserInteracting&&(lon=0.1*(onPointerDownPointerX-a.clientX)+onPointerDownLon,lat=0.1*(a.clientY-onPointerDownPointerY)+onPointerDownLat,animate())} +function onDocumentMouseUp(){isUserInteracting=!1;document.getElementById("page").className="grab"}function onDocumentMouseWheel(a){a.preventDefault();35<=fov&&105>=fov&&(a.wheelDeltaY?fov-=0.05*a.wheelDeltaY:a.wheelDelta?fov-=0.05*a.wheelDelta:a.detail&&(fov+=1.5*a.detail));35>fov?fov=35:105fov?fov=40:100=fov&&(fov+=5,camera.projectionMatrix=THREE.Matrix4.makePerspective(fov,window.innerWidth/window.innerHeight,1,1100),render());40>fov?fov=40:100 \ No newline at end of file