Lines Matching +full:0 +full:e

3 <svg version="1.1" width="1200" height="214" onload="init(evt)" viewBox="0 0 1200 214" xmlns="http:…
7 <linearGradient id="background" y1="0" y2="1" x1="0" x2="0" >
13 text { font-family:Verdana; font-size:12px; fill:rgb(0,0,0); }
33 svg = document.getElementsByTagName("svg")[0];
34 searching = 0;
45 window.addEventListener("click", function(e) {
46 var target = find_group(e.target);
49 if (e.ctrlKey === false) return;
50 e.preventDefault();
73 else if (e.target.id == "unzoom") clearzoom();
74 else if (e.target.id == "search") search_prompt();
75 else if (e.target.id == "ignorecase") toggle_ignorecase();
80 window.addEventListener("mouseover", function(e) {
81 var target = find_group(e.target);
86 window.addEventListener("mouseout", function(e) {
87 var target = find_group(e.target);
93 window.addEventListener("keydown",function (e) {
94 if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) {
95 e.preventDefault();
98 else if (e.ctrlKey && e.keyCode === 73) {
99 e.preventDefault();
108 for (var i = 0; i < paramsarr.length; ++i) {
110 if (!tmp[0] || !tmp[1]) continue;
111 params[tmp[0]] = decodeURIComponent(tmp[1]);
121 uri = uri.substring(0, uri.length - 1);
123 uri = window.location.href.split('?')[0];
128 if (children.length) return children[0];
136 function orig_save(e, attr, val) {
137 if (e.attributes["_orig_" + attr] != undefined) return;
138 if (e.attributes[attr] == undefined) return;
139 if (val == undefined) val = e.attributes[attr].value;
140 e.setAttribute("_orig_" + attr, val);
142 function orig_load(e, attr) {
143 if (e.attributes["_orig_"+attr] == undefined) return;
144 e.attributes[attr].value = e.attributes["_orig_" + attr].value;
145 e.removeAttribute("_orig_"+attr);
147 function g_to_text(e) {
148 var text = find_child(e, "title").firstChild.nodeValue;
151 function g_to_func(e) {
152 var func = g_to_text(e);
157 function update_text(e) {
158 var r = find_child(e, "rect");
159 var t = find_child(e, "text");
161 var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,"");
171 var sl = t.getSubStringLength(0, txt.length);
179 for (var x = start; x > 0; x = x-2) {
180 if (t.getSubStringLength(0, x + 2) <= w) {
181 t.textContent = txt.substring(0, x) + "..";
189 function zoom_reset(e) {
190 if (e.attributes != undefined) {
191 orig_load(e, "x");
192 orig_load(e, "width");
194 if (e.childNodes == undefined) return;
195 for (var i = 0, c = e.childNodes; i < c.length; i++) {
199 function zoom_child(e, x, ratio) {
200 if (e.attributes != undefined) {
201 if (e.attributes.x != undefined) {
202 orig_save(e, "x");
203 e.attributes.x.value = (parseFloat(e.attributes.x.value) - x - 10) * ratio + 10;
204 if (e.tagName == "text")
205 e.attributes.x.value = find_child(e.parentNode, "rect[x]").attributes.x.value + 3;
207 if (e.attributes.width != undefined) {
208 orig_save(e, "width");
209 e.attributes.width.value = parseFloat(e.attributes.width.value) * ratio;
213 if (e.childNodes == undefined) return;
214 for (var i = 0, c = e.childNodes; i < c.length; i++) {
218 function zoom_parent(e) {
219 if (e.attributes) {
220 if (e.attributes.x != undefined) {
221 orig_save(e, "x");
222 e.attributes.x.value = 10;
224 if (e.attributes.width != undefined) {
225 orig_save(e, "width");
226 e.attributes.width.value = parseInt(svg.width.baseVal.value) - (10 * 2);
229 if (e.childNodes == undefined) return;
230 for (var i = 0, c = e.childNodes; i < c.length; i++) {
248 for (var i = 0; i < el.length; i++) {
249 var e = el[i];
250 var a = find_child(e, "rect").attributes;
255 if (0 == 0) {
263 e.classList.add("parent");
264 zoom_parent(e);
265 update_text(e);
269 e.classList.add("hide");
275 e.classList.add("hide");
278 zoom_child(e, xmin, ratio);
279 update_text(e);
288 for(var i = 0; i < el.length; i++) {
319 for (var i = 0; i < el.length; i++) {
335 searching = 0;
349 var maxwidth = 0;
350 for (var i = 0; i < el.length; i++) {
351 var e = el[i];
352 var func = g_to_func(e);
353 var rect = find_child(e, "rect");
366 rect.attributes.fill.value = "rgb(230,0,230)";
390 var count = 0;
392 var lastw = 0;
424 <rect x="0.0" y="0" width="1200.0" height="214.0" fill="url(#background)" />