"),GM.Modal.Vars.modal_opacity=$("#modal_opacity")),null==GM.Modal.Vars.modal&&(GM.Modal.Vars.modal_root.append("
"),GM.Modal.Vars.modal=$("#modal")),null==GM.Modal.Vars.modal_content&&(GM.Modal.Vars.modal.append(""),GM.Modal.Vars.modal_content=$("#modal_content")),GM.Modal.Vars.modal.fadeTo("normal",1),GM.Modal.Ajax.Abort(GM.Modal.Ajax.Request),GM.Modal.Vars.modal_body.addClass("modal-open"),!l&&$("#urlMImg").length){var n=$("#urlMImg").contents();$("#urlMImg").replaceWith(n)}if(o)GM.Modal.Ajax.Request=jQuery.ajax({url:encodeURI(o),timeout:3e4,cache:!1,dataType:"html",context:document.getElementById("content"),beforeSend:function(){GM.Modal.InitLoading()},complete:function(){GM.Modal.Ajax.Request=null},success:function(o){if(o.indexOf("ModalAction:Close")>-1)GM.Modal.Close();else if(o.indexOf("ModalAction:Refresh")>-1)GM.Modal.Refresh();else if(o.indexOf("ModalAction:Alert")>-1)alert(o.substr(o.indexOf("text=")+5,o.length)),GM.Modal.Back();else if(o.indexOf("WindowAction:Refresh")>-1)if(o.indexOf("ticket=")>-1&&window.location.href.indexOf("?")-1){var e=o.substr(o.indexOf("url=")+"url=".length),t=window.location.href;t=t.substr(0,t.lastIndexOf("/")),window.location=t+"/"+e}else if(o.indexOf("WindowAction:CallExternalURL")>-1){e=o.substr(o.indexOf("url=")+"url=".length);window.location=e}else GM.Modal.Vars.modal_content.hide().html(o),$(window).scrollTop(0),GM.Modal.Resize()},error:function(o,a,e){e.indexOf("NS_ERROR_FAILURE")Oops! Tente novamente."),GM.Modal.Resize())}});else if(a){var d=$("");new Date;console.log("img"+a),d.addClass("crop_img").attr("src",a).load(function(){if(GM.Modal.Vars.modal_content.html(d).hide(),t){var o=$("").text("Salvar").addClass("button").css("margin-top","30px").bind("click",GM.Crop.Save),a=$("").text("Cancelar").addClass("button btPurple").css("margin-left","30px").bind("click",GM.Crop.Cancel),e=$("").attr("id","action_bar").appendTo(GM.Modal.Vars.modal_content),l=d.clone(),n=null,i=null,r=null;100==t[0]&&80==t[1]||300==t[0]&&250==t[1]?(100==t[0]&&80==t[1]?GM.Crop.Vars.imageType="logo":300==t[0]&&250==t[1]&&(GM.Crop.Vars.imageType="fotoMais"),n=$("").attr("id","picture_preview").css({width:t[0],height:t[1]}).appendTo(e),i=$("").attr("id","picture_preview_container").css({width:t[0],height:t[1]}).appendTo(n),$("").text("Atenção").addClass("cropText").appendTo(e),r=$("Cor de fundo: "),n.after(r),$("#preview_color").minicolors({position:"top left",change:function(o,a){GM.Crop.SetVars(null,o)}}),isEcommerce?instructions=$("").addClass("cropText").html("1) Veja como ira ficar seu logo no GuiaMais 2) Se necessário altere a cor de fundo que está como padrão em branco").appendTo(e):instructions=$("").addClass("cropText").html("1) Veja como ira ficar seu logo no GuiaMais 2) Se necessário altere a cor de fundo que está como padrão em branco3) Caso a imagem não esteja em boa qualidade (resolução/legível), solicite a produção deum logo para os nossos designers").appendTo(e)):($("").text("Você pode inserir uma legenda para essa foto digitando o texto no campo abaixo:").addClass("labelLegenda").appendTo(e),$("").attr("type","text").attr("id","legenda_crop").attr("maxlength",40).addClass("textareaLegenda").appendTo(e),$("").attr("src","img/iconeInformacao.png").attr("data-alt","O Titulo da Imagem poderá ser visto no modo de pré-visualização pelos visitantes e ajudar que seu anúncio seja encontrado nos principais buscadores.").addClass("infoLegenda").appendTo(e)),e.append(o),e.append(a),300==t[0]&&250==t[1]&&($(".cropText").css({"margin-left":"320px",width:"580px"}),$(".preview_color").css({margin:"90px 0 0 320px",position:"absolute"}),$(".button").css("margin-left","20px")),l.attr("id","originalImageToCrop").removeAttr("class").css("opacity",0).appendTo("body"),setTimeout(function(){GM.Crop.CheckAvailability(t,$("#originalImageToCrop").width(),$("#originalImageToCrop").height()),100==t[0]&&80==t[1]||300==t[0]&&250==t[1]?$("#originalImageToCrop").removeAttr("id").removeAttr("style").appendTo(i):$("#originalImageToCrop").remove()},500)}else GM.Modal.Resize()}),l&&$("#modal_content").wrap("")}GM.Modal.Vars.modal_opacity.fadeTo("normal",.6),GM.Modal.Vars.modal_root.trigger("openModalEvent")},GM.Modal.Request=function(o){GM.AjaxChecker=$.ajax({url:o.href,method:"GET",dataType:"json",cache:!1,complete:function(o){GM.Modal.Refresh()}})},GM.Modal.Resize=function(o){if(null!=GM.Modal.Vars.modal_content&&""!=GM.Modal.Vars.modal_content){var a=GM.Modal.Vars.modal_content.outerWidth(!0),e=GM.Modal.Vars.modal_content.outerHeight(!0);GM.Modal.Vars.modal.animate({width:a,height:e}),GM.Modal.Vars.modal_content.delay(500).fadeIn("normal",function(){o&&GM.Crop.Init(o[0],o[1],GM.Modal.Vars.modal_content.find("img").width(),GM.Modal.Vars.modal_content.find("img").height(),o[2],o[3])})}},GM.Modal.Back=function(){var o=GM.Modal.Vars.history[GM.Modal.Vars.history.length-2];GM.Modal.Open(o[0],o[1],!0)},GM.Modal.Refresh=function(){if(null!=GM.Modal.Vars.history&&""!=GM.Modal.Vars.history){var o=GM.Modal.Vars.history[GM.Modal.Vars.history.length-1];GM.Modal.Open(o[0],o[1],!1)}},GM.Modal.InitLoading=function(){null!=GM.Modal.Vars.modal_content&&""!=GM.Modal.Vars.modal_content&&GM.Modal.Vars.modal_content.hide()},GM.Modal.FinishLoading=function(){null!=GM.Modal.Vars.modal_content&&""!=GM.Modal.Vars.modal_content&&GM.Modal.Vars.modal_content.show()},GM.Modal.Close=function(){$("embed").remove(),GM.AjaxChecker||(GM.Modal.Ajax.Abort(GM.Modal.Ajax.Request),GM.Modal.Vars.modal_opacity.fadeOut("slow",function(){$(this).removeAttr("style")}),GM.Modal.Vars.modal.fadeOut("slow",function(){$(this).removeAttr("style")}),GM.Modal.Vars.modal_content.html("").removeAttr("style"),GM.Modal.Vars.modal_root.hide().trigger("closeModalEvent"),GM.Modal.Vars.history=[],GM.Modal.Vars.modal_body.removeClass("modal-open"))},GM.Modal.Ajax.Abort=function(o){o&&(o.abort(),o=null)},GM.showDialog=function(){return function o(){var a,e,t,l,n=null,d=null,i=i,r=r,s=-1,c="";return M.close=r,"addEventListener"in window&&window.addEventListener("scroll",function(){s>-1&&(document.body.scrollTop=document.documentElement.scrollTop=s)},!1),M;function i(){return null===n&&(n=$(function(){}.toString().substringIndexOf("/*","*/")),d=n.find(".modal"),n.find(".close").bind("click",function(o){t&&(t.call(a,e),t=null),r()}),n.bind("click",function(o){o.target&&o.target===this&&r()})),n}function M(M){if(null!==M)return console.log("showDialog"),!0===M.createNew?(M.createNew=!1,o()(M)):(n=i(),a=this,e=M,t=M.onClose,s=Math.max(document.documentElement.scrollTop,document.body.scrollTop),window.clearTimeout(l),"confirm"===M.type&&(M.title=M.title||"Atenção!",M.message+=(""===c&&(c=function(){}.toString().substringIndexOf("/*","*/")),c)),d[0].className="modal "+(M.type||""),n.find(".title").html(M.title||""),n.find(".content > .message").html(M.message||""),n.appendTo(document.body),d.css({top:Math.max(40,$(window).height()/2-d.height()/2-40+(M.offsetY||0)),width:void 0!==M.width?M.width:""}),"confirm"===M.type&&(n.find(".content > .message .btClose").click(r),n.find(".content > .message .btConfirm").click(function(o){"function"==typeof M.onConfirm&&M.onConfirm.call(a,M),r()})),window.setTimeout(function(){n.addClass("open"),"function"==typeof M.onOpen&&M.onOpen.call(n,M)},80),n.close=function(){r()},n);alert("Variável "options" é obrigatória!")}function r(){n.removeClass("open"),s=-1,l=window.setTimeout(function(){"function"==typeof e.onAfterClose&&e.onAfterClose.call(a,e),n[0].parentNode.removeChild(n[0])},400)}}()}();GM.showDialog = (function() { function Main() { var eMain = null; var eModal = null; var _bind; var _options; var onClose; var timeoutCloseWindow; var getModal = getModal; var closeModal = closeModal; var scrollTopOrig = -1; var confirmHTML = ""; showDialog.close = closeModal; if ("addEventListener" in window) { window.addEventListener("scroll", function() { if (scrollTopOrig > -1) { document.body.scrollTop = document.documentElement.scrollTop = scrollTopOrig; } }, false); } return showDialog; function getModal() { if (eMain === null) { eMain = $((function() { /* */ }).toString().substringIndexOf("/*", "*/")); eModal = eMain.find(".modal"); eMain.find(".close").bind("click", function(e) { if (onClose) { onClose.call(_bind, _options); onClose = null; } closeModal(); }); eMain.bind("click", function(e) { if (e.target && e.target === this) { closeModal(); } }); } return eMain; } function getConfirmHTML() { if (confirmHTML === "") { confirmHTML = (function() { /* Cancelar Confirmar */ }).toString().substringIndexOf("/*", "*/"); } return confirmHTML; } function showDialog(options) { if (options === null) { alert("Variável "options" é obrigatória!"); return; } if (options.createNew === true) { options.createNew = false; return Main()(options); } eMain = getModal(); _bind = this; _options = options; onClose = options.onClose; scrollTopOrig = Math.max(document.documentElement.scrollTop, document.body.scrollTop); window.clearTimeout(timeoutCloseWindow); if (options.type === "confirm") { options.title = options.title || "Atenção!"; options.message += getConfirmHTML(); } eModal[0].className = "modal " + (options.type || ""); eMain.find(".title").html(options.title || ""); eMain.find(".content > .message").html(options.message || ""); eMain.appendTo(document.body); eModal.css({ top: Math.max(40, ($(window).height() / 2) - (eModal.height() / 2) - 40 + (options.offsetY || 0)), width: (options.width !== undefined ? options.width : "") }); if (options.type === "confirm") { eMain.find(".content > .message .btClose").click(closeModal); eMain.find(".content > .message .btConfirm").click(function(e) { if (typeof options.onConfirm === "function") { options.onConfirm.call(_bind, options); } closeModal(); }); } window.setTimeout(function() { eMain.addClass("open"); if ("function" === typeof options.onOpen) { options.onOpen.call(eMain, options); } }, 80); eMain.close = function() { closeModal(); }; return eMain; } function closeModal() { eMain.removeClass("open"); scrollTopOrig = -1; timeoutCloseWindow = window.setTimeout(function() { if (typeof _options.onAfterClose === "function") { _options.onAfterClose.call(_bind, _options); } eMain[0].parentNode.removeChild(eMain[0]); }, 400); } } return Main();})(); O GUIA MAIS se utiliza de “cookies” e tecnologias similares objetivando a melhora de suas experiências na utilização de nossos serviços, personalizando as publicidades exibidas e recomendando conteúdos que possam ser de seu interesse! Ao utilizar nossos serviços você acata este monitoramento OK var hasStorCookie = window.localStorage.getItem("gmStorePricacy"); if(!hasStorCookie){ document.getElementById("cookie-notice").style.display="block"; } function acceptPrivacy(){ console.log("call acceptPrivacy"); window.localStorage.setItem("gmStorePricacy","true"); document.getElementById("cookie-notice").style.display="none"; } function defer() { if (window.jQuery) { var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = cdnVar + "/mins/home.js?v=276"; var x = document.getElementsByTagName("head")[0]; x.appendChild(s); } else { setTimeout(function() { defer() }, 50); }}function defer2() { var _prum = [["id", "579b9c21abe53d940bef4d70"], ["mark", "firstbyte", (new Date()).getTime()]]; (function() { var s = document.getElementsByTagName("script")[0] , p = document.createElement("script"); p.async = "async"; p.src = "//rum-static.pingdom.net/prum.min.js"; s.parentNode.insertBefore(p, s); })(); }function afterFinished(){ if (!getCookie("niceUrl")){ showPopover(); } if ("null" == "reset"){ delCookie("LatLng"); } if (getCookie("LatLng") != ""){ $("#where").val("Perto de Mim"); $("#oqueFazer").text("Perto de Mim"); } } window.addEventListener("load", function(){ setTimeout(function() { var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = cdnVar + "/mins/jquery-3-6-0.min.js?v=276"; var x = document.getElementsByTagName("head")[0]; x.appendChild(s); defer(); defer2(); }, 2000);});
follow
https://dicas.guiamais.com.br/arte-e-decoracao/tendencias-de-decoracao-para-transformar-sua-casa/