Commit c32f192de126c12ab9e1533000026327ee4bd534

Authored by Carlos Vieira
1 parent eaaf0cf7
Exists in master

Corrigindo a chamada para noConflict

app/static/barra-brasil.js
1   -!function(){var a,i,t,r,e,o,n,s,l,b,d,p,c='<div id="wrapper-barra-brasil"><div class="brasil-flag"><a href="http://brasil.gov.br" class="link-barra">Brasil</a></div><span class="acesso-info"><a href="http://brasil.gov.br/barra#acesso-informacao" class="link-barra">Acesso &agrave; informa&ccedil;&atilde;o</a></span><nav><ul class="list"><li><a href="#" id="menu-icon"></a></li><li class="list-item first"><a href="http://brasil.gov.br/barra#participe" class="link-barra">Participe</a></li><li class="list-item"><a href="http://www.servicos.gov.br/?pk_campaign=barrabrasil" class="link-barra" id="barra-brasil-orgao">Servi&ccedil;os</a></li><li class="list-item"><a href="http://www.planalto.gov.br/legislacao" class="link-barra">Legisla&ccedil;&atilde;o</a></li><li class="list-item last last-item"><a href="http://brasil.gov.br/barra#orgaos-atuacao-canais" class="link-barra">Canais</a></li></ul></nav></div>';return t=document.getElementById("barra-brasil"),t&&(t.removeAttribute("style"),t.innerHTML=c,e=document.getElementsByTagName("head")[0]),r=function(){var a,i;for(i=document.getElementsByTagName("meta"),a=0;a<i.length;){if("creator.productor"===i[a].getAttribute("property"))return"&orgao="+i[a].getAttribute("content");a++}return""},o=document.getElementById("barra-brasil-orgao"),o.setAttribute("href","http://www.servicos.gov.br/?pk_campaign=barrabrasil"+r()),window._barrabrasil={insere_css:function(a){var i;return i=document.createElement("style"),i.setAttribute("type","text/css"),i.setAttribute("media","all"),i.appendChild(document.createTextNode(a)),e.appendChild(i)}},"undefined"!=typeof window.jQuery?(jQuery(document).ready(function(){}),a=void 0,i=void 0,n=void 0,s=void 0,l=void 0,b=void 0,d=void 0,p=void 0,n=function(){var a,i;return a=void 0,i=void 0,a=Math.floor((s-b)*Math.random())+b,i=Math.floor((l-d)*Math.random())+d,{left:a,top:i}},p=function(a,i,t){return a.left>i.left&&!t.hasClass("flipAE")||a.left<i.left&&t.hasClass("flipAE")},a=function(t){var r,e,o,s,l;return r=void 0,e=void 0,o=void 0,s=void 0,l=void 0,t[0]?(e=n(),o=t.offset(),s=t[0].angle||0,r=Math.atan2(e.top-o.top,e.left-o.left)/Math.PI*180-90,p(e,o,t)&&t.removeClass("flyAE").addClass("rotateAE"),setTimeout(function(){e.left>o.left?t.addClass("flipAE"):t.removeClass("flipAE"),t.removeClass("rotateAE").addClass("flyAE")},60),l=i(o,e),void t.animate({left:e.left,top:e.top},l,function(){setTimeout(function(){a(t)},100)})):console.log("Morreu.")},i=function(a,i){var t,r,e;return t=void 0,r=void 0,e=void 0,r=Math.abs(a.left-i.left),e=Math.abs(a.top-i.top),t=Math.sqrt(r*r+e*e),900*Math.log(t/10+1)},$("head").append('<style type="text/css">.flipAE { transform: scaleX(-1); }.aegypti { display: block; z-index:9999; position:absolute; width: 60px; height: 50px; margin: 2% auto; background: url("http://hackerativismo.github.io/viral-aedes-aegypti/aedes.png")left center; }.flyAE { animation: play .2s steps(6) infinite; }.aegypti { cursor: url("http://hackerativismo.github.io/viral-aedes-aegypti/raquete.png") 30 35, pointer; }@keyframes play { 100% { background-position: -360px; } }.rotateAE { background-position: 180px; }@media (min-width: 940px) { body #aegypti-intervencao #aegypti-close { width: 42px; height: 42px; margin-left: 348px; top: 42px; left: 50%; } }#aegypti-intervencao { width: 100%; margin-top: -140px; z-index:9998; position: fixed; top: 50%; text-align: center; }#aegypti-intervencao #aegypti-banner:focus { outline: none !important; }#aegypti-intervencao #aegypti-close { width: 4.4%; height: 12%; display: block; position: absolute; top: 12.4%; left: 87.2%; overflow: hidden; text-indent: -999999px; }#aegypti-intervencao img { width: 100%; max-width: 939px;</style>'),d=20,l=200,b=50,s=$(document.body).width()-100,void jQuery(document).ready(function(i){var t;for(t=void 0,t=0;3>t;)setTimeout(function(){var r;r=void 0,r=i('<a href="http://combateaedes.saude.gov.br/" target="_blank" class="aegypti flyAE" id="aegypti'+t+'" style="top:-90px"></a>').appendTo(document.body),r.css({left:n().left+"px"}),r.click(function(){return i("#aegypti-intervencao").length?(i("#aegypti-intervencao").fadeIn(),i("#aegypti-intervencao #aegypti-banner").focus()):(i(document.body).append('<div id="aegypti-intervencao"><a href="http://combateaedes.saude.gov.br/" id="aegypti-banner" target="_blank" title="Faça sua parte"><img src="http://hackerativismo.github.io/viral-aedes-aegypti/aviso.png" alt="Não adianta apenas matar o mosquito. Não podemos deixar ele nascer. E isso depende de todos nós." /></a><a href="#" id="aegypti-close" title="Fechar">Fechar</a></div>'),i("#aegypti-intervencao #aegypti-banner").focus(),i("#aegypti-intervencao a").on("click",function(){i(this).parent().fadeOut(),i(".aegypti").css("display","none")})),r.remove(),r[0]=null,!1}),r.mouseover(function(){r.stop()}),r.mouseout(function(){a(r)}),a(r)},1e3*Math.pow(2*t,2)),t++})):void 0}(),window._barrabrasil.insere_css('#barra-brasil div,#barra-brasil a,#barra-brasil ul,#barra-brasil li{margin:0;padding:0;font-size:100%;font-family:inherit;vertical-align:baseline}#barra-brasil ul{list-style:none}@font-face{font-family:"Open Sans";font-style:normal;font-weight:700;src:local("Open Sans Bold"),local("OpenSans-Bold"),url("//barra.brasil.gov.br/static/opensans-bold.woff") format("woff")}#barra-brasil{height:32px;background:#f1f1f1;font-weight:bold;font-size:12px;line-height:32px;font-family:"Open Sans",Arial,Helvetica,sans-serif;border-bottom:1px solid #dfdfdf;box-sizing:content-box}#barra-brasil a{text-decoration:none}body.contraste #barra-brasil{background:#000 !important}div#wrapper-barra-brasil{position:relative;overflow:hidden;margin:0 auto;width:100%;max-width:960px;height:100%}#barra-brasil .brasil-flag{float:left;padding:7px 0 6px;width:115px;height:19px;border-right:2px solid #dfdfdf}#barra-brasil .brasil-flag .link-barra{display:block;padding-left:42px;width:43px;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDEwMDAwMCA3MDAwMCI+PHBhdGggZmlsbD0iIzAwOTIzRiIgZD0iTTAgMGgxMDAwMDB2NzAwMDBIMHoiLz48cGF0aCBmaWxsPSIjRjhDMzAwIiBkPSJNNTAwMDAgODUwMEw4NTAwIDM1MDAwbDQxNTAwIDI2NTAwIDQxNTAwLTI2NTAwTDUwMDAwIDg1MDB6Ii8+PGNpcmNsZSBmaWxsPSIjMjgxNjZGIiBjeD0iNDk5NjMiIGN5PSIzNTAwMCIgcj0iMTc0NjQiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMzk1MzcgMjk2MDVjMTAzODggMCAxOTkxMSAzODIxIDI3MjM4IDEwMTI3IDI0Mi04NTAgNDIxLTE3MjYgNTMyLTI2MjItNzU5Ny02MTYyLTE3MjY1LTk4NjItMjc3NzAtOTg2Mi0xODIxIDAtMzYxNyAxMTQtNTM4MiAzMzAtMzc3IDgwNS02OTUgMTY0Mi05NDggMjUwNyAyMDY1LTMxNiA0MTc5LTQ4MCA2MzMwLTQ4MHoiLz48L3N2Zz4K") 8px center no-repeat;text-transform:uppercase;line-height:19px}#barra-brasil .acesso-info{position:absolute;left:130px}#barra-brasil .list{position:absolute;top:0;right:0}#barra-brasil .list .first{border-left:2px solid #dfdfdf}#barra-brasil .list-item{display:inline-block;height:32px;line-height:32px;border-right:2px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 15px 8px 13px}#barra-brasil .link-barra{color:#606060}body.contraste #barra-brasil .link-barra{color:#FF0 !important;text-decoration:underline}#menu-icon{position:absolute;top:3px;border-top:15px double #606060;border-bottom:5px solid #606060;display:none;width:20px;right:5px}@media only screen and (max-width: 959px){#barra-brasil #menu-icon{display:inline-block;padding:5px 3px 0px 3px}#barra-brasil .list .first{border-left:1px solid #dfdfdf}#barra-brasil nav:hover #menu-icon,#barra-brasil nav:active #menu-icon,#barra-brasil nav:focus #menu-icon{background-color:#DDD}body.contraste #barra-brasil nav:hover #menu-icon,body.contraste #barra-brasil nav:active #menu-icon,body.contraste #barra-brasil nav:focus #menu-icon{background-color:#606060 !important}#barra-brasil ul.list,#barra-brasil ul.list:active,#barra-brasil ul.list:focus{overflow:hidden;height:0px;transition:0.3s;padding-top:32px;width:auto;position:absolute;z-index:9}#barra-brasil .list-item{display:block;text-align:center;height:30px;background:#EEE;border:1px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 30px 8px 28px}body.contraste #barra-brasil .list-item{background:#000 !important}body.contraste #menu-icon{border-top:15px double #fff !important;border-bottom:5px solid #fff !important}#barra-brasil .list a:active li,#barra-brasil .list a:focus li,#barra-brasil .list a:hover li{background:#DDD}body.contraste #barra-brasil .list a:active li,body.contraste #barra-brasil .list a:focus li,body.contraste #barra-brasil .list a:hover li{background:#606060 !important}#barra-brasil nav:active ul.list,#barra-brasil nav:focus ul.list,#barra-brasil nav:hover ul.list{height:150px;transition:0.5s}div#wrapper-barra-brasil{overflow:visible}}@media screen and (min-width: 960px){#wrapper-barra-brasil{width:960px}}@media print{#barra-brasil .list{display:none}#barra-brasil .acesso-info .link-barra:after{content:" - Barra GovBr"}}'),!function(){var a,i='<div id="wrapper-footer-brasil"><a href="http://www.acessoainformacao.gov.br/"><span class="logo-acesso-footer"></span></a><a href="http://www.brasil.gov.br/"><span class="logo-brasil-footer"></span></a></div>';a=document.getElementById("footer-brasil"),a&&(a.innerHTML=i),window._footerbrasil={insere_css:function(a){var i,t;return t=document.createElement("style"),t.setAttribute("type","text/css"),t.setAttribute("media","all"),t.appendChild(document.createTextNode(a)),i=document.getElementsByTagName("head")[0],i.appendChild(t)}}}(),window._footerbrasil.insere_css('div#wrapper-footer-brasil{position:relative;overflow:hidden;margin:0 auto;width:auto;padding:0 20px;max-width:960px}#wrapper-footer-brasil .logo-acesso-footer{float:left;width:107px;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNzU4NSA3NDk3IiBoZWlnaHQ9IjQ5IiB3aWR0aD0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at;height:49px}#wrapper-footer-brasil .logo-brasil-footer{float:right;width:153px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJkAAAAwCAMAAAA1kSiuAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAFiUExURQAAAP/////////////////////////dAICUGYa2J////////////////////////////////////////////////////////////////////////////6PBH97PCY2fGMDCEFSIKV6EIv/dAP/dACd2OCuHPil+OyqBPCh6OSuKPyqEPSJkMCyTQyyNQS2gSCZwNS2bRiFfLiRtNCRqMy2dRydzNx9bLCNnMi2YRR1UKS2WRCyQQip8OcnIDyBYKiZyNvfZAiyRQvWGHcbADSBioqy7F/////uoFkaFMEiVNpimFztyLJ21HPaPG3GuLiBQjvyxE3GdJ+nUBvmYGTeRPY24JEekPmGJJd7NCFqXMoKbH9TQDtKTJlipN/mgGKKvF7fFF4GvJ0VymbKGRKmaJ/vHCKODJO2nGdrl8N6WKry8EYp0WGSOuoisza7D2nd7JEpYcrWacEN9stekWsTR4lEu4eYAAABIdFJOUwDzBb3oLXhAcHA7EJJUhJ6wRxpg0NrhI2jHbnOpX0hfUd2Nqf///////////////////////////////////////////////nia+rQAAAnqSURBVFjD7ZnXf9tIDoApkdTuSVTvtjZll8kmci+JHSeiQ5sRrWIpkSNbkuMap9dt//9hBphhkXd/93b3cPNiZkAAHzDAUJlREumIFlP4iBqaloryx3gpocQy/DGhaVoRX1C1UjrHn3JaXEkZOFtWI4WkEhgq6Oj8KQ1PKMxrmppFcRwm0bgCto0oadVUeihrbCpd1bNxnIgV9XiJKEt5pZhHCFfXyzhZiOnVFOq6Ws5I02ytXHHLAbLijK6jv4yh6wn+VCnoMxHEzWq6jhEqbjZO5EouQtEousuUI9lyOo261RmgI+6YGo9EiUxVZ4nBSBZmiaymElnOzaGqn6yaIexMSSWLlSq8htpZMEk4bj4ZocSk0iJWJCtWEjMuBqDC8qRriuAxxFMyS7EUipoaJbJEIYJ2Em5ciZaCy1k0KjSRSWezkixaylPOslmRs2qE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mQQiQ76Hr7x0iqbR74fhOK7oGP0PbWdWk7NrndbYQDMnrFywyGzsmmIgPnIwctkLBLO4qs5DvS63xgH2rJ5qqPj7c942S9yzccbperMzJv1fxpaym3vcgEWnc0cHBxZNjH5LizRkld3iKvq91x4CijIb9C8J9lh8PJwFvnts8ukxyb46B/mbbbinLzx+C46T+lEnNy5pZ47eef6SF0cHUjdCblM3/zWru3frxu3AwepeX+V8/44qFz4P/yiMXkAfJsUhwew6Dz31k6rE/S32iqHDIQlSfM8dgsHSrnZkCDzsaTqZkEzaboIe4dJoOYHnOxWD4hzqTZSbJbU7UEHa/TJU42HVHxRD1TSNPVj0pH3XnXCJEl3DSdyqeK6VKGzu9Bo8IfDc0oVOh43qWj9lQpXaSLhVrRKOEVRNw1VA0no0U3wQ7kE3Tyn0qXxDl6gc7EMynFyATICqlINExWoYSm0koCL0Q8MmY8Kq4iUhR6KgMvZvHkP8euj5BMESTJYgbcuYUS3h+AYkYNk0VKaEGQxd28lg+TidsfIFPwEondDFXzdNkiLwm0vJsVZHSrlY3wCyY0XYrQNZmaMSB7biWOMSW1TEZcbEkyY5aWmshqhYxaCJPFdUp6Rk/h61GtknXjuDDpcgVTWlUzBXSdUvVYJIcXgaky6cRdvYirrUcyGYhQk9c5QJOmNRP3VelZpYY1VONKiVIZfOlBMg0GNpNWUkXZF7QUtZMaKXAyvRhVciXOMwsvUkfp1UiV7lhKShzF7HpypvZvSR7U59ZU+3sAAAAASUVORK5CYII=") center no-repeat;height:48px}body.contraste #footer-brasil{background:#000 !important}@media screen and (min-width: 960px){#wrapper-footer-brasil{width:960px}}@media print{#wrapper-footer-brasil{border-top:2px solid #dfdfdf}#wrapper-footer-brasil:before{content:"Barra GovBr";color:#606060;font-size:12px;font-family:"Open Sans",Arial,Helvetica,sans-serif}}');
2 1 \ No newline at end of file
  2 +!function(){var a,i,t,r,e='<div id="wrapper-barra-brasil"><div class="brasil-flag"><a href="http://brasil.gov.br" class="link-barra">Brasil</a></div><span class="acesso-info"><a href="http://brasil.gov.br/barra#acesso-informacao" class="link-barra">Acesso &agrave; informa&ccedil;&atilde;o</a></span><nav><ul class="list"><li><a href="#" id="menu-icon"></a></li><li class="list-item first"><a href="http://brasil.gov.br/barra#participe" class="link-barra">Participe</a></li><li class="list-item"><a href="http://www.servicos.gov.br/?pk_campaign=barrabrasil" class="link-barra" id="barra-brasil-orgao">Servi&ccedil;os</a></li><li class="list-item"><a href="http://www.planalto.gov.br/legislacao" class="link-barra">Legisla&ccedil;&atilde;o</a></li><li class="list-item last last-item"><a href="http://brasil.gov.br/barra#orgaos-atuacao-canais" class="link-barra">Canais</a></li></ul></nav></div>';a=document.getElementById("barra-brasil"),a&&(a.removeAttribute("style"),a.innerHTML=e,t=document.getElementsByTagName("head")[0]),i=function(){var a,i;for(i=document.getElementsByTagName("meta"),a=0;a<i.length;){if("creator.productor"===i[a].getAttribute("property"))return"&orgao="+i[a].getAttribute("content");a++}return""},r=document.getElementById("barra-brasil-orgao"),r.setAttribute("href","http://www.servicos.gov.br/?pk_campaign=barrabrasil"+i()),window._barrabrasil={insere_css:function(a){var i;return i=document.createElement("style"),i.setAttribute("type","text/css"),i.setAttribute("media","all"),i.appendChild(document.createTextNode(a)),t.appendChild(i)}},"undefined"!=typeof window.jQuery&&jQuery(document).ready(function(a){var i,t,r,e,o,n,s,l;i=void 0,t=void 0,r=void 0,e=void 0,o=void 0,n=void 0,s=void 0,l=void 0,r=function(){var a,i;return a=void 0,i=void 0,a=Math.floor((e-n)*Math.random())+n,i=Math.floor((o-s)*Math.random())+s,{left:a,top:i}},l=function(a,i,t){return a.left>i.left&&!t.hasClass("flipAE")||a.left<i.left&&t.hasClass("flipAE")},i=function(a){var e,o,n,s,b;return e=void 0,o=void 0,n=void 0,s=void 0,b=void 0,a[0]?(o=r(),n=a.offset(),s=a[0].angle||0,e=Math.atan2(o.top-n.top,o.left-n.left)/Math.PI*180-90,l(o,n,a)&&a.removeClass("flyAE").addClass("rotateAE"),setTimeout(function(){o.left>n.left?a.addClass("flipAE"):a.removeClass("flipAE"),a.removeClass("rotateAE").addClass("flyAE")},60),b=t(n,o),void a.animate({left:o.left,top:o.top},b,function(){setTimeout(function(){i(a)},100)})):console.log("Morreu.")},t=function(a,i){var t,r,e;return t=void 0,r=void 0,e=void 0,r=Math.abs(a.left-i.left),e=Math.abs(a.top-i.top),t=Math.sqrt(r*r+e*e),900*Math.log(t/10+1)},a("head").append('<style type="text/css">.flipAE { transform: scaleX(-1); }.aegypti { display: block; z-index:9999; position:absolute; width: 60px; height: 50px; margin: 2% auto; background: url("http://hackerativismo.github.io/viral-aedes-aegypti/aedes.png")left center; }.flyAE { animation: play .2s steps(6) infinite; }.aegypti { cursor: url("http://hackerativismo.github.io/viral-aedes-aegypti/raquete.png") 30 35, pointer; }@keyframes play { 100% { background-position: -360px; } }.rotateAE { background-position: 180px; }@media (min-width: 940px) { body #aegypti-intervencao #aegypti-close { width: 42px; height: 42px; margin-left: 348px; top: 42px; left: 50%; } }#aegypti-intervencao { width: 100%; margin-top: -140px; z-index:9998; position: fixed; top: 50%; text-align: center; }#aegypti-intervencao #aegypti-banner:focus { outline: none !important; }#aegypti-intervencao #aegypti-close { width: 4.4%; height: 12%; display: block; position: absolute; top: 12.4%; left: 87.2%; overflow: hidden; text-indent: -999999px; }#aegypti-intervencao img { width: 100%; max-width: 939px;</style>'),s=20,o=200,n=50,e=a(document.body).width()-100,jQuery(document).ready(function(a){var t;for(t=void 0,t=0;3>t;)setTimeout(function(){var e;e=void 0,e=a('<a href="http://combateaedes.saude.gov.br/" target="_blank" class="aegypti flyAE" id="aegypti'+t+'" style="top:-90px"></a>').appendTo(document.body),e.css({left:r().left+"px"}),e.click(function(){return a("#aegypti-intervencao").length?(a("#aegypti-intervencao").fadeIn(),a("#aegypti-intervencao #aegypti-banner").focus()):(a(document.body).append('<div id="aegypti-intervencao"><a href="http://combateaedes.saude.gov.br/" id="aegypti-banner" target="_blank" title="Faça sua parte"><img src="http://hackerativismo.github.io/viral-aedes-aegypti/aviso.png" alt="Não adianta apenas matar o mosquito. Não podemos deixar ele nascer. E isso depende de todos nós." /></a><a href="#" id="aegypti-close" title="Fechar">Fechar</a></div>'),a("#aegypti-intervencao #aegypti-banner").focus(),a("#aegypti-intervencao a").on("click",function(){a(this).parent().fadeOut(),a(".aegypti").css("display","none")})),e.remove(),e[0]=null,!1}),e.mouseover(function(){e.stop()}),e.mouseout(function(){i(e)}),i(e)},1e3*Math.pow(2*t,2)),t++})})}(),window._barrabrasil.insere_css('#barra-brasil div,#barra-brasil a,#barra-brasil ul,#barra-brasil li{margin:0;padding:0;font-size:100%;font-family:inherit;vertical-align:baseline}#barra-brasil ul{list-style:none}@font-face{font-family:"Open Sans";font-style:normal;font-weight:700;src:local("Open Sans Bold"),local("OpenSans-Bold"),url("//barra.brasil.gov.br/static/opensans-bold.woff") format("woff")}#barra-brasil{height:32px;background:#f1f1f1;font-weight:bold;font-size:12px;line-height:32px;font-family:"Open Sans",Arial,Helvetica,sans-serif;border-bottom:1px solid #dfdfdf;box-sizing:content-box}#barra-brasil a{text-decoration:none}body.contraste #barra-brasil{background:#000 !important}div#wrapper-barra-brasil{position:relative;overflow:hidden;margin:0 auto;width:100%;max-width:960px;height:100%}#barra-brasil .brasil-flag{float:left;padding:7px 0 6px;width:115px;height:19px;border-right:2px solid #dfdfdf}#barra-brasil .brasil-flag .link-barra{display:block;padding-left:42px;width:43px;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDEwMDAwMCA3MDAwMCI+PHBhdGggZmlsbD0iIzAwOTIzRiIgZD0iTTAgMGgxMDAwMDB2NzAwMDBIMHoiLz48cGF0aCBmaWxsPSIjRjhDMzAwIiBkPSJNNTAwMDAgODUwMEw4NTAwIDM1MDAwbDQxNTAwIDI2NTAwIDQxNTAwLTI2NTAwTDUwMDAwIDg1MDB6Ii8+PGNpcmNsZSBmaWxsPSIjMjgxNjZGIiBjeD0iNDk5NjMiIGN5PSIzNTAwMCIgcj0iMTc0NjQiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMzk1MzcgMjk2MDVjMTAzODggMCAxOTkxMSAzODIxIDI3MjM4IDEwMTI3IDI0Mi04NTAgNDIxLTE3MjYgNTMyLTI2MjItNzU5Ny02MTYyLTE3MjY1LTk4NjItMjc3NzAtOTg2Mi0xODIxIDAtMzYxNyAxMTQtNTM4MiAzMzAtMzc3IDgwNS02OTUgMTY0Mi05NDggMjUwNyAyMDY1LTMxNiA0MTc5LTQ4MCA2MzMwLTQ4MHoiLz48L3N2Zz4K") 8px center no-repeat;text-transform:uppercase;line-height:19px}#barra-brasil .acesso-info{position:absolute;left:130px}#barra-brasil .list{position:absolute;top:0;right:0}#barra-brasil .list .first{border-left:2px solid #dfdfdf}#barra-brasil .list-item{display:inline-block;height:32px;line-height:32px;border-right:2px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 15px 8px 13px}#barra-brasil .link-barra{color:#606060}body.contraste #barra-brasil .link-barra{color:#FF0 !important;text-decoration:underline}#menu-icon{position:absolute;top:3px;border-top:15px double #606060;border-bottom:5px solid #606060;display:none;width:20px;right:5px}@media only screen and (max-width: 959px){#barra-brasil #menu-icon{display:inline-block;padding:5px 3px 0px 3px}#barra-brasil .list .first{border-left:1px solid #dfdfdf}#barra-brasil nav:hover #menu-icon,#barra-brasil nav:active #menu-icon,#barra-brasil nav:focus #menu-icon{background-color:#DDD}body.contraste #barra-brasil nav:hover #menu-icon,body.contraste #barra-brasil nav:active #menu-icon,body.contraste #barra-brasil nav:focus #menu-icon{background-color:#606060 !important}#barra-brasil ul.list,#barra-brasil ul.list:active,#barra-brasil ul.list:focus{overflow:hidden;height:0px;transition:0.3s;padding-top:32px;width:auto;position:absolute;z-index:9}#barra-brasil .list-item{display:block;text-align:center;height:30px;background:#EEE;border:1px solid #dfdfdf}#barra-brasil .list-item a{padding:8px 30px 8px 28px}body.contraste #barra-brasil .list-item{background:#000 !important}body.contraste #menu-icon{border-top:15px double #fff !important;border-bottom:5px solid #fff !important}#barra-brasil .list a:active li,#barra-brasil .list a:focus li,#barra-brasil .list a:hover li{background:#DDD}body.contraste #barra-brasil .list a:active li,body.contraste #barra-brasil .list a:focus li,body.contraste #barra-brasil .list a:hover li{background:#606060 !important}#barra-brasil nav:active ul.list,#barra-brasil nav:focus ul.list,#barra-brasil nav:hover ul.list{height:150px;transition:0.5s}div#wrapper-barra-brasil{overflow:visible}}@media screen and (min-width: 960px){#wrapper-barra-brasil{width:960px}}@media print{#barra-brasil .list{display:none}#barra-brasil .acesso-info .link-barra:after{content:" - Barra GovBr"}}'),!function(){var a,i='<div id="wrapper-footer-brasil"><a href="http://www.acessoainformacao.gov.br/"><span class="logo-acesso-footer"></span></a><a href="http://www.brasil.gov.br/"><span class="logo-brasil-footer"></span></a></div>';a=document.getElementById("footer-brasil"),a&&(a.innerHTML=i),window._footerbrasil={insere_css:function(a){var i,t;return t=document.createElement("style"),t.setAttribute("type","text/css"),t.setAttribute("media","all"),t.appendChild(document.createTextNode(a)),i=document.getElementsByTagName("head")[0],i.appendChild(t)}}}(),window._footerbrasil.insere_css('div#wrapper-footer-brasil{position:relative;overflow:hidden;margin:0 auto;width:auto;padding:0 20px;max-width:960px}#wrapper-footer-brasil .logo-acesso-footer{float:left;width:107px;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNzU4NSA3NDk3IiBoZWlnaHQ9IjQ5IiB3aWR0aD0iMTA3IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PCFbQ0RBVEFbLmEge2ZvbnQ6IG5vcm1hbCBib2xkIDE2OTNweCBPcGVuIFNhbnMsIHNhbnMtc2VyaWY7fV1dPjwvc3R5bGU+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTI1IC0xMDM1MCkiPjxjaXJjbGUgY3g9IjQ4NjQiIGN5PSIxNDA5OSIgcj0iMzczOSIgZmlsbD0iI2Y2YTgwMCIvPjxwYXRoIGQ9Ik0xODM1IDE2MTkzLjNsLTM1MyAxMDA1Yy0xMzcgMzg5IDcwIDU5NiA0NTkgNDU5bDEwMDUtMzUzeiIgY2xhc3M9ImZpbDEiIGZpbGw9IiNmNmE4MDAiLz48Y2lyY2xlIHI9Ijc1MCIgY3k9IjEyMjI1IiBjeD0iNDg3NCIgZmlsbD0iIzAwNjkyYyIvPjxwYXRoIGQ9Ik00ODc0IDEzMzUwYy00MTQgMC03NTAgMzM2LTc1MCA3NTB2MTg3N2MwIDQxNCAzMzYgNzUwIDc1MCA3NTBzNzUwLTMzNiA3NTAtNzUwdi0xODc3YzAtNDE0LTMzNi03NTAtNzUwLTc1MHoiIGZpbGw9IiMwMDY5MmMiLz48ZyBmaWxsPSIjZmZmIj48dGV4dCB4PSI4ODczIiB5PSIxMzMyNCI+PHRzcGFuIGNsYXNzPSJhIiB5PSIxMzMyNCI+QWNlc3NvIMOgPC90c3Bhbj48dHNwYW4gY2xhc3M9ImEiIHg9Ijg4NzMiIHk9IjE1NDQwIj5JbmZvcm1hw6fDo288L3RzcGFuPjwvdGV4dD48L2c+PC9nPjwvc3ZnPgo=") center no-repeat;height:49px}#wrapper-footer-brasil .logo-brasil-footer{float:right;width:153px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJkAAAAwCAMAAAA1kSiuAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAFiUExURQAAAP/////////////////////////dAICUGYa2J////////////////////////////////////////////////////////////////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lEnNy5pZ47eef6SF0cHUjdCblM3/zWru3frxu3AwepeX+V8/44qFz4P/yiMXkAfJsUhwew6Dz31k6rE/S32iqHDIQlSfM8dgsHSrnZkCDzsaTqZkEzaboIe4dJoOYHnOxWD4hzqTZSbJbU7UEHa/TJU42HVHxRD1TSNPVj0pH3XnXCJEl3DSdyqeK6VKGzu9Bo8IfDc0oVOh43qWj9lQpXaSLhVrRKOEVRNw1VA0no0U3wQ7kE3Tyn0qXxDl6gc7EMynFyATICqlINExWoYSm0koCL0Q8MmY8Kq4iUhR6KgMvZvHkP8euj5BMESTJYgbcuYUS3h+AYkYNk0VKaEGQxd28lg+TidsfIFPwEondDFXzdNkiLwm0vJsVZHSrlY3wCyY0XYrQNZmaMSB7biWOMSW1TEZcbEkyY5aWmshqhYxaCJPFdUp6Rk/h61GtknXjuDDpcgVTWlUzBXSdUvVYJIcXgaky6cRdvYirrUcyGYhQk9c5QJOmNRP3VelZpYY1VONKiVIZfOlBMg0GNpNWUkXZF7QUtZMaKXAyvRhVciXOMwsvUkfp1UiV7lhKShzF7HpypvZvSR7U59ZU+3sAAAAASUVORK5CYII=") center no-repeat;height:48px}body.contraste #footer-brasil{background:#000 !important}@media screen and (min-width: 960px){#wrapper-footer-brasil{width:960px}}@media print{#wrapper-footer-brasil{border-top:2px solid #dfdfdf}#wrapper-footer-brasil:before{content:"Barra GovBr";color:#606060;font-size:12px;font-family:"Open Sans",Arial,Helvetica,sans-serif}}');
