LEFT SIDEBAR PAGE

строительство и ремонт деревянных домов

show(); }, function(){ $(`ul.hidden_li`, this).hide(); }); */ }); $(`.ajax-modal`).click(function(e) { e.preventDefault(); var href = $(e.target).attr(`href`); if (href.indexOf(` `) == 0) { $(href).modal(`open`); } else { $.get(href, function(data) { $(` ` + data + ` `).modal({keyboard: true}); }); } }); $(document).ready(function() { $(" to_modal").live(`click`, function() { var url = $(this).attr(`url`); var modal_id = $(this).attr(`data-controls-modal`); $(" " + modal_id).load(url); }); }); $(` tags_suggest`).tagsInput({ `removeWithBackspace` : true, `height`:`auto`, `width`:`auto`, `defaultText`:``, `minChars` : 3, `maxChars` : 30 }); $(` tags_upload`).tagsInput({ `removeWithBackspace` : true, `height`:`auto`, `width`:`auto`, `defaultText`:``, `minChars` : 3, `maxChars` : 30 }); $("[rel=tooltip]").tooltip(); $(` myModal`).modal({ keyboard: true, show: false }); $(document).ready(function() { var input = document.createElement( `input` ), comment = jQuery( ` comment` ); if ( `placeholder` in input ) { comment.attr( `placeholder`, jQuery( `.comment-textarea label` ).remove().text() ); } // Expando Mode: start small, then auto-resize on first click + text length jQuery( ` comment-form-identity` ).hide(); jQuery( ` commentform .form-submit` ).hide(); comment.css( { `height`:`120px` } ).one( `focus`, function() { jQuery( ` comment-form-identity` ).slideDown(); jQuery( ` commentform .form-submit` ).slideDown(); }); }); /* language selector */ $(document).ready(function() { $(".lang_selected").click( function() { var submenu = $(".lang_submenu"); if( submenu.css("display") == "block" ) { submenu.css( "display", "none" ); $(this).removeClass(); $(this).addClass("lang_selected"); } else { submenu.css( "display", "block" ); $(this).removeClass(); $(this).addClass("lang_selected_onclick"); } } ); $("a[id^=`lang_select_`]").each( function() { var id = parseInt( this.name ); var lang = $(` lang_select_` + id); lang.click( function() { $.post( MELODYURL2+"/index.php", { select_language: 1, lang_id: id }, function() { window.location.reload(); }, ``); }); }); }); $(document).ready(function() { $(" pm_sources").change(function () { var str = $("select option:selected").attr(`value`); $(" pm_sources_ex").text(str); }) .change(); var $el, $ps, $up, totalHeight; $(".text-exp .show-now").click(function() { totalHeight = 0; $el = $(this); $p = $el.parent(); $up = $p.parent(); $ps = $up.find("p:not(`.show-more`)"); // measure how tall inside should be by adding together heights of all inside paragraphs (except read-more paragraph) $ps.each(function() { totalHeight += $(this).outerHeight() }); // Set height to prevent instant jumpdown when max height is removed totalHeight += 40; $up.css({"height":$up.height(), "max-height":9999}).animate({"height":totalHeight}); $p.fadeOut(); return false }); }); $(function() { var input = document.createElement("input"); if((`placeholder` in input)==false) { $(`[placeholder]`).focus(function() { var i = $(this); if(i.val() == i.attr(`placeholder`)) { i.val(``).removeClass(`placeholder`); if(i.hasClass(`password`)) { i.removeClass(`password`); this.type=`password`; } } }).blur(function() { var i = $(this); if(i.val() == `` || i.val() == i.attr(`placeholder`)) { if(this.type==`password`) { i.addClass(`password`); this.type=`text`; } i.addClass(`placeholder`).val(i.attr(`placeholder`)); } }).blur().parents(`form`).submit(function() { $(this).find(`[placeholder]`).each(function() { var i = $(this); if(i.val() == i.attr(`placeholder`)) i.val(``); }) }); } }); function SelectAll(id) { document.getElementById(id).focus(); document.getElementById(id).