Browse Source

Changed cursors and added custom cursors.

tags/1.0
Matthew Petroff 12 years ago
parent
commit
62c1915149
6 changed files with 98 additions and 0 deletions
  1. +36
    -0
      artwork-src/grab.svg
  2. +36
    -0
      artwork-src/grabbing.svg
  3. BIN
      src/css/img/grab.png
  4. BIN
      src/css/img/grabbing.png
  5. +21
    -0
      src/css/pannellum.css
  6. +5
    -0
      src/js/pannellum.js

+ 36
- 0
artwork-src/grab.svg View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="26"
height="26"
id="svg3848">
<defs
id="defs3850" />
<metadata
id="metadata3853">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(0,-1026.3622)"
id="layer1">
<path
d="m 15.329936,1046.8961 c 0,0 6.38434,-6.7321 4.64024,-8.2432 -1.7441,-1.511 -3.4674,1.0148 -3.4674,1.0148 0,0 3.61207,-5.7238 1.41024,-6.4925 -2.20183,-0.7687 -3.333629,4.3607 -3.333629,4.3607 0,0 0.872619,-5.7561 -1.05691,-5.7589 -1.92953,0 -1.57954,5.3912 -1.57954,5.3912 0,0 -0.57373,-4.5913 -2.1813307,-4.1233 -1.6076,0.4679 -0.57224,5.5129 -0.57224,5.5129 0,0 -1.57747,-4.8943 -2.92878,-3.7875 -1.35131,1.1068 0.25755,5.2518 0.57249,6.6247 0.83631,2.432 2.03322,2.9431 2.17178,5.5525"
id="path2998-1"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</svg>

+ 36
- 0
artwork-src/grabbing.svg View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="26"
height="26"
id="svg3848">
<defs
id="defs3850" />
<metadata
id="metadata3853">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(0,-1026.3622)"
id="layer1">
<path
d="m 15.309269,1046.8843 c 0,0 5.07184,-5.2946 3.76524,-6.7432 -1.3066,-1.4485 -2.5299,0.1398 -2.5299,0.1398 0,0 2.73707,-3.2863 0.53524,-4.055 -2.20183,-0.7687 -2.52113,1.2982 -2.52113,1.2982 0,0 0.81012,-2.1309 -1.11941,-2.1339 -1.92953,0 -1.51704,1.7662 -1.51704,1.7662 0,0 -0.26123,-1.5911 -1.86883,-1.1233 -1.6076002,0.4679 -0.8740202,2.1701 -0.8740202,2.1701 0,0 -0.65069,-1.5515 -2.002,-0.4447 -1.35131,1.1068 -0.67995,2.2518 -0.36501,3.6247 0.83631,2.432 2.03322,2.9431 2.17178,5.5525"
id="path2998-1-7"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</svg>

BIN
src/css/img/grab.png View File

Before After
Width: 26  |  Height: 26  |  Size: 439 B

BIN
src/css/img/grabbing.png View File

Before After
Width: 26  |  Height: 26  |  Size: 338 B

+ 21
- 0
src/css/pannellum.css View File

@@ -11,6 +11,20 @@ body
cursor:default;
}

.grab
{
cursor:url(img/grab.png) 12 8,default;
}
.grabbing
{
cursor:url(img/grabbing.png) 12 8,default;
}

#container
{
cursor:inherit;
}

#page
{
background-image:url('img/background.png');
@@ -25,6 +39,7 @@ body
left:2px;
width:27px;
height:54px;
cursor:pointer;
}

#zoom_in
@@ -66,6 +81,7 @@ body
height:27px;
background-image:url('img/sprites.png');
background-position:-54px -27px;
cursor:pointer;
}

#about_button:hover
@@ -107,6 +123,7 @@ body
height:17px;
margin-right:2px;
margin-top:-21px;
cursor:pointer;
}
#close_button:hover
{
@@ -123,6 +140,7 @@ body
width:81px;
height:27px;
display:none;
cursor:pointer;
}

#pannellum_logo a:link
@@ -232,6 +250,7 @@ body
-moz-user-select:none;
-o-user-select:none;
user-select:none;
cursor:pointer;
}
#load_button:hover
{
@@ -330,6 +349,7 @@ body
height:27px;
background-image:url('img/sprites.png');
background-position:-27px -81px;
cursor:pointer;
}
#fullwindowtoggle_button:hover
{
@@ -344,6 +364,7 @@ body
height:27px;
background-image:url('img/sprites.png');
background-position:0px -81px;
cursor:pointer;
}
#fullwindowtoggle_button_active:hover
{


+ 5
- 0
src/js/pannellum.js View File

@@ -128,6 +128,8 @@ function init()
var t=setTimeout("isTimedOut = true",500);
};
panoimage.src = getURLParameter('panorama');
document.getElementById('page').className = 'grab';
}

function onDocumentMouseDown(event)
@@ -141,6 +143,8 @@ function onDocumentMouseDown(event)
onPointerDownLon = lon;
onPointerDownLat = lat;
document.getElementById('page').className = 'grabbing';
}

function onDocumentMouseMove(event)
@@ -156,6 +160,7 @@ function onDocumentMouseMove(event)
function onDocumentMouseUp(event)
{
isUserInteracting = false;
document.getElementById('page').className = 'grab';
}

function onDocumentMouseWheel(event)


Loading…
Cancel
Save