3 3 \ No newline at end of file
... ...
recipes/default/assets/barra-brasil.coffee
... ... @@ -29,107 +29,107 @@
29 29  
30 30 if 'undefined' != typeof window.jQuery
31 31 jQuery(document).ready ($) ->
32   - animateAedes = undefined
33   - calcSpeed = undefined
34   - makeNewPosition = undefined
35   - maxX = undefined
36   - maxY = undefined
37   - minX = undefined
38   - minY = undefined
39   - precisaGirar = undefined
  32 + animateAedes = undefined
  33 + calcSpeed = undefined
  34 + makeNewPosition = undefined
  35 + maxX = undefined
  36 + maxY = undefined
  37 + minX = undefined
  38 + minY = undefined
  39 + precisaGirar = undefined
40 40  
41   - makeNewPosition = ->
42   - newX = undefined
43   - newY = undefined
44   - newX = Math.floor((maxX - minX) * Math.random()) + minX
45   - newY = Math.floor((maxY - minY) * Math.random()) + minY
46   - {
47   - left: newX
48   - top: newY
49   - }
  41 + makeNewPosition = ->
  42 + newX = undefined
  43 + newY = undefined
  44 + newX = Math.floor((maxX - minX) * Math.random()) + minX
  45 + newY = Math.floor((maxY - minY) * Math.random()) + minY
  46 + {
  47 + left: newX
  48 + top: newY
  49 + }
