Nextrek
Diff Revisions
779
vs
780
for /legal-map/js/articolo.js
|
@@ -15,9 +15,13 @@ |
15 |
15 |
|
|
16 |
16 |
|
//lunghezza freccia tramite teorema di Pitagora |
17 |
17 |
|
var arrowLenght = Math.sqrt(Math.pow(diffLeft, 2)+Math.pow(diffTop, 2)); |
|
18 |
+ |
|
|
19 |
+ |
//angolo nell'asse Y da impostare alla freccia |
18 |
20 |
|
var angleDeg = ((180/Math.PI)*Math.asin(diffLeft/arrowLenght))-90; |
|
21 |
+ |
|
19 |
22 |
|
arrowEl.css("left", -((arrowLenght/2)+5)); |
20 |
23 |
|
arrowEl.css("transform", "skewY("+angleDeg+"deg) scaleX("+(arrowLenght/10)+")"); |
|
24 |
+ |
arrowEl.css("-ms-transform", "skewY("+angleDeg+"deg) scaleX("+(arrowLenght/10)+")"); //IE9 |
21 |
25 |
|
arrowEl.css("top", popupEl.outerHeight()/2); |
22 |
26 |
|
|
23 |
27 |
|
} |
|
@@ -163,7 +167,7 @@ |
163 |
167 |
|
changeTabArticolo($(this), folder, filename); |
164 |
168 |
|
}); |
165 |
169 |
|
|
166 |
|
- |
$("#articolo-"+folder+"_"+filename+" a").click(function (e) { |
|
170 |
+ |
/*$("#articolo-"+folder+"_"+filename+" a").click(function (e) { |
167 |
171 |
|
e.preventDefault(); |
168 |
172 |
|
e.stopImmediatePropagation(); |
169 |
173 |
|
var href = $(this).attr("href"); |
|
@@ -172,9 +176,9 @@ |
172 |
176 |
|
var filenamePopup = splittedHref[2]; |
173 |
177 |
|
|
174 |
178 |
|
showLinkPopup($("#articolo-"+folder+"_"+filename), $(this), folderPopup, filenamePopup); |
175 |
|
- |
}); |
|
179 |
+ |
});*/ |
176 |
180 |
|
|
177 |
|
- |
/*$("#articolo-"+folder+"_"+filename+" a").hover( |
|
181 |
+ |
$("#articolo-"+folder+"_"+filename+" a").hover( |
178 |
182 |
|
function (e) { //handlerIn (appare popup) |
179 |
183 |
|
e.preventDefault(); |
180 |
184 |
|
e.stopImmediatePropagation(); |
|
@@ -191,7 +195,7 @@ |
191 |
195 |
|
var folderPopup = splittedHref[0]+"_"+splittedHref[1]; |
192 |
196 |
|
var filenamePopup = splittedHref[2]; |
193 |
197 |
|
$("#articolo-popup-"+folderPopup+"-"+filenamePopup).hide(); |
194 |
|
- |
});*/ |
|
198 |
+ |
}); |
195 |
199 |
|
} |
196 |
200 |
|
|
197 |
201 |
|
if ($("#articolo-"+folder+"_"+filename).length > 0) { |