PageSourceSearch

https://www.edmundoptics.eu/Assets/javascript/jquery.cluetip.pack.js?v=0

js edmundoptics.eu collected 2026-10-02 17:29:11 UTC 11,227 bytes, 1 lines download raw bytes

1(function (n) { function c(n) { return typeof n == "undefined" ? !0 : n.length == 0 || n == "" || n.replace(/\s/g, "") == "" || !/[^\s]/.test(n) || /^\s*$/.test(n) ? !0 : !1 } var t, i, u, f, e, r, o, s, h; n.fn.cluetip = function (l, a) { return typeof l == "object" && (a = l, l = null), this.each(function (v) { var p = n(this), y = n.extend(!0, {}, n.fn.cluetip.defaults, a || {}, n.metadata ? p.metadata() : n.meta ? p.data() : {}), pt = !1, lt = parseInt(y.cluezIndex, 10) - 1, ot = !1, fi = 0, ni, st, b, at, ui; if (n("#cluetip").length || (i = n('<div id="cluetip-inner"><\/div>'), f = n('<h2 class="yellowBkgd" style="text-align:center;padding: 3px 0 3px 0;margin:0"><\/h2>'), u = n('<div id="cluetip-outer"><\/div>').append(i).prepend(f), t = n('<div id="cluetip"><\/div>').css({ zIndex: y.cluezIndex }).append(u).append('<div id="cluetip-extra"><\/div>')[s](h).hide(), n('<div id="cluetip-waitimage"><\/div>').css({ position: "absolute", zIndex: lt - 1 }).insertBefore("#cluetip").hide(), t.css({ position: "absolute", zIndex: lt }), u.css({ position: "relative", zIndex: lt + 1 }), e = n('<div id="cluetip-arrows" class="cluetip-arrows"><\/div>').css({ zIndex: lt + 1 }).appendTo("#cluetip")), ni = y.dropShadow ? +y.dropShadowSteps : 0, !r) { for (r = n([]), st = 0; st < ni; st++) r = r.add(n("<div><\/div>").css({ zIndex: lt - st - 1, opacity: .1, top: 1 + st, left: 1 + st })); r.css({ position: "absolute", backgroundColor: "#000" }).prependTo(t) } if (b = p.attr(y.attribute), at = y.cluetipClass, !b && !y.splitTitle && !l) return !0; y.local && y.localPrefix && (b = y.localPrefix + b); y.local && y.hideLocal && n(b + ":first").hide(); var tt = parseInt(y.topOffset, 10), ft = parseInt(y.leftOffset, 10), it, ti, wt = isNaN(parseInt(y.height, 10)) ? "auto" : /\D/g.test(y.height) ? y.height : y.height + "px", bt, ei, rt, g, vt, kt, ii = isNaN(parseInt(y.width, 10)) ? 275 : parseInt(y.width, 10), k = ii + (parseInt(t.css("paddingLeft"), 10) || 0) + (parseInt(t.css("paddingRight"), 10) || 0) + ni, yt = this.offsetWidth, ut, w, nt, ht, ct, d = y.attribute != "title" ? p.attr(y.titleAttribute) : ""; y.splitTitle && (d == undefined && (d = ""), ct = d.split(y.splitTitle), d = ct.shift()); y.escapeTitle && (c(d) || (d = d.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<"))); var dt = function (r) { var f, h, s, e, c; if (!y.onActivate(p)) return !1; if (ot = !0, t.removeClass().css({ width: ii }), b == p.attr("href") && p.css("cursor", y.cursor), p.attr("title", ""), y.hoverClass && p.addClass(y.hoverClass), ei = rt = p.offset().top, ut = p.offset().left, nt = r.pageX, vt = r.pageY, p[0].tagName.toLowerCase() != "area" && (bt = n(document).scrollTop(), ht = n(window).width()), y.positionBy == "fixed" ? (w = yt + ut + ft, t.css({ left: w })) : (w = yt > ut && ut > k || ut + yt + k + ft > ht ? ut - k - ft : yt + ut + ft, (p[0].tagName.toLowerCase() == "area" || y.positionBy == "mouse" || yt + k > ht) && (nt + 20 + k > ht ? (t.addClass(" cluetip-" + at), w = nt - k - ft >= 0 ? nt - k - ft - parseInt(t.css("marginLeft"), 10) + parseInt(i.css("marginRight"), 10) : nt - k / 2) : w = nt + ft), f = w < 0 ? r.pageY + tt : r.pageY, t.css({ left: w > 0 && y.positionBy != "bottomTop" ? w : nt + k / 2 > ht ? ht / 2 - k / 2 : Math.max(nt - k / 2, 0) })), ti = n(window).height(), l) typeof l == "function" && (l = l(p[0])), i.html(l), et(f); else if (ct) { for (h = ct.length, i.empty(), s = 0; s < h; s++) s == 0 ? i.html(ct[s]) : i.append('<div class="split-body">' + ct[s] + "<\/div>"); et(f) } else y.local || b.indexOf("#") == 0 ? y.local && (c = n(b + ":eq(" + v + ")").clone(!0).show(), i.html(c), et(f)) : /\.(jpe?g|tiff?|gif|png)$/i.test(b) ? (i.html('<img src="' + b + '" alt="' + d + '"/>'), et(f)) : pt && y.ajaxCache ? (i.html(pt), et(f)) : (e = y.ajaxSettings, e.cache = !1, e.url = b, e.beforeSend = function () { u.children().empty(); y.waitImage && n("#cluetip-waitimage").css({ top: vt + 20, left: nt + 20 }).show() }, e.error = function () { ot && i.html("<i>sorry,the contents could not be loaded<\/i>") }, e.success = function (n) { pt = y.ajaxProcess(n); ot && i.html(pt) }, e.complete = function () { o = n("#cluetip-inner img").length; o && !n.browser.opera ? n("#cluetip-inner img").load(function () { o--; o < 1 && (n("#cluetip-waitimage").hide(), ot && et(f)) }) : (n("#cluetip-waitimage").hide(), ot && et(f)) }, n.ajax(e)) }, et = function (o) { function a() { } var l, h, s, c; t.addClass("cluetip-" + at); y.truncate && (l = i.text().slice(0, y.truncate) + "...", i.html(l)); d ? f.show().html(d) : y.showTitle ? f.show().html(" ") : f.hide(); y.sticky && (h = n('<div id="cluetip-close"><a href="#">
1' + y.closeText + "<\/a><\/div>"), y.closePosition == "bottom" ? h.appendTo(i) : y.closePosition == "title" ? h.prependTo(f) : h.prependTo(i), h.click(function () { return ri(), !1 }), y.mouseOutClose ? n.fn.hoverIntent && y.hoverIntent ? t.hoverIntent({ over: a, timeout: y.hoverIntent.timeout, out: function () { h.trigger("click") } }) : t.hover(a, function () { h.trigger("click") }) : t.unbind("mouseout")); s = ""; u.css({ overflow: wt == "auto" ? "visible" : "auto", height: wt }); it = wt == "auto" ? Math.max(t.outerHeight(), t.height()) : parseInt(wt, 10); g = rt; kt = bt + ti; y.positionBy == "fixed" ? g = rt - y.dropShadowSteps + tt : w < nt && Math.max(w, 0) + k > nt || y.positionBy == "bottomTop" ? rt + it + tt > kt && vt - bt > it + tt ? (g = vt - it - tt, s = "top") : (g = vt + tt, s = "bottom") : g = rt + it + tt > kt ? it >= ti ? bt : kt - it - tt : p.css("display") == "block" || p[0].tagName.toLowerCase() == "area" || y.positionBy == "mouse" ? o - tt : rt - y.dropShadowSteps; s == "" && (s = w < ut ? "left" : "right"); t.css({ top: g + "px" }).removeClass().addClass("clue-" + s + "-" + at).addClass(" cluetip-" + at); y.arrows ? (c = rt - g - y.dropShadowSteps, e.css({ top: /(left|right)/.test(s) && w >= 0 && c > 0 ? c + "px" : /(left|right)/.test(s) ? 0 : "" }).show()) : e.hide(); r.hide(); t.hide()[y.fx.open](y.fx.open != "show" && y.fx.openSpeed); y.dropShadow && r.css({ height: it, width: ii }).show(); n.fn.bgiframe && t.bgiframe(); y.delayedClose > 0 && (fi = setTimeout(ri, y.delayedClose)); y.onShow(t, i) }, gt = function () { ot = !1; n("#cluetip-waitimage").hide(); (!y.sticky || /click|toggle/.test(y.activation)) && (ri(), clearTimeout(fi)); y.hoverClass && p.removeClass(y.hoverClass) }, ri = function () { u.parent().hide().removeClass(); y.onHide(t, i); p.removeClass("cluetip-clicked"); d && p.attr(y.titleAttribute, d); p.css("cursor", ""); y.arrows && e.css({ top: "" }) }; /click|toggle/.test(y.activation) ? p.click(function (i) { return t.is(":hidden") || !p.is(".cluetip-clicked") ? (dt(i), n(".cluetip-clicked").removeClass("cluetip-clicked"), p.addClass("cluetip-clicked")) : gt(i), this.blur(), !1 }) : y.activation == "focus" ? (p.focus(function (n) { dt(n) }), p.blur(function (n) { gt(n) })) : (p.click(function () { if (p.attr("href") && p.attr("href") == b && !y.clickThrough) return !1 }), ui = function (n) { if (y.tracking == !0) { var i = w - n.pageX, r = g ? g - n.pageY : rt - n.pageY; p.mousemove(function (n) { t.css({ left: n.pageX + i, top: n.pageY + r }) }) } }, n.fn.hoverIntent && y.hoverIntent ? p.mouseover(function () { p.attr("title", "") }).hoverIntent({ sensitivity: y.hoverIntent.sensitivity, interval: y.hoverIntent.interval, over: function (n) { dt(n); ui(n) }, timeout: y.hoverIntent.timeout, out: function (n) { gt(n); p.unbind("mousemove") } }) : p.hover(function (n) { dt(n); ui(n) }, function (n) { gt(n); p.unbind("mousemove") })) }) }; n.fn.cluetip.defaults = { width: 375, height: "auto", cluezIndex: 97, positionBy: "auto", topOffset: 15, leftOffset: 15, local: !0, localPrefix: null, hideLocal: !0, attribute: "rel", titleAttribute: "title", splitTitle: "", escapeTitle: !0, showTitle: !1, cluetipClass: "jtip", hoverClass: "", waitImage: !0, cursor: "pointer", arrows: !1, dropShadow: !1, dropShadowSteps: 6, sticky: !1, mouseOutClose: !0, activation: "hover", clickThrough: !1, tracking: !1, delayedClose: 0, closePosition: "bottom", closeText: "close", truncate: 0, fx: { open: "show", openSpeed: "" }, hoverIntent: { sensitivity: 3, interval: 50, timeout: 0 }, onActivate: function () { return !0 }, onShow: function () { }, onHide: function () { }, ajaxCache: !0, ajaxProcess: function (n) { return c(n) || (n = n.replace(/<s(cript|tyle)(.|\s)*?\/s(cript|tyle)>/g, "").replace(/<(link|title)(.|\s)*?\/(link|title)>/g, "")), n }, ajaxSettings: { dataType: "html" }, debug: !1 }; s = "appendTo"; h = "body"; n.cluetip = {}; n.cluetip.setup = function (n) { n && n.insertionType && n.insertionType.match(/appendTo|prependTo|insertBefore|insertAfter/) && (s = n.insertionType); n && n.insertionElement && (h = n.insertionElement) } })(jQuery), function (n) { n.fn.hoverIntent = function (t, i) { var r = { sensitivity: 7, interval: 100, timeout: 0 }; r = n.extend(r, i ? { over: t, out: i } : t); var u, f, e, o, s = function (n) { u = n.pageX; f = n.pageY }, h = function (t, i) { if (i.hoverIntent_t = clearTimeout(i.hoverIntent_t), Math.abs(e - u) + Math.abs(o - f) < r.sensitivity) return n(i).unbind("mousemove", s), i.hoverIntent_s = 1, r.over.apply(i, [t]); e = u; o = f; i.hoverIntent_t = setTimeout(function () { h(t, i) }, r.interval) }, l = function (n, t) { return t.hoverIntent_t = clearTimeout(t.hoverIntent_t), t.hoverIntent_s = 0, r.out.apply(t, [n]) }, c = function (t) { for (var u = (t.type == "mouseover" ? t.fromElement : t.toElement) || t.relatedTarget, f, i; u && u != this;) try { u = u.parentNode } catch (t) { u = this } if (u == this) return !1; f = jQuery.extend({}, t); i = this; i.hoverIntent_t && (i.hoverIntent_t = clearTimeout(i.hoverIntent_t)); t.type == "mouseover" ? (e = f.pageX, o = f.pageY, n(i).bind("mousemove", s), i.hoverIntent_s != 1 && (i.hoverIntent_t = setTimeout(function () { h(f, i) }, r.interval))) : (n(i).unbind("mousemove", s), i.hoverIntent_s == 1 && (i.hoverIntent_t = setTimeout(function () { l(f, i) }, r.timeout))) }; return this.mouseover(c).mouseout(c) } }(jQuery), function (n) { n.fn.bgIframe = n.fn.bgiframe = function (t) { if (n.browser.msie && /6.0/.test(navigator.userAgent)) { t = n.extend({ top: "auto", left: "auto", width: "auto", height: "auto", opacity: !0, src: "javascript:false;" }, t || {}); var i = function (n) { return n && n.constructor == Number ? n + "px" : n }, r = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + t.src + '"style="display:block;position:absolute;z-index:-1;' + (t.opacity !== !1 ? "filter:Alpha(Opacity='0');" : "") + "top:" + (t.top == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')" : i(t.top)) + ";left:" + (t.left == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')" : i(t.left)) + ";
1width:" + (t.width == "auto" ? "expression(this.parentNode.offsetWidth+'px')" : i(t.width)) + ";height:" + (t.height == "auto" ? "expression(this.parentNode.offsetHeight+'px')" : i(t.height)) + ';"/>'; return this.each(function () { n(">iframe.bgiframe", this).length == 0 && this.insertBefore(document.createElement(r), this.firstChild) }) } return this } }(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.