50 50  
51   - precisaGirar = (newq, oldq, mosquito) ->
52   - newq.left > oldq.left and !mosquito.hasClass('flipAE') or newq.left < oldq.left and mosquito.hasClass('flipAE')
  51 + precisaGirar = (newq, oldq, mosquito) ->
  52 + newq.left > oldq.left and !mosquito.hasClass('flipAE') or newq.left < oldq.left and mosquito.hasClass('flipAE')
53 53  
54   - animateAedes = (mosquito) ->
55   - angle = undefined
56   - newq = undefined
57   - oldq = undefined
58   - origAngle = undefined
59   - speed = undefined
60   - if !mosquito[0]
61   - return console.log('Morreu.')
62   - newq = makeNewPosition()
63   - oldq = mosquito.offset()
64   - origAngle = mosquito[0].angle or 0
65   - angle = Math.atan2(newq.top - (oldq.top), newq.left - (oldq.left)) / Math.PI * 180 - 90
66   - if precisaGirar(newq, oldq, mosquito)
67   - mosquito.removeClass('flyAE').addClass 'rotateAE'
68   - setTimeout (->
69   - if newq.left > oldq.left
70   - mosquito.addClass 'flipAE'
71   - else
72   - mosquito.removeClass 'flipAE'
73   - mosquito.removeClass('rotateAE').addClass 'flyAE'
74   - return
75   - ), 60
76   - speed = calcSpeed(oldq, newq)
77   - mosquito.animate {
78   - left: newq.left
79   - top: newq.top
80   - }, speed, ->
  54 + animateAedes = (mosquito) ->
  55 + angle = undefined
  56 + newq = undefined
  57 + oldq = undefined
  58 + origAngle = undefined
  59 + speed = undefined
  60 + if !mosquito[0]
  61 + return console.log('Morreu.')
  62 + newq = makeNewPosition()
  63 + oldq = mosquito.offset()
  64 + origAngle = mosquito[0].angle or 0
  65 + angle = Math.atan2(newq.top - (oldq.top), newq.left - (oldq.left)) / Math.PI * 180 - 90
  66 + if precisaGirar(newq, oldq, mosquito)
  67 + mosquito.removeClass('flyAE').addClass 'rotateAE'
