1// Place any jQuery/helper plugins in here. 2 3/* 4 slick-animation.js 5 6 Version: 0.3.3 Beta 7 Author: Marvin Hübner 8 Docs: https://github.com/marvinhuebner/slick-animation 9 Repo: https://github.com/marvinhuebner/slick-animation 10 */ 11!function (a) { 12 a.fn.slickAnimation = function () { 13 function n(a, n, t, i, o) { o = "undefined" != typeof o ? o : !1, 1 == n.opacity ? (a.addClass(t), a.addClass(i)) : (a.removeClass(t), a.removeClass(i)), o && a.css(n) } function t(a, n) { return a ? 1e3 * a + 1e3 : n ? 1e3 * n : a || n ? 1e3 * a + 1e3 * n : 1e3 } function i(a, n, t) { 14 var i = ["animation-" + n, "-webkit-animation-" + n, "-moz-animation-" + n, "-o-animation-" + n, "-ms-animation-" + n], o = {} 15 i.forEach(function (a) { o[a] = t + "s" }), a.css(o) 16 } var o = a(this), e = o.find(".slick-list .slick-track > div"), s = o.find('[data-slick-index="0"]'), r = "animated", c = { opacity: "1" }, d = { opacity: "0" } 17 return e.each(function () { 18 var e = a(this) 19 e.find("[data-animation-in]").each(function () { 20 var u = a(this) 21 u.css(d) 22 var l = u.attr("data-animation-in"), f = u.attr("data-animation-out"), h = u.attr("data-delay-in"), m = u.attr("data-duration-in"), y = u.attr("data-delay-out"), C = u.attr("data-duration-out") 23 f ? (s.length > 0 && e.hasClass("slick-current") && (n(u, c, l, r, !0), h && i(u, "delay", h), m && i(u, "duration", m), setTimeout(function () { n(u, d, l, r), n(u, c, f, r), y && i(u, "delay", y), C && i(u, "duration", C) }, t(h, m))), o.on("afterChange", function (a, o, s) { e.hasClass("slick-current") && (n(u, c, l, r, !0), h && i(u, "delay", h), m && i(u, "duration", m), setTimeout(function () { n(u, d, l, r), n(u, c, f, r), y && i(u, "delay", y), C && i(u, "duration", C) }, t(h, m))) }), o.on("beforeChange", function (a, t, i) { n(u, d, f, r, !0) })) : (s.length > 0 && e.hasClass("slick-current") && (n(u, c, l, r, !0), h && i(u, "delay", h), m && i(u, "duration", m)), o.on("afterChange", function (a, t, o) { e.hasClass("slick-current") && (n(u, c, l, r, !0), h && i(u, "delay", h), m && i(u, "duration", m)) }), o.on("beforeChange", function (a, t, i) { n(u, d, l, r, !0) })) 24 }) 25 }), this 26 } 27 28}(jQuery) 29 30 31 32// SHOWMAIL 33function ShowMail(user, domain1, domain2, subj) { 34 var email = user+'@'+domain1+'.'+domain2; 35 if (ShowMail.arguments[3]) name = ShowMail.arguments[3]; 36 else name = email; 37 var subj = ShowMail.arguments[4];
38 document.write('<a href="mailto:'+email+'?subject='+subj+'">'+name+'</a>'); 39} 40 41// SHOWHIDE 42function ShowHide(obj) 43{ 44 var el = document.getElementById(obj); 45 if (el.style.display == 'block') 46 el.style.display = 'none'; 47 else 48 el.style.display = 'block'; 49} 50 51// CHECKFORM 52function repl(val) { 53var find=val.value.match(/[^0-9()-_+]/g); 54if (find!=null) { 55val.value = val.value.replace(/[^0-9()-_+]/g, ''); 56} 57} 58 59function CheckForm(obj, elems) 60 { 61 var element, pattern; 62 for (var i = 0; i < obj.elements.length; i++) 63 { 64 element = obj.elements[i]; 65 if (elems != undefined) 66 if (elems.join().indexOf(element.type) < 0) continue; 67 if (!element.getAttribute("check_message")) continue; 68 if (pattern = element.getAttribute("check_pattern")) 69 { 70 pattern = new RegExp(pattern, "g"); 71 if (!pattern.test(element.value)) 72 { 73 alert(element.getAttribute("check_message")); 74 element.focus(); 75 return false; 76 } 77 } 78 else if(/^\s*$/.test(element.value)) 79 { 80 alert(element.getAttribute("check_message")); 81 element.focus(); 82 return false; 83 } 84 } 85 return true; 86} 87 88 89// ADD BOOKMARK 90function addBookmark(url, title) 91{ 92 if (!url) url = location.href; 93 if (!title) title = "RUSSCO - РоÑÑийÑкое обÑеÑÑво клиниÑеÑкой онкологии"; 94 95 //Gecko 96 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, ""); 97 //IE4+ 98 else if (typeof window.external == "object") window.external.AddFavorite(url, title); 99 //Opera7+ 100 else if (window.opera && document.createElement) 101 { 102 var a = document.createElement('A'); 103 if (!a) return false; //IF Opera 6 104 a.setAttribute('rel','sidebar'); 105 a.setAttribute('href',url); 106 a.setAttribute('title',title); 107 a.click(); 108 } 109 else return false; 110 111 return true; 112} 113 114 115// ÐÐÐÐÐÐÐÐÐРСÐÐЫТÐЯ 116// ÐапÑимеÑ, обÑабоÑка неÑколÑÐºÐ¸Ñ ÑÑнкÑий пÑи загÑÑзке окна: addEvent(window,'load',function1,false) 117function addEvent(elm, evType, fn, useCapture) 118{ 119 if (elm.addEventListener) { 120 elm.addEventListener(evType, fn, useCapture); 121 return true; 122 } 123 else if (elm.attachEvent) { 124 var r = elm.attachEvent('on' + evType, fn); 125 return r; 126 } 127 else { 128 elm['on' + evType] = fn; 129 } 130} 131 132 133// PRELOADIMAGES 134function MM_swapImgRestore() { //v3.0 135 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 136} 137 138function MM_preloadImages() { //v3.0 139 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 140 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 141 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 142} 143 144function MM_findObj(n, d) { //v4.01 145 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 146 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 147 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 148 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 149 if(!x && d.getElementById) x=d.getElementById(n); return x; 150} 151 152function MM_swapImage() { //v3.0 153 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 154 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 155} 156 157 158// HTTPREQUEST 159function createHttpRequest() { 160var httpRequest; 161var browser = navigator.appName; 162if (browser == "Microsoft Internet Explorer") { 163 httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); 164 } 165 else { 166 httpRequest = new XMLHttpRequest(); 167 } 168return httpRequest; 169} 170 171function createHttpRequest() 172{ 173 var httpRequest; 174 try { 175 httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); 176 } catch (e) { 177 try { 178 httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); 179 } catch (E) { 180 httpRequest = false; 181 } 182 } 183 if (!httpRequest && typeof XMLHttpRequest!='undefined') { 184 httpRequest = new XMLHttpRequest(); 185 } 186 return httpRequest; 187} 188 189function sendRequest(file, _resultId, getRequestProc) { 190resultId = _resultId; 191document.getElementById(resultId).innerHTML = 'ÐодождиÑе, Ð¸Ð´ÐµÑ Ð·Ð°Ð³ÑÑзка...'; 192httpRequest.open('get', file); 193httpRequest.onreadystatechange = getRequestProc; 194httpRequest.send(null); 195}
196 197function getRequest() { 198if (httpRequest.readyState == 4) { 199document.getElementById(resultId).innerHTML = httpRequest.responseText; 200} 201} 202 203var httpRequest = createHttpRequest(); 204var resultId = ''; 205 206 207// OPEN A POPUP WINDOW 208function openwin(url,w,h,s) { 209 var scrl; 210 if (s) { scrl="scrollbars=yes,"; w = w+16; } 211 else { scrl="scrollbars=no,"; } 212 213 if (!w) w = 640; 214 if (!h) h = 480; 215 216 fenster = window.open(url,"_blank",scrl+"resizable=yes,width="+w+",height="+h+",screenX=50,screenY=50,top=25,left=25"); 217 fenster.focus(); 218}
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.