Mistři v programování na #hovnokod

Fuck eu cookies

/*! fucking-eu-cookies v0.2.0-beta2  */
!function(a,b){function c(){return a[n]=a[n]||{},x=f(w,a[n]),g("init",w.version),-1!==b.cookie.indexOf(l)?void g(o,r):navigator[s]?(i("auto-"+s),void g(o,"plugin "+s)):a.addEventListener?void("complete"===b.readyState?setTimeout(e):(b.addEventListener(t,d,!1),a.addEventListener(u,d,!1))):void g(o,"unsupported browser")}function d(){b.removeEventListener(t,d,!1),a.removeEventListener(u,d,!1),e()}function e(){g(p);var a='<span>%t <a href="%l">%m</a></span> <button>%a</button><a class="fucking-triangle" href="%g" target="_blank" title="%n"><img src="%u"></a>';a=a.replace("%t",x.l18n.text).replace("%l",x.l18n.link).replace("%m",x.l18n.more).replace("%a",x.l18n.accept).replace("%g",x.l18n.deprecationLink).replace("%n",x.l18n.deprecationTitle).replace("%u",m);var c=b.body,d=b.head,e=document.createElement("style");e.type="text/css",e.appendChild(b.createTextNode(w.css));var f=b.createElement("div");f.className=k+" fucking-priority",f.innerHTML=a,d.appendChild(e);var i,j=x.options.insertTo;"body-begin"==j?c.insertBefore(f,c.firstChild):"body-end"==j?c.insertBefore(f,null):(i=document.getElementById(j))&&i.insertBefore(f,null),f.getElementsByTagName("button")[0].addEventListener(v,function(){h(f)});var l=f.getElementsByTagName("a")[0];l.addEventListener(v,function(){g("open-more")}),x.options.popupMore&&(l.setAttribute("target","_blank"),l.setAttribute("rel","noopener noreferrer"))}function f(a,b){var c={};for(key in a)"undefined"==typeof b[key]?c[key]=a[key]:"object"==typeof b[key]?c[key]=f(a[key],b[key]):c[key]=b[key];return c}function g(b,c){"function"==typeof x.options.callback&&x.options.callback(b,c);var d=x.options.dataLayerName;d&&a[d]&&"function"==typeof a[d].push&&a[d].push({event:k,action:b,label:c})}function h(a){a.parentNode.removeChild(a),g(q,r),i()}function i(a){"undefined"==typeof a&&(a="1");var c=new Date;c.setFullYear(c.getHours()+1);var d="; expires="+c.toGMTString();b.cookie=l+"="+encodeURIComponent(a)+d+"; path=/"}function j(){console&&console.error("DEPRECATION: Fucking EU cookie lišta bude k 1. 9. 2018 ukončena, viz https://github.com/jakubboucek/fucking-eu-cookies/issues/14")}var k="fucking-eu-cookies",l="fucking-eu-cookies-deprecated",m="https://d2z9iq901qkqk8.cloudfront.net/triangle-red.svg",n="fucking_eu_config",o="no-show",p="show",q="hide",r="consent",s="CookiesOK",t="DOMContentLoaded",u="load",v="click",w={version:"0.2.0-beta2",css:".fucking-eu-cookies{display:flex;flex-wrap:nowrap;justify-content:center;background:Menu;align-items:center;color:GrayText;padding:5px;z-index:1000;position:relative}.fucking-eu-cookies,.fucking-eu-cookies span,.fucking-eu-cookies a{font-size:12px;font-family:'Arial','Helvetica',sans-serif}.fucking-eu-cookies span{padding-right:5px}.fucking-eu-cookies a,.fucking-eu-cookies a:hover,.fucking-eu-cookies a:visited,.fucking-eu-cookies a:active,.fucking-eu-cookies a:focus{color:GrayText;text-decoration:underline}.fucking-eu-cookies a.fucking-triangle{text-decoration:underline;padding-left:10px;position:relative;top:2px;transition:transform .2s cubic-bezier(.1, -0.6, .2, 0)}.fucking-eu-cookies a.fucking-triangle:hover,.fucking-eu-cookies a.fucking-triangle:focus{transform:scale(1.5)}.fucking-eu-cookies a.fucking-triangle img{width:20px;height:20px}.fucking-eu-cookies button{flex-shrink:0;cursor:pointer;font-weight:.9em}",l18n:{text:"Tento web používá k poskytování služeb, personalizaci reklam a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tím souhlasíte.",accept:"Souhlasím",more:"Více informací",link:"https://policies.google.com/technologies/cookies?hl=cs",deprecationLink:"https://github.com/jakubboucek/fucking-eu-cookies/issues/14#issue-325497314",deprecationTitle:"VYŽADOVANÁ AKCE: Tato lišta bude ukončena – klikněte pro další informace"},options:{popupMore:!1,callback:null,dataLayerName:null,insertTo:"body-begin"}},x={};c(),j()}(window,window.document);

Anonymous,


Anonymous,


Anonymous,

Občas člověk najde takovouto konstrukci. Autor by opravdu měl dělat něco jiného. Hlavně škodit na jiném projektu.

if ($(this).css("border-bottom-color") == 'rgb(0, 128, 0)') {
	$("div#tilesSchema" + i).show();
}

Anonymous,

function getRowCellOverallUtilization(dailyResourcesReport) {
  // round utilization with respect to two decimal digits
  const roundedUtilization = Math.round(dailyResourcesReport.total.utilization * 100) / 100
  const utilizationPercentages = roundedUtilization
  return utilizationPercentages
}

Anonymous,