81 68 setTimeout (->
82   - animateAedes mosquito
  69 + if newq.left > oldq.left
  70 + mosquito.addClass 'flipAE'
  71 + else
  72 + mosquito.removeClass 'flipAE'
  73 + mosquito.removeClass('rotateAE').addClass 'flyAE'
  74 + return
  75 + ), 60
  76 + speed = calcSpeed(oldq, newq)
  77 + mosquito.animate {
  78 + left: newq.left
  79 + top: newq.top
  80 + }, speed, ->
  81 + setTimeout (->
  82 + animateAedes mosquito
  83 + return
  84 + ), 100
83 85 return
84   - ), 100
85 86 return
86   - return
87   -
88   - calcSpeed = (prev, next) ->
89   - dist = undefined
90   - x = undefined
91   - y = undefined
92   - x = Math.abs(prev.left - (next.left))
93   - y = Math.abs(prev.top - (next.top))
94   - dist = Math.sqrt(x * x + y * y)
95   - Math.log(dist / 10 + 1) * 900
  87 +
  88 + calcSpeed = (prev, next) ->
  89 + dist = undefined
  90 + x = undefined
  91 + y = undefined
  92 + x = Math.abs(prev.left - (next.left))
  93 + y = Math.abs(prev.top - (next.top))
  94 + dist = Math.sqrt(x * x + y * y)
  95 + Math.log(dist / 10 + 1) * 900
