PageSourceSearch

https://www.slm.lighting/hsvo/itres/_resources/js/lib/module.breadcrumb.js

js slm.lighting collected 2026-10-03 01:55:09 UTC 1,983 bytes, 60 lines download raw bytes

1/****************************** siemens' new web appearance script *****/
2/****************************** Copyright (c) 2007-2010 Siemens AG *****/
3/***********************************************************************/
4/*********************************************** module breadcrumb *****/
5/***********************************************************************/
6/************************************** author virtual identity AG *****/
7/* $LastChangedDate: 2010-01-12 16:33:21 +0100 (Di, 12 Jan 2010) $ *****/
8
9function init_breadcrumb() {
10	if ($("breadcrumb")) {
11
12		var item_y = null;
13		var isInFollowingLine = false;
14
15		$A($("breadcrumb").getElementsByTagName("dd")).each(function(item) {
16			item = $(item);
17
18			//calculate the y-offset position of the current breadcrumb item
19			if(item_y == null) {
20				item_y = Position.cumulativeOffset(item)[1];
21			}
22			if(item_y < Position.cumulativeOffset(item)[1]) {
23				isInFollowingLine = true;
24			}
25
26			//reduce the z-index of the current item
27			if(isInFollowingLine) {
28				item.setStyle({'zIndex':parseInt(item.getStyle('zIndex')) - 1 });
29			}
30
31			//breadcrumb JS hover only needed for IE<7
32			if (Info.browser.isIEpre7) {
33				var curBreadcrumbLayer = item.down("div");
34
35				if(typeof curBreadcrumbLayer == "undefined") {
36					// special treatment IE5.5
37					curBreadcrumbLayer = item.getElementsByTagName("DIV")[0];
38				}
39
40				if(curBreadcrumbLayer) {
41					var iframeLining = new IframeLining(curBreadcrumbLayer);
42
43					item.observe("mouseover", function(e) {
44						this.addClassName("active");
45						iframeLining.show();
46					}.bindAsEventListener(item));
47
48					item.observe("mouseout", function(e) {
49						var relatedTarget = $(e.relatedTarget || e.toElement);
50
51						if(relatedTarget!=this && relatedTarget.childOf(this)==false) {
52							this.removeClassName("active");
53							iframeLining.hide();
54						}
55					}.bindAsEventListener(item));
56				}
57			}
58		});
59	}
60}

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.