PageSourceSearch

https://www.companisto.com/code/scripts/site-scripts.js?v=1700034796

js companisto.com collected 2026-10-04 00:28:24 UTC 13,162 bytes, 1 lines download raw bytes

1function eTd(t,e){document.write("<a href='mailto:"+e+"@"+t+"' title='e-mail us at: "+e+"@"+t+"'>"+e+"@"+t+"</a>")}function trim(t){return t=t.replace(/^\s+/,""),t=t.replace(/\s+$/,""),t=t.replace(/\s+/g," ")}function validate_email(t){if(!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(trim(jQuery("#"+t).val()))){alert("Please enter a valid e-mail address!");var e="da"}return"da"!=e}function validateEmail(t){var e=/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i;return!!e.test(t)}function calcAge(t){var e=+new Date(t);return~~((Date.now()-e)/315576e5)}function parseISO8601(t){var e,o=/^\s*(\d{4})-(\d\d)-(\d\d)\s*$/,n=new Date(NaN),r=o.exec(t);return r&&(e=+r[2],n.setFullYear(r[1],e-1,r[3]),e!=n.getMonth()+1&&n.setTime(NaN)),n}function stuffForResizeAndReady(){var t=$(".startupTypeItm").map(function(){return $(this).height()}).get(),e=Math.max.apply(null,t);$(".startupTypeItm").height(e)}function setTooltip(t,e,o){var n=$(e).offset();$("#tooltip").css("top",n.top+45),$("#tooltip").css("left",n.left),"open"==o&&$("#tooltip").show(),"close"==o&&$("#tooltip").hide()}function run_alert(t){setTimeout(function(){alert(t)},500)}function addCommas(t){t+="",x=t.split("."),x1=x[0],x2=x.length>1?"."+x[1]:"";for(var e=/(\d+)(\d{3})/;e.test(x1);)x1=x1.replace(e,"$1,$2");return x1+x2}function addDots(t){t+="",x=t.split("."),x1=x[0],x2=x.length>1?","+x[1]:"";for(var e=/(\d+)(\d{3})/;e.test(x1);)x1=x1.replace(e,"$1.$2");return x1+x2}function likeinnov(t,e,o){return $.ajax({type:"POST",url:"like-unlike",data:{liked:t,article_type:e,article_id:o}}).done(function(t){if("error"==t)alert("Some error occured!");else{var n=t.split("-");$("#like"+e+o).html(n[0]),$("#unlike"+e+o).html(n[1])}}),!1}function visitor_country_code(t){$.ajax({type:"POST",url:"country-request",data:{choice:t}}).done(function(t){"AT"==t?$(".servicePhoneNr"+t).fadeIn():$(".servicePhoneNrDE").fadeIn()})}function likeBlogArticle(t,e,o,n){return $.ajax({type:"POST",url:"like-unlike-blog",data:{liked:t,article_id:e}}).done(function(e){if("error"==e)alert("An error occured!");else{var r=e.split("-"),i="yes"==t?"heart-full.png":"heart-empty.png",s=o.getAttribute("onClick"),a=o.getElementsByTagName("img")[0].src;s=s.replace("likeBlogArticle('"+t,"likeBlogArticle('"+("yes"==t?"no":"yes")),a=a.split("/"),a.pop();var l=a.join("/")+"/"+i;n?$(".likeIcon").each(function(){$(this).find("sup")[0].innerHTML=r[0],$(this).find("img")[0].src=l,$(this).attr("onclick",s)}):(o.getElementsByTagName("sup")[0].innerHTML=r[0],o.getElementsByTagName("img")[0].src=l,o.setAttribute("onClick",s))}}),!1}function bookmarkBlogArticle(t,e,o){return console.log(o.innerHTML),$.ajax({type:"POST",url:"bookmark-unbookmark-blog",data:{bookmarked:t,article_id:e}}).done(function(e){if("error"==e)alert("Some error occured!");else{var n=(e.split("-"),"yes"==t?"bookmark-full.png":"bookmark-empty.png"),r=o.getAttribute("onClick"),i=o.getElementsByTagName("img")[0].src;r=r.replace("bookmarkBlogArticle('"+t,"bookmarkBlogArticle('"+("yes"==t?"no":"yes")),i=i.split("/"),i.pop();var s=i.join("/")+"/"+n;o.getElementsByTagName("img")[0].src=s,o.setAttribute("onClick",r)}}),!1}function facebookPopup(t){var e=620,o=400,n=parseInt(screen.availWidth/2-e/2),r=parseInt(screen.availHeight/2-o/2);popup=window.open(t,"facebook_popup","width=620,height=400,status=no,scrollbars=no,resizable=no,left="+n+",top="+r+"screenX="+n+",screenY="+r),popup.focus()}function CloseAndRefresh(){window.opener.location.href=window.opener.location.href,window.close()}function search(t,e){return t.length<=0?$(".search-results").stop().slideUp(200,function(){$(this).html("")}):void $.ajax({url:"search",type:"post",dataType:"html",data:{keywords:t,type:e}}).done(function(t){$(".search-results").stop().html(t).slideDown(200)})}function searchAcademy(t,e){return t=$(t),searchResultsBox=t.parents(".search-form-wrapper").parent().find(".search-results"),keywords=t.val(),keywords.length<=0?searchResultsBox.stop().slideUp(200,function(){$(this).html("")}):void $.ajax({url:"search-academy",type:"post",dataType:"html",data:{keywords:keywords,type:e}}).done(function(t){searchResultsBox.stop().html(t).slideDown(200)})}function resizeBlocksHeight(t,e){var o=0,n=0,r=0,i=[],s=$(t).length;$(t).each(function(t){if(i[o++]=$(this),r=parseFloat($(this)[0].getBoundingClientRect().height),n<r&&(n=r),o==e||t==s-1){for(var a=0;a<i.length;a++)i[a].css("min-height",n+"px");n=0,i=[],o=0}})}function academyInitCarousels(){var t=3;$(window).width()>=1200?t=3:$(window).width()<1200&&$(window).width()>=992?t=2:$(window).width()<992&&$(window).width()>=768?t=2:$(window).width()<768&&(t=1);
1var e=$(".recommended-articles-wrapper").find(".all-articles-article-container").length;return e<=t||($(".recommended-articles-wrapper").find(".item > .col-xs-12").removeClass("col-sm-6").removeClass("col-md-4"),void $(".slick-carousel-wrapper").slick({slidesToShow:t,dots:!0,arrows:!0,prevArrow:'<button type="button" data-role="none" class="slick-carousel-control-btn slick-prev">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-carousel-control-btn slick-next">Next</button>',responsive:[{breakpoint:1200,settings:{slidesToShow:2}},{breakpoint:1200,settings:{slidesToShow:2}},{breakpoint:992,settings:{slidesToShow:2,dots:!0}},{breakpoint:768,settings:{slidesToShow:1}}]}))}function setHoverImage(t){var e=t.attr("src");"-1"==e.indexOf("-hover.png")&&t.attr("src",e.replace(".png","-hover.png"))}function unsetHoverImage(t){var e=t.attr("src");"-1"!=e.indexOf("-hover.png")&&t.attr("src",e.replace("-hover.png",".png"))}function calculateNumberOfColumns(){var t=$(window).width();return t<768?1:t<992?2:3}function serverTime(){var t=null;return $.ajax({url:"https://www.companisto.com/servertime?rnd="+(Math.floor(99999*Math.random())+1),async:!1,dataType:"text",success:function(e){t=new Date(e)},error:function(e,o,n){t=new Date}}),t}function getOffsets(t){t=$(t);var e=t.offset(),o=e.top,n=$(document).width()-t.width()-e.left,r=$(document).height()-t.height()-e.top,i=e.left;return{top:o,right:n,bottom:r,left:i}}function getScrolls(){return{scrollTop:$(window).scrollTop(),scrollRight:$(document).width()-($(window).innerWidth()+$(window).scrollLeft()),scrollBottom:$(document).height()-($(window).innerHeight()+$(window).scrollTop()),scrollLeft:$(window).scrollLeft()}}function openPopup(t,e,o,n){var r=window.screen.width/2-(e/2+10),i=window.screen.height/2-(o/2+50),s="status=no,height="+o+",width="+e+",resizable=yes,left="+r+",top="+i+",screenX="+r+",screenY="+i+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no",n=n||"sharer";return window.open(t,n,s),!1}function updateCustomSocialCounts(t,e){$.post("get-social-share-counts",{url:t}
1,function(t){t=JSON.parse(t),$(e).each(function(){var e=$(this).attr("id").split("socials-")[1],o="undefined"!=typeof t[e]&&"undefined"!=typeof t[e].share_count?t[e].share_count:"";$(this).find(".socials-count").html(o)})})}function validateEmail(t){return!!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(t)}function seourlencode(t){return t=t.toLowerCase(),t=convert_umlauts(t),t=t.trim(),t=t.replace(/\s+/g," "),t=encodeURIComponent(t),t=t.replace(/%20/g,"-"),t=t.replace(/%../g,""),t=t.replace(/\,/g,"-"),t=t.replace(/\!/g,"-"),t=t.replace(/\~/g,"-"),t=t.replace(/\_/g,"-"),t=t.replace(/\./g,"-"),t=t.replace(/\"/g,"-"),t=t.replace(/\'/g,"-"),t=t.replace(/--+/g,"-"),"-"==t.substr(-1)&&(t=t.substr(-1)),t}function convert_umlauts(t){return t=t.replace("ä","ae"),t=t.replace("ö","oe"),t=t.replace("ü","ue")}function googleAnalyticsCrossDomainDecorateLinks(t){var e="undefined"!=typeof ga&&"function"==typeof ga;e?ga(function(){try{var e=[".equity_campaign[data-uri != '']","[data-ga-decorate='true']"],o=$(e.join(",")),n=ga.getAll(),r="",i="",s=!1;for(var a in n)s||n[a].get("trackingId")!=t||(r=n[a],i=r.get("linkerParam"),s=!0);o.each(function(){var t=$(this).attr("data-ga-decorate-property")||"data-uri",e=$(this).attr(t),o=e.indexOf("?")!==-1?"&":"?";e+=o+i,$(this).attr(t,e)})}catch(l){console.log("Analytics links decoration error: "+l)}}):"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname&&setTimeout(function(){googleAnalyticsCrossDomainDecorateLinks(t)},500)}$(window).load(function(){$(".numericInput").keypress(function(t){if((t.which<48||t.which>57)&&8!=t.which&&43!=t.which&&32!=t.which&&47!=t.which&&40!=t.which&&41!=t.which)return!1})}),$(document).ready(function(){headerElement=$(".new_header").length&&!$(".headerGreen").length?$(".new_header"):$(".headerGreen"),pageContentElement=$(".pageContent"),submenuHeight=$("#submenu").outerHeight(),pageContentInitialMargin=parseInt(pageContentElement.css("margin-top")),elementOffset=headerElement.offset().top+headerElement.outerHeight();var t=0;$("#more-startups-button").length&&(moreBtnOffset=parseInt($("#submenu").outerHeight())+parseInt($(".pageContent").css("padding-top"))+parseInt($("#more-startups-button").css("margin-top")),moreBtnOriginalTop=$("#more-startups-button").css("top"),moreBtnOriginalMarginTop=$("#more-startups-button").css("margin-top"),moreBtnOriginalPadding=$("#more-startups-button").css("padding"),moreBtnOriginalBackground=$("#more-startups-button").css("background"),moreBtnOriginalColor=$("#more-startups-button").css("color"),moreBtnTextOriginalWidth=$("#more-startups-button").find(".more-startups-text").css("width"),moreBtnTextOriginalMarginTop=$("#more-startups-button").find(".more-startups-text").css("margin-top")),$(window).scroll(function(){var e=headerElement.offset();if(void 0!=e){var o=$(window).scrollTop(),n=elementOffset-o,r=$(this).scrollTop()>t?"down":"up";"down"===r&&n<=0&&!$("#submenu").hasClass("stickyMenu")?($("#submenu").addClass("stickyMenu"),$(".pageContent").css("margin-top",pageContentInitialMargin+submenuHeight+"px"),$("#more-startups-button").length&&"fixed"!==$("#more-startups-button").css("position")&&$("#more-startups-button").addClass("stickyMoreStartupsBtn")):"up"===r&&n>='54'&&$("#submenu").hasClass("stickyMenu")&&($("#submenu").removeClass("stickyMenu"),$(".pageContent").css("margin-top",pageContentInitialMargin+"px"),$("#more-startups-button").length&&"fixed"===$("#more-startups-button").css("position")&&$("#more-startups-button").removeClass("stickyMoreStartupsBtn"))}t=$(this).scrollTop()})}),$(window).on("resize",stuffForResizeAndReady),$(document).on("ready",stuffForResizeAndReady),$(document).ready(function(){$("#tooltip_for_testing").hover(function(){setTooltip("content",this,"open")}),$("#tooltip_for_testing").mouseout(function(){setTooltip("content",this,"close")}),$(".submenu:not(.noslidetoggle) .active-section-mobile").click(function(){if($(window).width()<993)return $(".submenu:not(.noslidetoggle) li").slideToggle(),$(this).find(".glyphicon").toggleClass("glyphicon-chevron-up").toggleClass("glyphicon-chevron-down"),!1}),$('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').append(' <sup class="glyphicon glyphicon-info-sign"></sup>');var t=$.fn.tooltip.Constructor.prototype.show;$.fn.popover.Constructor.prototype.show,$.fn.popover.Constructor.prototype.show=function(){t.call(this),this.options.callback&&this.options.callback()},$('[data-toggle="popover"]').popover({html:!0,callback:function(){addthis.init(),addthis.layers.refresh()}}).click(function(t){t.preventDefault(),$(this).focus()})}),jQuery.fn.scrollIntoView=function(t,e,o){t="undefined"!=typeof t?t:0,e="undefined"==typeof e||e,o="undefined"!=typeof o?o:400;var n=Math.floor($(this).offset().top),r=Math.floor(n-t);return 0==e?$(window).scrollTop(r):$("html, body").animate({scrollTop:r},o),$(this)},jQuery.fn.visibility=function(){var t=$(window).scrollTop(),e=t+$(window).height(),o=e-t,n=$(this).offset().top,r=n+$(this).height(),i=r-n,s=$(window).scrollLeft(),a=s+$(window).width(),l=a-s,c=$(this).offset().left,u=c+$(this).width(),p=u-c,d=r<t||n>
1e||u<s||c>a,h=n>=t&&r<=e,f=c>=s&&u<=a,g=h&&f,m=n<t&&r<=e&&r>=t||n>=t&&r>e&&n<=e||n<t&&r>e&&i>o,w=c<s&&u<=a&&u>=s||c>=s&&u>a&&c<=a||c<s&&u>a&&p>l,y=m&&w||m&&f||h&&w;return{isNotInViewport:d,isPartlyInViewport:y,isFullyInViewport:g}},jQuery.fn.isPartlyInViewport=function(){return!$(this).is(":hidden")&&!!$(this).visibility().isPartlyInViewport},jQuery.fn.isInViewport=function(){return!$(this).is(":hidden")&&!(!$(this).visibility().isPartlyInViewport&&!$(this).visibility().isFullyInViewport)},jQuery.fn.isFullyInViewport=function(){return!$(this).is(":hidden")&&!!$(this).visibility().isFullyInViewport},jQuery.fn.isNotInViewport=function(){return!$(this).is(":visible")&&!!$(this).visibility().isNotInViewport},jQuery.fn.makeStickyOnScrollPast=function(t){void 0==t&&(t="sticky");var e=$(this);return $(document).ready(function(){var o=e.offset().top+parseInt(e.css("margin-top")),n=e.outerHeight(!0),r=$('<div class="height-compensating-element"></div>');r.css("height",n+"px").addClass("height-compensating-element-"+parseInt(1e5*Math.random())),$(window).scroll(function(){var n=$(window).scrollTop(),i=o-n;i<=0?(e.addClass(t),r.insertBefore(e)):(e.removeClass(t),r.remove())})}),$(this)},jQuery.fn.remainingDistanceFromRight=function(){var t=$(this).offset().left+$(this).outerWidth(),e=$(window).width()-t;return e};

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.