Permalink
Browse files

initial commit after refactoring pannellum

  • Loading branch information...
0 parents commit 2afcd7003e2b5d6fbcad0f1ec936949717df5c58 Daniel Hobi committed Oct 19, 2012
@@ -0,0 +1,2 @@
+.idea/*
+titanic360/*
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><rect height="10" width="10"><animateMotion dur="1s" repeatCount="indefinite" path="M 0 0 L 10 0 L 10 10 L 0 10 L 0 0"/></rect></svg>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="135" width="81"><g style="stroke-width:0;fill:#fff"><rect opacity="0.7" ry="9" height="25" width="25" y="55" x="28"/><rect opacity="0.7" ry="9" height="25" width="25" y="55" x="1"/><rect opacity="0.7" ry="9" height="25" width="25" y="109" x="28"/><rect opacity="0.7" ry="9" height="25" width="25" y="109" x="1"/><g style="fill:#000"><rect opacity="0.7" ry="9" height="25" width="25" y="28" x="28"/><rect opacity="0.7" ry="9" height="25" width="25" y="28" x="1"/><rect opacity="0.7" ry="9" height="25" width="25" y="82" x="28"/><rect opacity="0.7" ry="9" height="25" width="25" y="82" x="1"/><rect opacity="0.7" ry="9" height="25" width="79" y="1" x="1"/><path d="m33.195,65.772,14.61,0,0,3.4559-14.61,0z"/><path d="m6.1949,65.772,14.61,0,0,3.4559-14.61,0z"/><path d="m15.228,60.195,0,14.61-3.4559,0,0-14.61z"/><path d="m32.513,113.49,0,7,2.4375-2.4375,2.4375,2.4375,2.125-2.0938-2.4688-2.4375,2.4688-2.4688-7,0z"/><path d="m48.5,113.51-7,0,2.4375,2.4375-2.4375,2.4375,2.0938,2.125,2.4375-2.4688,2.4688,2.4688,0-7z"/><path d="m48.5,129.51,0-7-2.4375,2.4375-2.4375-2.4375-2.125,2.0938,2.4688,2.4375-2.4688,2.4688,7,0z"/><path d="m32.5,129.51,7,0-2.4375-2.4375,2.4375-2.4375-2.0938-2.125-2.4375,2.4688-2.4688-2.4688,0,7z"/><path d="m12.513,120.49,0-7-2.4375,2.4375-2.4375-2.4375-2.125,2.0938,2.4687,2.4375-2.4687,2.4688,7,0z"/><path d="m14.5,120.51,7,0-2.4375-2.4375,2.4375-2.4375-2.0938-2.125-2.4375,2.4688-2.4688-2.4688,0,7z"/><path d="m14.5,122.51,0,7,2.4375-2.4375,2.4375,2.4375,2.125-2.0938-2.4688-2.4375,2.4688-2.4688-7,0z"/><path d="m12.5,122.51-7,0,2.4375,2.4375-2.4375,2.4375,2.0938,2.125,2.4375-2.4688,2.4688,2.4688,0-7z"/></g><path d="m33.195,38.772,14.61,0,0,3.4559-14.61,0z"/><path d="m6.1949,38.772,14.61,0,0,3.4559-14.61,0z"/><path d="m15.228,33.195,0,14.61-3.4559,0,0-14.61z"/><path d="m5.3528,21.132,0-0.57569,0.86377-0.0801,0.27197-0.25586,0-9.2803-1.1357,0,0-0.49609,1.856-0.57568,0.60791,0,0,0.87988c0.84277-0.63997,1.6268-0.95996,2.352-0.95996,0.88541,0,1.6187,0.34668,2.2,1.04,0.58121,0.69336,0.87182,1.5947,0.87183,2.7041-0.000008,1.2585-0.35995,2.2664-1.0798,3.0237-0.7199,0.75732-1.672,1.136-2.8562,1.136-0.40528,0-0.90121-0.048-1.4878-0.14405v2.6724l0.27197,0.25586,1.0239,0.0801v0.57569zm2.4639-4.416c0.51204,0.1709,0.96533,0.25635,1.3599,0.25635,0.78938,0,1.4294-0.29338,1.9202-0.88013,0.49072-0.58675,0.73608-1.3707,0.73608-2.3518-0.000007-0.9069-0.21339-1.6244-0.64014-2.1524-0.42676-0.52799-0.99203-0.79198-1.6958-0.79199-0.49089,0.00001-1.0509,0.18132-1.6802,0.54394z"/><path d="m18.342,16.716c-1.0134,0.69336-1.888,1.04-2.624,1.04-0.62956,0-1.1283-0.18929-1.4963-0.56787-0.369-0.379-0.553-0.872-0.553-1.48,0-0.77864,0.33333-1.352,1-1.72,0.66666-0.368,1.8908-0.76538,3.6724-1.1921v-0.51172c-0.000006-0.65071-0.10401-1.112-0.31201-1.384-0.20801-0.27197-0.59473-0.40795-1.1602-0.40796-0.39486,0.00001-0.8003,0.0853-1.2163,0.25586v1.3442h-1.104c-0.18132,0-0.30925-0.0347-0.38379-0.10401-0.07455-0.0693-0.11182-0.20002-0.11182-0.39209-0.000001-0.50129,0.29329-0.92797,0.87988-1.28,0.58659-0.35204,1.3706-0.52807,2.352-0.52807,0.84244,0,1.4504,0.18132,1.8237,0.54394,0.37337,0.36264,0.56005,0.94939,0.56006,1.7603v4.6396l0.28809,0.25635,0.84814,0.0796v0.57617h-2.2563zm0-0.54394,0-2.8159c-1.2269,0.34147-2.0776,0.65886-2.5522,0.95215-0.47461,0.29329-0.71192,0.71728-0.71191,1.272-0.000003,0.39453,0.11466,0.71183,0.34399,0.9519,0.22933,0.24008,0.54126,0.36011,0.93579,0.36011,0.49088,0,1.1523-0.24007,1.9844-0.72021z"/><path d="m21.602,17.644,0-0.57617,0.86426-0.0796,0.27197-0.25635,0-5.792-1.1362,0,0-0.49609,1.856-0.57568,0.60792,0,0,0.87988c1.1628-0.63997,2.0215-0.95996,2.5762-0.95996,0.70409,0,1.2401,0.20533,1.6082,0.61596,0.368,0.41066,0.552,1.016,0.552,1.8162v4.5117l0.27198,0.25635,0.86377,0.0796v0.57617h-3.5039v-0.57617l0.76807-0.0796,0.27197-0.25635v-4.2397c-0.00001-0.58691-0.12265-1.0083-0.36792-1.2642-0.24529-0.25585-0.66138-0.38378-1.2483-0.38379-0.51205,0.00001-1.1094,0.17595-1.792,0.52783v5.3599l0.27197,0.25635,0.76806,0.0796v0.57617z"/><path d="m30.696,17.644,0-0.57617,0.86426-0.0796,0.27197-0.25635,0-5.792-1.1362,0,0-0.49609,1.856-0.57568,0.60792,0,0,0.87988c1.1628-0.63997,2.0215-0.95996,2.5762-0.95996,0.70409,0,1.2401,0.20533,1.6082,0.61596,0.368,0.41066,0.552,1.016,0.552,1.8162v4.5117l0.27198,0.25635,0.86377,0.0796v0.57617h-3.5039v-0.57617l0.76807-0.0796,0.27197-0.25635v-4.2397c-0.00001-0.58691-0.12265-1.0083-0.36792-1.2642-0.24529-0.25585-0.66138-0.38378-1.2483-0.38379-0.51205,0.00001-1.1094,0.17595-1.792,0.52783v5.3599l0.27197,0.25635,0.76806,0.0796v0.57617z"/><path d="m45.477,15.948,0,0.87989c-0.95997,0.63997-1.9626,0.95996-3.0078,0.95996-1.056,0-1.9147-0.36271-2.5762-1.0881-0.66146-0.72542-0.99219-1.6747-0.99219-2.8479,0-1.2054,0.34668-2.1841,1.04-2.936,0.69336-0.75195,1.5788-1.1279,2.6562-1.1279,0.87467,0,1.5733,0.28003,2.096,0.84008,0.52262,0.56007,0.78393,1.3307,0.78394,2.3118-0.00001,0.21355-0.005,0.37891-0.0161,0.4961h-5.1841v0.17578c0,1.0134,0.24267,1.8107,0.72803,2.3921,0.48535,0.58138,1.1387,0.87207,1.96,0.87207,0.74674,0,1.5841-0.30925,2.5122-0.92774zm-1.4238-3.1841,0-0.25635c-0.00001-0.65038-0.14405-1.1463-0.43213-1.4878-0.28809-0.34146-0.69874-0.5122-1.2319-0.51221-0.52279,0.00001-0.98153,0.2107-1.3762,0.63208-0.39469,0.4214-0.61336,0.96282-0.656,1.6243z"/><path d="m45.901,17.644,0-0.57617,0.94385-0.0796,0.27197-0.25635,0-9.792-1.2319,0,0-0.49609,1.9517-0.57568,0.60839,0,0,10.864,0.2876,0.25635,0.91211,0.0796,0,0.57617z"/><path d="m50.401,17.644,0-0.57617,0.94385-0.0796,0.27197-0.25635,0-9.792-1.2319,0,0-0.49609,1.9517-0.57568,0.60839,0,0,10.864,0.2876,0.25635,0.91211,0.0796,0,0.57617z"/><path d="m55.625,9.7881,0.60791,0,0,5.2959c0,0.57617,0.12532,1.0029,0.37598,1.2803,0.25064,0.27734,0.64273,0.41602,1.1763,0.41601,0.58658,0.00001,1.2052-0.16015,1.856-0.48046v-5.4238h-1.1362v-0.4961l1.856-0.59179h0.6084v6.9438l0.2876,0.25635,0.75195,0.0796v0.57617h-2.3677v-0.89599c-0.98145,0.7041-1.8455,1.0562-2.5923,1.0562-0.69336,0-1.224-0.20801-1.592-0.62402-0.36801-0.41602-0.55201-1.0241-0.552-1.8242v-4.48h-1.1358v-0.4961z"/><path d="m69.711,10.86c1.2158-0.71451,2.1331-1.0718,2.752-1.0718,0.63996,0,1.144,0.2107,1.512,0.63208,0.36799,0.42139,0.55199,1.0214,0.55201,1.8v4.5117l0.27197,0.25635,0.84814,0.0796v0.57617h-3.4883v-0.57617l0.75195-0.0796,0.28809-0.25635v-4.2397c-0.00001-1.0986-0.47999-1.6479-1.4399-1.648-0.48015,0.00001-1.0828,0.17595-1.8081,0.52783v5.3599l0.28809,0.25635,0.75195,0.0796v0.57617h-3.4077v-0.57617l0.76758-0.0796,0.27197-0.25635v-4.2397c-0.00001-1.0986-0.46925-1.6479-1.4077-1.648-0.51204,0.00001-1.1201,0.17595-1.8242,0.52783v5.3599l0.27197,0.25635,0.76806,0.0796v0.57617h-3.5039v-0.57617l0.86426-0.0796,0.27197-0.25635v-5.792h-1.1362v-0.49609l1.856-0.57568h0.60792v0.87988c1.0882-0.63997,1.9416-0.95996,2.56-0.95996,0.80013,0,1.3869,0.35726,1.7603,1.0718z"/><path d="m32.513,86.486,0,7,2.4375-2.4375,2.4375,2.4375,2.125-2.0938-2.4688-2.4375,2.4688-2.4688-7,0z"/><path d="m48.5,86.5-7,0,2.4375,2.4375-2.4375,2.4375,2.0938,2.125,2.4375-2.4688,2.4688,2.4688,0-7z"/><path d="m48.5,102.5,0-7-2.4375,2.4375l-2.437-2.438-2.125,2.094,2.469,2.436-2.469,2.47h7z"/><path d="m32.5,102.5,7,0-2.4375-2.4375l2.438-2.435-2.094-2.125-2.437,2.469-2.469-2.469v7z"/><path d="m12.513,93.486,0-7-2.4375,2.4375-2.4375-2.4375-2.125,2.0938,2.4687,2.4375-2.4687,2.4688,7,0z"/><path d="m14.5,93.5,7,0-2.4375-2.4375,2.4375-2.4375-2.0938-2.125-2.4375,2.4688-2.4688-2.4688,0,7z"/><path d="m14.5,95.5,0,7,2.4375-2.4375,2.4375,2.4375,2.125-2.0938-2.4688-2.4375,2.4688-2.4688-7,0z"/><path d="m12.5,95.5-7,0,2.4375,2.4375-2.4375,2.4375,2.0938,2.125,2.4375-2.4688,2.4688,2.4688,0-7z"/></g></svg>
@@ -0,0 +1,296 @@
+.pannellum_grab {
+ cursor:url('img/grab.png') 12 8,default;
+}
+
+.pannellum_grabbing {
+ cursor:url('img/grabbing.png') 12 8,default;
+}
+
+.pannellum_sprite {
+ background-image:url('img/sprites.png');
+}
+
+.pannellum_noselect {
+ -webkit-user-select:none;
+ -khtml-user-select:none;
+ -moz-user-select:none;
+ -o-user-select:none;
+ -ms-user-select:none;
+ user-select:none;
+}
+
+.pannellum_container {
+ cursor:inherit;
+}
+
+.pannellum_page {
+ position:relative;
+ height:100%;background-color:#666;background-image:-webkit-linear-gradient(-45deg,#999 24%,#666 26%,#666 49%,#999 51%,#999 74%,#666 76%,#666);background-image:-moz-linear-gradient(-45deg,#999 24%,#666 26%,#666 49%,#999 51%,#999 74%,#666 76%,#666);background-image:-o-linear-gradient(-45deg,#999 24%,#666 26%,#666 49%,#999 51%,#999 74%,#666 76%,#666);background-image:linear-gradient(-45deg,#999 24%,#666 26%,#666 49%,#999 51%,#999 74%,#666 76%,#666);background-size:20px 20px;
+}
+
+.pannellum_zoomcontrols {
+ position:absolute;
+ top:2px;
+ left:2px;
+ width:27px;
+ height:54px;
+ cursor:pointer;
+}
+
+.pannellum_zoom_in {
+ width:100%;
+ height:50%;
+ position:absolute;
+ top:0px;
+ background-position:0px -27px;
+}
+
+.pannellum_zoom_in:hover {
+ background-position:0px -54px;
+}
+
+.pannellum_zoom_out {
+ width:100%;
+ height:50%;
+ position:absolute;
+ bottom:0px;
+ background-position:-27px -27px;
+}
+
+.pannellum_zoom_out:hover {
+ background-position:-27px -54px;
+}
+
+.pannellum_logo {
+ background-position:0px 0px;
+ position:absolute;
+ top:2px;
+ right:2px;
+ width:81px;
+ height:27px;
+ display:none;
+ cursor:pointer;
+}
+
+.pannellum_logo a:link {
+ display:block;
+ width:81px;
+ height:27px;
+}
+
+.pannellum_panorama_info {
+ position:absolute;
+ bottom:2px;
+ width:100%;
+}
+
+.pannellum_title_box {
+ position:relative;
+ width:auto;
+ text-align:left;
+ font-family:serif;
+ font-size:20px;
+ background-color:rgba(0,0,0,0.7);
+ display:table;
+ padding-left:5px;
+ padding-right:15px;
+ color:#fff;
+ margin-bottom:3px;
+}
+
+.pannellum_author_box {
+ position:relative;
+ width:auto;
+ text-align:left;
+ font-family:serif;
+ font-size:12px;
+ background-color:rgba(0,0,0,0.7);
+ display:table;
+ padding-left:5px;
+ padding-right:30px;
+ color:#fff;
+}
+
+.pannellum_license {
+ float:right;
+ margin-left:8px;
+ height:15px;
+}
+
+.pannellum_load_box {
+ position:absolute;
+ top:50%;
+ left:50%;
+ width:194px;
+ height:144px;
+ margin:-75px 0px 0px -100px;
+ background-color:#eee;
+ background-color:rgba(255,255,255,.85);
+ border-radius: 10px;
+ border-style:solid;
+ border-width:3px;
+ border-color:#000;
+ text-align:center;
+ font-size:20px;
+ display:none;
+}
+
+.pannellum_load_indicator {
+ position:absolute;
+ top:50%;
+ left:50%;
+ width:20px;
+ height:20px;
+ margin:-10px 0px 0px -10px;
+ background-image:url('img/loading.svg');
+}
+
+.pannellum_load_button {
+ position:absolute;
+ top:50%;
+ left:50%;
+ width:200px;
+ height:100px;
+ margin:-50px 0px 0px -100px;
+ background-color:#222;
+ background-color:rgba(0,0,0,.7);
+ border-radius: 10px;
+ text-align:center;
+ font-family:serif;
+ font-size:20px;
+ display:none;
+ color:#fff;
+ cursor:pointer;
+}
+
+.pannellum_load_button:hover {
+ background-color:#eee;
+ background-color:rgba(255,255,255,.7);
+ color:#000;
+}
+
+.pannellum_load_button p {
+ display:table-cell;
+ vertical-align:middle;
+}
+
+.pannellum_nojavascript {
+ color:#000;
+ font-family:serif;
+ font-size:15px;
+ position:absolute;
+ top:50%;
+ left:50%;
+ width:194px;
+ height:144px;
+ margin:-75px 0px 0px -100px;
+ background-color:#eee;
+ background-color:rgba(255,255,255,.85);
+ border-radius: 10px;
+ border-style:solid;
+ border-width:3px;
+ border-color:#000;
+ display:table;
+ text-align:center;
+}
+
+.pannellum_nojavascript p {
+ display:table-cell;
+ vertical-align:middle;
+ padding:0px 5px 0px 5px;
+}
+
+.pannellum_logo_about {
+ position:relative;
+ background-position:0px 0px;
+ width:81px;
+ height:27px;
+ margin-left:auto;
+ margin-right:auto;
+}
+
+.pannellum_nocanvas {
+ color:#000;
+ font-family:serif;
+ font-size:15px;
+ position:absolute;
+ top:50%;
+ left:50%;
+ width:194px;
+ height:144px;
+ margin:-75px 0px 0px -100px;
+ background-color:#eee;
+ background-color:rgba(255,255,255,.85);
+ border-radius: 10px;
+ border-style:solid;
+ border-width:3px;
+ border-color:#000;
+ display:none;
+ text-align:center;
+}
+
+.pannellum_nocanvas p {
+ display:table-cell;
+ vertical-align:middle;
+ padding:0px 5px 0px 5px;
+}
+
+.pannellum_fullwindowtoggle_button {
+ position:absolute;
+ bottom:2px;
+ right:2px;
+ width:27px;
+ height:27px;
+ cursor:pointer;
+}
+
+.pannellum_fullwindowtoggle_button_inactive {
+ background-position:-27px -81px;
+}
+
+.pannellum_fullwindowtoggle_button_inactive:hover {
+ background-position:-27px -108px;
+}
+
+.pannellum_fullwindowtoggle_button_active {
+ background-position:0px -81px;
+}
+
+.pannellum_fullwindowtoggle_button_active:hover {
+ background-position:0px -108px;
+}
+
+/*.fullwindowtoggle_button:-moz-full-screen,.fullwindowtoggle_button:-webkit-full-screen,.fullwindowtoggle_button:fullscreen {
+ background-position:0px -81px;
+}
+
+.fullwindowtoggle_button:-moz-full-screen:hover,.fullwindowtoggle_button:-webkit-full-screen:hover,.fullwindowtoggle_button:fullscreen:hover {
+ background-position:0px -108px;
+}*/
+
+.pannellum_about {
+ font-size:11px;
+ line-height:11px;
+ color:#fff;
+ padding: 5px 8px 5px 8px;
+ background:rgba(0,0,0,0.7);
+ border-radius:3px;
+ position:absolute;
+ top:0px;
+ left:0px;
+ display:none;
+ opacity:0;
+ -moz-transition: opacity .3s ease-in-out;
+ -webkit-transition: opacity .3s ease-in-out;
+ -o-transition: opacity .3s ease-in-out;
+ -ms-transition: opacity .3s ease-in-out;
+ transition: opacity .3s ease-in-out;
+}
+
+.pannellum_about a:link, .pannellum_about a:visited {
+ color:#fff;
+}
+
+.pannellum_about a:hover, .pannellum_about a:active {
+ color:#eee;
+}
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>pannellum</title>
+ <meta charset="utf-8">
+ <link type="text/css" rel="Stylesheet" href="css/pannellum.css" />
+ <script type="text/javascript" src="js/Three.js"></script>
+ <script type="text/javascript" src="js/RequestAnimationFrame.js"></script>
+ <script type="text/javascript" src="js/pannellum.js"></script>
+ </head>
+
+ <body class="noselect">
+ <script>
+ var p = new Pannellum({
+ width:435,
+ height:330,
+ panorama:"titanic360/1_10.jpg",
+ autoload: "yes",
+ showFullToggle : false,
+ showZoom : false,
+ rotation: {
+ direction : "right",
+ speed: 0.10
+ }});
+ </script>
+ <br/>
+ <br/>
+ <script>
+ var p = new Pannellum({
+ width:650,
+ height:500,
+ panorama:"titanic360/1_4.jpg",
+ autoload: "no",
+ title : "Titanic staircase",
+ author: "Geilio Master",
+ license : 3
+ });
+ </script>
+ </body>
+</html>
@@ -0,0 +1,22 @@
+/**
+ * Provides requestAnimationFrame in a cross browser way.
+ * http://paulirish.com/2011/requestanimationframe-for-smart-animating/
+ */
+
+if ( !window.requestAnimationFrame ) {
+
+ window.requestAnimationFrame = ( function() {
+
+ return window.webkitRequestAnimationFrame ||
+ window.mozRequestAnimationFrame ||
+ window.oRequestAnimationFrame ||
+ window.msRequestAnimationFrame ||
+ function( /* function FrameRequestCallback */ callback, /* DOMElement Element */ element ) {
+
+ window.setTimeout( callback, 1000 / 60 );
+
+ };
+
+ } )();
+
+}
Oops, something went wrong.

0 comments on commit 2afcd70

Please sign in to comment.