Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved jTip images, also removed another un-needed function from jtip.js

  • Loading branch information...
commit a48f76537373c185d99d04ea48bdf55e5948c63c 1 parent e2ad408
Stuart Loxton authored
View
0  demo/images/arrow_left.gif → src/arrow_left.gif
File renamed without changes
View
0  demo/images/arrow_right.gif → src/arrow_right.gif
File renamed without changes
View
6 src/jtip.css
@@ -1,5 +1,5 @@
#JT_arrow_left{
- background-image: url(../images/arrow_left.gif);
+ background-image: url(arrow_left.gif);
background-repeat: no-repeat;
background-position: left top;
position: absolute;
@@ -11,7 +11,7 @@
}
#JT_arrow_right{
- background-image: url(../images/arrow_right.gif);
+ background-image: url(arrow_right.gif);
background-repeat: no-repeat;
background-position: left top;
position: absolute;
@@ -34,7 +34,7 @@
}
.JT_loader{
- background-image: url(../images/loader.gif);
+ background-image: url(loader.gif);
background-repeat: no-repeat;
background-position: center center;
width:100%;
View
11 src/jtip.js
@@ -34,6 +34,7 @@ jTip2 = {
var de = document.documentElement;
var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
var position = jQuery(reference).position();
+ var offset = jQuery(reference).offset();
var hasArea = w - position.left;
var clickElementy = position.top - 3; //set y position
@@ -48,7 +49,7 @@ jTip2 = {
if(hasArea>((params['width']*1)+75)){
jQuery("body").append("<div id='JT' style='width:"+params['width']*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'>"+title+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");//right side
var arrowOffset = jQuery(reference).width() + 20;
- var clickElementx = position.left + arrowOffset; //set x position
+ var clickElementx = offset.left + arrowOffset; //set x position
}else{
jQuery("body").append("<div id='JT' style='width:"+params['width']*1+"px'><div id='JT_arrow_right' style='left:"+((params['width']*1)+1)+"px'></div><div id='JT_close_right'>"+title+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");//left side
var clickElementx = position.left - ((params['width']*1) + 15); //set x position
@@ -116,12 +117,4 @@ function parseQuery ( query ) {
Params[key] = val;
}
return Params;
-}
-
-function blockEvents(evt) {
- if(evt.target){
- evt.preventDefault();
- }else{
- evt.returnValue = false;
- }
}
View
0  demo/images/loader.gif → src/loader.gif
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.