1/* global vars */ 2var isIE = $.browser.msie; var isIE8 = $.browser.msie && ($.browser.version.indexOf(8) != -1); var isIE9 = $.browser.msie && ($.browser.version.indexOf(9) != -1); 3var isMobile = false; if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.
3substr(0,4))) isMobile = true; 4var touch = ('ontouchstart' in document.documentElement); 5var currentURL = (document.URL.substr(document.URL.length - 1) == "/") ? document.URL : document.URL + "/"; 6var currentPage = (currentURL.split("/")[currentURL.split("/").length - 2]); 7var d = new Date(); var this_year = d.getFullYear(); 8var queryString = currentPage; 9var ui; 10var vw = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); 11var vh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); 12var vh_mobile = window.innerHeight * 0.01; 13document.documentElement.style.setProperty('--vh', `${vh_mobile}px`); 14var current_section = queryString.replace("","").replace("#",""); 15/* */ 16 17/* window/document states */ 18$(window).on("scroll touchmove",function(){ scrollEffects(); }); 19$(window).on("load",function() { 20 if (isIE8 || isIE9) $("body").html("").html("<div id='ie_message'>This site uses web technologies that your browser doesn't support.<br/>Please visit the site using <a href='https://www.google.com/intl/en/chrome/browser/'>Google Chrome</a>, <a href='http://www.mozilla.org/en-US/firefox/new/'>Mozilla Firefox</a>, <a href='https://www.apple.com/safari/'>Safari</a> or <a href='http://www.opera.com/'>Opera</a>.<br/>Sorry for the inconvenience :-/</div>"); 21 else { 22 $.getJSON("ui.json", function(data) { ui = data; }).complete(function(html) { 23 24 $("#top").click(function() { $('html,body').stop().animate({ scrollTop: 0 }, 1000, 'easeInOutExpo'); }); 25 $("#logo,#mobile_logo").click(function() { location.href = "."; }); 26 $(".lang").click(function() { setLang($(this).attr("set")); }); 27 $(".carousel_left").click(function() { var current = $(this).parent().parent().find(".gallery_photo:not(.hidden)").attr("src"); var previous_img = $(".gallery_photo[src*='" + current + "']").prev(); if ($(previous_img).hasClass("gallery_photo")) { $(".gallery_photo[src*='" + current + "']").addClass("hidden"); $(".gallery_photo[src*='" + current + "']").prev().removeClass("hidden"); } }); 28 $(".carousel_right").click(function() { var current = $(this).parent().parent().find(".gallery_photo:not(.hidden)").attr("src"); var next_img = $(".gallery_photo[src*='" + current + "']").next(); if ($(next_img).hasClass("gallery_photo")) { $(".gallery_photo[src*='" + current + "']").addClass("hidden"); $(".gallery_photo[src*='" + current + "']").next().removeClass("hidden"); } }); 29 $("#mobile_menu_opener").click(function() { $("#mobile_menu").addClass("opened"); }); 30 $("#close_mobile_menu").click(function() { $("#mobile_menu").removeClass("opened"); }); 31 32 $("#newsletter_submit").click(function() { checkForm("newsletter_form"); }); 33 $("#contact_submit").click(function() { checkForm("contact_form"); }); 34 $("#volunteering_submit").click(function() { checkForm("volunteering_form"); }); 35 $("#cart_submit").click(function() { checkForm("cart_form"); }); 36 37 $("#cart").click(function() { if ($("#cart_form_container").hasClass("opened")) $("#cart_form_container").removeClass("opened"); else $("#cart_form_container").addClass("opened"); }) 38 $(".add_to_cart").click(function() { add_to_cart($(this).attr("id").replace("add_to_cart_","")); }); 39 40 $("#close_video_popup").click(function() { close_video(); }) 41 42 $(".service_tab").click(function() { $(".service_tab.opened").removeClass("opened"); $(this).addClass("opened"); $(".service_tab_content.opened").removeClass("opened"); $("#" + $(this).attr("id").replace("_tab","_actual_tab")).addClass("opened"); $("#services_tabs_content").css("height",$("#services_tabs_content > .service_tab_content.opened").css("height")); }); 43 $("#services_tabs_content").css("height",$("#services_tabs_content > .service_tab_content.opened").css("height")); 44 45 $(".actual_library_items").each(function() { if ($(this).find(".library_item").length != 0) { if ($(this).hasClass("video")) $(this).css("width",$(this).find(".library_item").length * 500 + "px"); else $(this).css("width",$(this).find(".library_item").length * 350 + "px"); } else $(this).css("width","100%"); }); 46 $(".library_left").each(function() { $(this).click(function() { var which = $(this).attr("data-for"); $("#" + which).animate({ scrollLeft: "-=300" }, 500); }); }); 47 $(".library_right").each(function() { $(this).click(function() { var which = $(this).attr("data-for"); $("#" + which).animate({ scrollLeft: "+=300" }, 500); }); }); 48 49 $(".project_image:not(.inside)").each(function() { $(this).click(function() { location.href = $(this).attr("data-href"); }); }); 50 51 $(document).keyup(function(e) { 52 if (e.key === "Escape") { close_video(); } 53 }); 54 55 if (in_page("wip")) { 56 57 } else if (in_page("about")) { 58 $(".person").each(function() { $(this).click(function(e) { 59 var which = $(this).attr("id").split("_")[1]; 60 if ($(".person_bio.opened").length == 0) { 61 $(this).addClass("selected"); 62 $(".person_bio").removeClass("opened"); 63 $("#person_bio_" + which).addClass("opened"); 64 $([document.documentElement, document.body]).animate({ scrollTop: $("#person_" + which).offset().top }, 500); 65 } 66 else { 67 if (which == $(".person_bio.opened").attr("id").split("_")[2]) { $(this).removeClass("selected"); $(".person_bio").removeClass("opened"); } 68 else { $(".person").removeClass("selected"); $(this).addClass("selected"); $(".person_bio").removeClass("opened"); $("#person_bio_" + which).addClass("opened"); setTimeout(function() { $([document.documentElement, document.body]).animate({ scrollTop: $("#person_" + which).offset().top }, 500); }, 250); } 69 } 70 }); }); 71 } else if (in_page("residences")) { 72 var dot_1 = $("#residences_subsection_1 p:nth-child(2)").offset(); 73 var dot_2 = $("#residences_subsection_3 .text").offset(); 74 var dot_3 = $("#residences_subsection_4 .text").offset(); 75 var dot_4 = $("#residences_subsection_5 .text").offset(); 76 $('#residences_line_1').attr({'x1':dot_1.left - 39,'y1':dot_1.top + 25,'x2':dot_2.left - 39,'y2':dot_2.top + 5}); 77 $('#residences_line_2').attr({'x1':dot_2.left - 39,'y1':dot_2.top + 25,'x2':dot_3.left - 39,'y2':dot_3.top + 5}); 78 $('#residences_line_3').attr({'x1':dot_3.left - 39,'y1':dot_3.top + 25,'x2':dot_4.left - 39,'y2':dot_4.top + 5}); 79 } else if (in_page("shop")) { 80 $(".item_image").click(function() { 81 var nextImg = $(this).parent().find(".all_images > .shop_img[data-src='" + $(this).attr("data-img") + "']").next(); 82 if (nextImg.length == 0) nextImg = $(this).parent().find(".all_images").children(":first-child"); 83 $(this).attr("style","background-image:url('" + nextImg.attr("data-src") + "?1757926445');").attr("data-img",nextImg.attr("data-src")); 84 }); 85 } 86 87 if (touch) { 88 disableHover(); 89 } else { 90 $("*[theTitle]").titlesBehaviour(); 91 } 92 93 setTimeout(function() { $("#loader").fadeOut(500, function() { $(this).remove(); }); }, 250); 94 }); 95 } 96}).resize(function() { 97 var vh_mobile = window.innerHeight * 0.01; 98 document.documentElement.style.setProperty('--vh', `${vh_mobile}px`); 99 var personimgwidth = $(".person_img:first-child").width(); 100 document.documentElement.style.setProperty('--personimg', `${personimgwidth}px`); 101 if (!touch) { 102 103 } else { 104 105 } 106}); 107 108/* */ 109function show_video(which) { $("#actual_video > iframe").attr("src",$("#actual_video > iframe").attr("src").replace("{change_me}",which)); $("#video_popup").addClass("opened"); } 110function close_video() { $("#actual_video > iframe").attr("src","https://www.youtube.com/embed/{change_me}"); $("#video_popup").removeClass("opened"); }
111function empty_cart() { phpFunctionCall({"function":"empty_cart"},"function","$('#cart > span').html('0'); $('#cart_message').html('');"); } 112function add_to_cart(item) { phpFunctionCall({"function":"add_to_cart","item":item,"size":$("#size_" + item).val(),"quantity":$("#quantity_" + item).val()},"function","console.log(ajaxCallRequest.responseText); if (ajaxCallRequest.responseText != 0) { $('#cart_message').html(ajaxCallRequest.responseText); $('#cart > span').html(Math.abs($('#cart > span').html()) + 1); $('#success_icon').addClass('opened'); scrollToPosition(500,2000); setTimeout(function() { $('#success_icon').removeClass('opened'); },2500); }"); } 113function set_filter(which) { phpFunctionCall({"function":"set_news_filters","filter":which},"function","location.href = 'news';"); } 114function set_library_filter(which) { phpFunctionCall({"function":"set_library_filters","filter":which},"function","location.reload();"); } 115function set_projects_filter(which) { phpFunctionCall({"function":"set_projects_filters","filter":which},"function","location.reload();"); } 116function checkEmail(email) { var atPos = email.indexOf("@"); var dotPos = email.lastIndexOf("."); if ((atPos < 1) || (dotPos < atPos + 2) || (dotPos + 2 >= email.length) || (email == "")) return false; else return true; } 117function checkForm(which){ 118 var theAlert = ""; 119 if (which == "newsletter_form"){ 120 var oh_no = $("#newsletter_oh_no_you_will_not").val(); 121 var newsletter_GDPR = $("#newsletter_GDPR").is(':checked'); 122 var newsletter_email = $("#newsletter_email").val(); 123 if (!checkEmail(newsletter_email)) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÎ¹ÏάγεÏε Îνα ÏÏÏÏÏ email / Please enter a correct email.\n"; 124 if (newsletter_email !== newsletter_email.toLowerCase()) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÏÏηÏιμοÏοιήÏεÏε μÏνο Ïεζά γÏάμμαÏα ÏÏο email ÏÎ±Ï / Please use only lowercase letters on your email.\n"; 125 if (newsletter_GDPR == false) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÏιβεβαιÏÏÏε ÏÏÏ ÏÏ Î½Î±Î¹Î½ÎµÎ¯Ïε ÏÏÎ¿Ï Ï ÏÏÎ¿Ï Ï GDPR / Please confirm your approval to the GDPR rules.\n" 126 } else if (which == "volunteering_form") { 127 var oh_no = $("#volunteering_oh_no_you_will_not").val(); 128 var volunteering_GDPR = $("#volunteering_GDPR").is(':checked'); 129 var volunteering_fullname = $("#volunteering_fullname").val(); 130 var volunteering_email = $("#volunteering_email").val(); 131 if (volunteering_fullname.length == 0) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ Î¼ÏληÏÏÏÏε Ïο Ï
131νομά ÏÎ±Ï / Please enter your full name.\n"; 132 if (!checkEmail(volunteering_email)) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÎ¹ÏάγεÏε Îνα ÏÏÏÏÏ email / Please enter a correct email.\n"; 133 if (volunteering_GDPR == false) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÏιβεβαιÏÏÏε ÏÏÏ ÏÏ Î½Î±Î¹Î½ÎµÎ¯Ïε ÏÏην ÏÏÎ¿Ï Ï GDPR / Please confirm your approval to the GDPR rules.\n" 134 } else if (which == "contact_form") { 135 var oh_no = $("#contact_oh_no_you_will_not").val(); 136 var contact_fullname = $("#contact_fullname").val(); 137 var contact_email = $("#contact_email").val(); 138 var contact_message = $("#contact_message").val(); 139 if (contact_fullname.length == 0) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ Î¼ÏληÏÏÏÏε Ïο Ïνομά ÏÎ±Ï / Please enter your full name.\n"; 140 if (!checkEmail(contact_email)) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÎ¹ÏάγεÏε Îνα ÏÏÏÏÏ email / Please enter a correct email.\n"; 141 if (contact_message.length == 0) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÎ¹ÏάγεÏε Ïο Î¼Î®Î½Ï Î¼Î¬ ÏÎ±Ï / Please enter your message.\n"; 142 } else if (which == "cart_form") { 143 var oh_no = $("#cart_oh_no_you_will_not").val(); 144 var contact_fullname = $("#cart_fullname").val(); 145 var contact_email = $("#cart_email").val(); 146 var contact_address = $("#cart_address").val(); 147 var contact_phone = $("#cart_phone").val(); 148 var contact_message = $("#cart_message").val(); 149 if (contact_fullname.length == 0) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ Î¼ÏληÏÏÏÏε Ïο Ï
149νομά ÏÎ±Ï / Please enter your full name.\n"; 150 if (!checkEmail(contact_email)) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÎ¹ÏάγεÏε Îνα ÏÏÏÏÏ email / Please enter a correct email.\n"; 151 if (contact_address.length == 0) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ Î¼ÏληÏÏÏÏε Ïην διεÏÎ¸Ï Î½Ïή ÏÎ±Ï / Please enter your address.\n"; 152 if (contact_phone.length == 0) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÏÏ Î¼ÏληÏÏÏÏε Ïο ÏηλÎÏÏÎ½Ï ÏÎ±Ï / Please enter your telephone number.\n"; 153 if (contact_message.length == 0) theAlert += "- ΠαÏÎ±ÎºÎ±Î»Ï ÎµÎ¹ÏάγεÏε Ïο Î¼Î®Î½Ï Î¼Î¬ ÏÎ±Ï / Please enter your message.\n"; 154 } 155 if (theAlert != "") { alert("Î ÏÎÏει να διοÏθÏÏεÏε Ïα ÏαÏακάÏÏ Î³Î¹Î± να μÏοÏÎÏεÏε να ÏÏ Î½ÎµÏίÏεÏε / Please correct the following to continue: \n\n" + theAlert); return false; } 156 else { if (oh_no == "") $("#" + which).submit(); return true; } 157} 158 159/* custom behaviours */ 160function scrollEffects(){ 161 var scrolled = $(window).scrollTop(); 162 if (!touch) { if (scrolled < 50) $("#top").removeClass("opened"); else $("#top").addClass("opened"); } 163} 164function in_page(which) { if (which != ".") { if (document.URL.indexOf(which) != -1) return true; else return false; } else { if (currentPage == "") return true; else return false; } } 165function supportsSVG() { return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"); } 166function scrollToAnchor(name,duration) { if (name == "") $('html,body').stop().animate({ scrollTop: 0 }, duration, 'easeInOutExpo'); else $('html,body').stop().animate({ scrollTop: $("a[name='" + name + "']").offset().top + "px" }, duration, 'easeInOutExpo'); } 167function scrollToPosition(pos,duration) { if (pos == "") $('html,body').stop().animate({ scrollTop: 0 }, duration, 'easeInOutExpo'); else $('html,body').stop().animate({ scrollTop: pos + "px" }, duration, 'easeInOutExpo'); } 168function showHide(id) { if ($("#" + id).is(":visible")) $("#" + id).slideUp(250); else $("#" + id).slideDown(250); } 169jQuery.fn.extend({ 170 titlesBehaviour: function() { $(this).each(function() { $(this).mouseover(function() { ddrivetip($(this).attr("theTitle"),'#000'); }); $(this).mouseout(function() { hideddrivetip(); }); }); }, 171 isInViewport : function() { var elementTop = $(this).offset().top; var elementBottom = elementTop + $(this).outerHeight(); var viewportTop = $(window).scrollTop(); var viewportBottom = viewportTop + $(window).height(); return elementBottom > viewportTop && elementTop < viewportBottom; } 172}); 173Array.prototype.move = function (from,to) { this.splice(to,0,this.splice(from,1)[0]); }; 174function timeToSeconds(time) { var parts = time.split(":"); var seconds = 60 * parseInt(parts[0]) + parseInt(parts[1]); return seconds; } 175function searchTimeInArrayOfObjects(key,arr){ for (var i=0; i < arr.length; i++) { if (arr[i].time === key) { return arr[i]; } } } 176/* */ 177 178/* generic custom ajax call [params: json object] */ 179function GetXmlHttpObject(){ var xmlHttp = null; try { xmlHttp = new XMLHttpRequest(); } catch (e) { try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } 180function ajaxCall(page, params, whatToDoNext, nextActionParam){ 181 var theurl = page + ".php"; var count = 0; for (var key in params) { if (count++ == 0) theurl += "?"; if (key == "imgsDeleted") { theurl += key + "=" + global_imgsDeleted + "&"; global_imgsDeleted = ""; } else theurl += key + "=" + params[key] + "&"; } if (theurl.charAt(theurl.length - 1) == "&") theurl = theurl.slice(0, -1); 182 ajaxCallRequest = GetXmlHttpObject(); 183 if (ajaxCallRequest == null) { alert ("Your browser does not support AJAX!"); return; } 184 if (whatToDoNext == "response") ajaxCallRequest.onreadystatechange = function() { if ((ajaxCallRequest.readyState == 4) && (ajaxCallRequest.status == 200)) $("#" + nextActionParam).html(ajaxCallRequest.responseText); } 185 else if (whatToDoNext == "function") ajaxCallRequest.onreadystatechange = function() { if ((ajaxCallRequest.readyState == 4) && (ajaxCallRequest.status == 200)) eval(nextActionParam); } 186 else if (whatToDoNext == "page") ajaxCallRequest.onreadystatechange = function() { if ((ajaxCallRequest.readyState == 4) && (ajaxCallRequest.status == 200)) location.href = nextActionParam; } 187 if (whatToDoNext == "return") { ajaxCallRequest.open("GET",theurl,false); ajaxCallRequest.send(); return ajaxCallRequest.responseText; } 188 else { ajaxCallRequest.open("GET",theurl,true); ajaxCallRequest.send(); } 189} 190function phpFunctionCall(params,callback,callbackParams){ 191 if (callback != null) { 192 if (callback == "return") return ajaxCall("_functions", params, callback, callbackParams); 193 else ajaxCall("_functions", params, callback, callbackParams); 194 } else ajaxCall("_functions", params); } 195/* */ 196 197/* ajax calls*/ 198function setLang(lang){ phpFunctionCall({ "function":"set_lang", "lang":lang }, "function", "location.reload(true);"); } 199function getLang() { return phpFunctionCall({ "function":"get_lang" }, "return"); } 200function setSessionVar(thevar,theval) { phpFunctionCall({"function":"set_session_var","var":thevar,"view":theval},"function","location.reload();"); } 201/* */ 202 203/* generic and external functions */ 204function disableHover() { if (touch) { try { for (var si in document.styleSheets) { var styleSheet = document.styleSheets[si]; if (!styleSheet.rules) continue; for (var ri = styleSheet.rules.length - 1; ri >= 0; ri--) { if (!styleSheet.rules[ri].selectorText) continue; if (styleSheet.rules[ri].selectorText.match(':hover')) { stylesheet.deleteRule(ri); } } } } catch (ex) {} } } /* taken from http://stackoverflow.com/questions/23885255/how-to-remove-ignore-hover-css-style-on-touch-devices */ 205/* Cool DHTML tooltip script - Dynamic Drive DHTML code library (www.dynamicdrive.com) - This notice MUST stay intact for legal use - Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code */ 206var offsetxpoint = -60; var offsetypoint = 20; var ie = document.all; var ns6 = document.getElementById && !document.all; var enabletip = false;
207if (ie || ns6) var tipobj = document.all ? document.all["dhtmltooltip"] : document.getElementById ? document.getElementById("dhtmltooltip") : ""; 208function ietruebody() { return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body; } 209function ddrivetip(thetext, thecolor, thewidth) { if (ns6 || ie) { if (typeof thewidth != "undefined") tipobj.style.width = thewidth + "px"; if (typeof thecolor != "undefined" && thecolor != "") tipobj.style.backgroundColor = thecolor; tipobj.innerHTML = thetext; enabletip = true; return false; } } 210function positiontip(e) { if (enabletip) { var curX = (ns6) ? e.pageX : event.clientX + ietruebody().scrollLeft; var curY = (ns6) ? e.pageY : event.clientY + ietruebody().scrollTop; var rightedge = ie && !window.opera ? ietruebody().clientWidth - event.clientX - offsetxpoint : window.innerWidth - e.clientX - offsetxpoint - 20; var bottomedge = ie && !window.opera ? ietruebody().clientHeight - event.clientY - offsetypoint : window.innerHeight - e.clientY - offsetypoint - 20; var leftedge = (offsetxpoint < 0) ? offsetxpoint * (-1) : -1000; if (rightedge < tipobj.offsetWidth) tipobj.style.left = ie ? ietruebody().scrollLeft + event.clientX - tipobj.offsetWidth + "px" : window.pageXOffset + e.clientX - tipobj.offsetWidth + "px"; else if (curX < leftedge) tipobj.style.left = "5px"; else tipobj.style.left = curX + offsetxpoint + "px"; if (bottomedge < tipobj.offsetHeight) tipobj.style.top = ie ? ietruebody().scrollTop + event.clientY - tipobj.offsetHeight - offsetypoint + "px" : window.pageYOffset + e.clientY - tipobj.offsetHeight - offsetypoint + "px"; else tipobj.style.top = curY + offsetypoint + "px"; tipobj.style.visibility = "visible"; } } 211function hideddrivetip() { if (ns6 || ie) { enabletip = false; tipobj.style.visibility = "hidden"; tipobj.style.left = "-1000px"; tipobj.style.backgroundColor = ''; tipobj.style.width = ''; } } 212document.onmousemove = positiontip; 213/* */
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.