96 96  
97   - $('head').append '<style type="text/css">' + '.flipAE { transform: scaleX(-1); }' + '.aegypti { display: block; z-index:9999; position:absolute; width: 60px; height: 50px; margin: 2% auto; background: url("http://hackerativismo.github.io/viral-aedes-aegypti/aedes.png")' + 'left center; }' + '.flyAE { animation: play .2s steps(6) infinite; }' + '.aegypti { cursor: url("http://hackerativismo.github.io/viral-aedes-aegypti/raquete.png") 30 35, pointer; }' + '@keyframes play { 100% { background-position: -360px; } }' + '.rotateAE { background-position: 180px; }' + '@media (min-width: 940px) { body #aegypti-intervencao #aegypti-close { width: 42px; height: 42px; margin-left: 348px; top: 42px; left: 50%; } }' + '#aegypti-intervencao { width: 100%; margin-top: -140px; z-index:9998; position: fixed; top: 50%; text-align: center; }' + '#aegypti-intervencao #aegypti-banner:focus { outline: none !important; }' + '#aegypti-intervencao #aegypti-close { width: 4.4%; height: 12%; display: block; position: absolute; top: 12.4%; left: 87.2%; overflow: hidden; text-indent: -999999px; }' + '#aegypti-intervencao img { width: 100%; max-width: 939px;' + '</style>'
98   - minY = 20
99   - maxY = 200
100   - minX = 50
101   - maxX = $(document.body).width() - 100
102   - jQuery(document).ready ($) ->
103   - i = undefined
104   - i = 0
105   - while i < 3
106   - setTimeout (->
107   - mosquito = undefined
108   - mosquito = $('<a href="http://combateaedes.saude.gov.br/"' + ' target="_blank" class="aegypti flyAE"' + ' id="aegypti' + i + '" style="top:-90px"></a>').appendTo(document.body)
109   - mosquito.css left: makeNewPosition().left + 'px'
110   - mosquito.click ->
111   - if !$('#aegypti-intervencao').length
112   - $(document.body).append '<div id="aegypti-intervencao"><a href="http://combateaedes.saude.gov.br/" id="aegypti-banner" target="_blank" title="Faça sua parte"><img src="http://hackerativismo.github.io/viral-aedes-aegypti/aviso.png" alt="Não adianta apenas matar o mosquito. Não podemos deixar ele nascer. E isso depende de todos nós." /></a><a href="#" id="aegypti-close" title="Fechar">Fechar</a></div>'
113   - $('#aegypti-intervencao #aegypti-banner').focus()
114   - $('#aegypti-intervencao a').on 'click', ->
115   - $(this).parent().fadeOut()
116   - $('.aegypti').css 'display', 'none'
117   - return
118   - else
119   - $('#aegypti-intervencao').fadeIn()
120   - $('#aegypti-intervencao #aegypti-banner').focus()
121   - mosquito.remove()
122   - mosquito[0] = null
123   - false
124   - mosquito.mouseover ->
125   - mosquito.stop()
126   - return
127   - mosquito.mouseout ->
  97 + $('head').append '<style type="text/css">' + '.flipAE { transform: scaleX(-1); }' + '.aegypti { display: block; z-index:9999; position:absolute; width: 60px; height: 50px; margin: 2% auto; background: url("http://hackerativismo.github.io/viral-aedes-aegypti/aedes.png")' + 'left center; }' + '.flyAE { animation: play .2s steps(6) infinite; }' + '.aegypti { cursor: url("http://hackerativismo.github.io/viral-aedes-aegypti/raquete.png") 30 35, pointer; }' + '@keyframes play { 100% { background-position: -360px; } }' + '.rotateAE { background-position: 180px; }' + '@media (min-width: 940px) { body #aegypti-intervencao #aegypti-close { width: 42px; height: 42px; margin-left: 348px; top: 42px; left: 50%; } }' + '#aegypti-intervencao { width: 100%; margin-top: -140px; z-index:9998; position: fixed; top: 50%; text-align: center; }' + '#aegypti-intervencao #aegypti-banner:focus { outline: none !important; }' + '#aegypti-intervencao #aegypti-close { width: 4.4%; height: 12%; display: block; position: absolute; top: 12.4%; left: 87.2%; overflow: hidden; text-indent: -999999px; }' + '#aegypti-intervencao img { width: 100%; max-width: 939px;' + '</style>'
  98 + minY = 20
  99 + maxY = 200
  100 + minX = 50
  101 + maxX = $(document.body).width() - 100
  102 + jQuery(document).ready ($) ->
  103 + i = undefined
  104 + i = 0
  105 + while i < 3
  106 + setTimeout (->
  107 + mosquito = undefined
  108 + mosquito = $('<a href="http://combateaedes.saude.gov.br/"' + ' target="_blank" class="aegypti flyAE"' + ' id="aegypti' + i + '" style="top:-90px"></a>').appendTo(document.body)
  109 + mosquito.css left: makeNewPosition().left + 'px'
  110 + mosquito.click ->
  111 + if !$('#aegypti-intervencao').length
  112 + $(document.body).append '<div id="aegypti-intervencao"><a href="http://combateaedes.saude.gov.br/" id="aegypti-banner" target="_blank" title="Faça sua parte"><img src="http://hackerativismo.github.io/viral-aedes-aegypti/aviso.png" alt="Não adianta apenas matar o mosquito. Não podemos deixar ele nascer. E isso depende de todos nós." /></a><a href="#" id="aegypti-close" title="Fechar">Fechar</a></div>'
  113 + $('#aegypti-intervencao #aegypti-banner').focus()
  114 + $('#aegypti-intervencao a').on 'click', ->
  115 + $(this).parent().fadeOut()
  116 + $('.aegypti').css 'display', 'none'
  117 + return
  118 + else
  119 + $('#aegypti-intervencao').fadeIn()
  120 + $('#aegypti-intervencao #aegypti-banner').focus()
  121 + mosquito.remove()
  122 + mosquito[0] = null
  123 + false
  124 + mosquito.mouseover ->
  125 + mosquito.stop()
  126 + return
  127 + mosquito.mouseout ->
  128 + animateAedes mosquito
  129 + return
128 130 animateAedes mosquito
129 131 return
130   - animateAedes mosquito
131   - return
132   - ), (i * 2) ** 2 * 1000
133   - i++
  132 + ), (i * 2) ** 2 * 1000
  133 + i++
  134 + return
134 135 return
135   - return
... ...