{"id":189258,"date":"2013-08-07T14:44:06","date_gmt":"2013-08-07T10:44:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=189258"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=189258","title":{"rendered":"<span class=\"post_title\">\u041a\u0430\u043a \u044f \u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u0445\u043e\u0442\u0435\u043b\u043a\u0430\u0445<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 \u043f\u0443\u0442\u044c \u0441 \u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043d\u0438\u0436\u0435\u043a \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0435\u043a, \u0438\u043d\u043e\u0439 \u0440\u0430\u0437 \u0432\u044b\u0438\u0441\u043a\u0438\u0432\u0430\u044f \u043d\u0430 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0444\u043e\u0440\u0443\u043c\u0430\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f\/\u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u043b\u0438\u0441\u044c \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0434\u0435\u043c\u043a\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f\u0445, \u0447\u0442\u043e \u0441\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043a \u043b\u0435\u043d\u0438\u0432\u043e\u043c\u0443 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044e \u0438 \u0441\u043a\u043e\u0440\u0435\u0439\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u0440\u0430\u0434\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043a \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0433\u043b\u0430\u0432\u044b, \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0442.\u0434. \u042f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0441\u0430\u043c\u0443\u0440\u0430\u0439 \u2014 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0445\u043e\u0442\u0435\u043b\u043a\u0438 \u0438 \u043f\u043e \u0445\u043e\u0434\u0443 \u0434\u0435\u043b\u0430 \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u043a \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u043c\u0430\u0442\u0447\u0430\u0441\u0442\u044c.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0441\u043a\u0430\u043b \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u043a\u0430\u0445 \u0438\u0437\u0443\u0447\u0430\u0435\u043c\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043c javascript, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u0441\u043a\u043e\u0440\u0435 \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043a\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0422\u0430\u043a \u0438 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0425\u0430\u0431\u0440. <br \/>  \u041f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u0441\u0435\u0442\u0438\u043b\u0430 \u0438\u0434\u0435\u044f \u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0432 \u043f\u043e\u0441\u0442\u0430\u0445 \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043e\u043d\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0448\u0430\u043b\u0438. \u041d\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u043b\u044f \u0438\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0436\u0435 \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u043b\u0430 \u0431\u044b. <br \/>  \u0417\u0430\u0433\u043b\u044f\u043d\u0443 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u043f\u0435\u0440\u0435\u0434 \u0438 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u0441\u0440\u0430\u0437\u0443 \u044f \u043f\u0440\u0438\u0448\u0435\u043b \u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u043d\u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u043b\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u0442\u0440\u0438 \u2014 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0440\u0430\u0431\u043e\u0442\u0435, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438 \u043a \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c. \u041a\u0430\u0436\u0434\u043e\u043c\u0443 \u0431\u043b\u043e\u043a\u0443 \u0431\u044b\u043b \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u044f \u0440\u0435\u0448\u0438\u043b \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0449\u0435 \u0434\u043b\u044f \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u0438 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u0434\u0430\u0447. <br \/>  \u041a\u0430\u043a \u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0433\u043e \u043d\u0435 \u0434\u0443\u043c\u0430\u043b \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u00abdisplay: none\u00bb \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u00abdisplay: block\u00bb \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u043e DOM-\u0443 \u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u044b\u0445 \u0432 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u0433\u0430 img. \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u043b\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u044f\u0442\u0430\u043b \u0432\u0441\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">    function initialHide() {          function hideReply() {             var replies = document.querySelectorAll('.reply_comments');             for (var r = 0; r &lt; replies.length; r++) {                 var reply = replies[r];                 reply.style.display = 'none';             }         }         hideReply();          function hideImages() {             var images = document.querySelectorAll(&quot;.content &gt; img, .content &gt; div &gt; img, .content &gt; div &gt; div &gt; img, .content &gt; a &gt; img, .content &gt; a &gt; div &gt; img, .content &gt; table &gt; tbody &gt; tr&gt; td&gt; a &gt; img, .content &gt; table &gt; tbody &gt; tr&gt; td&gt; img, .content &gt; ul &gt; li &gt; img, .content &gt; ul &gt; li &gt; table &gt; tbody &gt; tr&gt; td&gt; img, .message &gt; a &gt; img, .message &gt; img, .sidebar_right &gt; .banner_300x500, .sidebar_right &gt; #htmlblock_placeholder&quot;);             for (var m = 0; m &lt; images.length; m++) {                 var image = images[m];                 image.style.display = &quot;none&quot;;             }         }         hideImages();      } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a \u043d\u0435\u0439 \u0441\u0442\u0438\u043b\u0438, \u0432\u0435\u0434\u044c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u043a\u0430\u043a \u0443 \u0445\u0430\u0431\u0440\u0430.<br \/>  \u0422\u0443\u0442 \u044f \u043f\u043e\u0447\u0438\u0442\u0430\u043b \u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 \u0438 \u043d\u0430\u0431\u0440\u0435\u043b \u043d\u0430 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0443\u044e <a href=\"http:\/\/davidwalsh.name\/add-rules-stylesheets\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>. \u0412\u043e\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<pre><code class=\"javascript\">    function imgPosts() {          var imgs = document.querySelectorAll(&quot;.content &gt; img, .content &gt; div &gt; img, .content &gt; div &gt; div &gt; img, .content &gt; a &gt; img, .content &gt; a &gt; div &gt; img, .content &gt; table &gt; tbody &gt; tr&gt; td&gt; a &gt; img, .content &gt; table &gt; tbody &gt; tr&gt; td&gt; img, .content &gt; ul &gt; li &gt; img, .content &gt; ul &gt; li &gt; table &gt; tbody &gt; tr&gt; td&gt; img, .message &gt; a &gt; img, .message &gt; img&quot;);         var button = document.createElement(&quot;input&quot;);         button.type = &quot;button&quot;;         button.className = &quot;habraimage&quot;;         button.value = &quot;\u25c4 \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f&quot;;          document.querySelectorAll(&quot;.main_menu&quot;)[0].appendChild(button);            button.onclick = function () {              for (var x = 0; x &lt; imgs.length; x++) {                 var img = imgs[x];                 img.style.display = (img.style.display != 'none' ? 'none' : 'block');             }          };          function addCSSRule(sheet, selector, rules) {             if (sheet.insertRule) {                 sheet.insertRule(selector + &quot;{&quot; + rules + &quot;}&quot;);             } else {                 sheet.addRule(selector, rules);             }          }           addCSSRule(document.styleSheets[0], &quot;.habraimage&quot;, &quot;position:fixed; right: 6%; z-index: 1; height: 2.45em; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; background-image: -webkit-linear-gradient(top, #eeeeee, #e1e1e1); background-image: linear-gradient(top, #eeeeee, #e1e1e1); background-image: -moz-linear-gradient(top, #eeeeee, #e1e1e1); background-repeat: repeat-x; border: 1px solid #d9d8d8; border-color: #d9d8d8 #cccbcb #aeaeae; text-shadow: 0 1px 0px rgba(255, 255, 255, 0.8); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0px 1px 7px rgba(177, 180, 199, 1); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0px 1px 7px rgba(177, 180, 199, 1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0px 1px 7px rgba(177, 180, 199, 1);&quot;);          addCSSRule(document.styleSheets[0], &quot;.habraimage:hover&quot;, &quot;background-color: #fcfcfc !important; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fcfcfc), to(#e8e8e8));background-image: -webkit-linear-gradient(top, #fcfcfc, #e8e8e8); background-image: linear-gradient(top, #fcfcfc, #e8e8e8); background-image: -moz-linear-gradient(top, #fcfcfc, #e8e8e8);background-repeat: repeat-x; text-decoration: none;&quot;);     } <\/code><\/pre>\n<p>  \u0420\u0435\u043c\u0430\u0440\u043a\u0430 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u2014 IE \u0432 \u043f\u043b\u0430\u043d\u0430\u0445 \u0431\u044b\u043b \u0441\u0440\u0430\u0437\u0443, \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u0441\u0442\u0430 \u043f\u043e\u0434 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u043c ssd.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a \u0431\u044b\u043b \u0441\u0430\u043c\u044b\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0438, \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c. \u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f, \u043d\u043e \u0435\u0449\u0435 \u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043e\u0442\u0432\u0435\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u0442\u0443\u043f\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0432\u043d\u043e \u043d\u0443\u043b\u044e, \u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u043b\u044f \u0431\u043e\u043a\u0430 \u0441 \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c. \u0422\u0430\u043a\u0436\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u043b\u0435 \u043a\u043d\u043e\u043f\u043a\u0438. \u041d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u0448\u044c, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u00ab\u043e\u0442\u0432\u0435\u0442\u00bb \u0438 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043a\u043b\u043e\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445. \u0422\u0443\u0442 \u044f \u043d\u0430\u0447\u0430\u043b \u0431\u044b\u043b\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434, \u043d\u043e \u0432\u043e\u0432\u0440\u0435\u043c\u044f \u043e\u043f\u043e\u043c\u043d\u0438\u043b\u0441\u044f \u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0448\u0438\u043b\u0438 \u0431\u0435\u0437 \u043c\u0435\u043d\u044f. \u0412\u0441\u0435 \u0432\u0435\u0440\u043d\u043e, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0448\u043b\u043e\u0441\u044c:<\/p>\n<pre><code class=\"javascript\">            function declOfNum(number, titles) {                 cases = [2, 0, 1, 1, 1, 2];                 return titles[(number % 100 &gt; 4 && number % 100 &lt; 20) ? 2 : cases[(number % 10 &lt; 5) ? number % 10 : 5]];             } <\/code><\/pre>\n<p>  \u041d\u0443 \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0441\u0442\u0430\u043b \u0442\u0440\u0435\u0442\u0438\u0439 \u0431\u043b\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u0437\u0430 \u0441\u043a\u0440\u044b\u0442\u0438\u0435\/\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0435\u0440\u0435\u0432\u0430 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043a \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043d\u043e\u043f\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u043e\u0441\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f:<\/p>\n<pre><code class=\"javascript\">    hideReplies();      function hideReplies() {          function getChildrenByClassName(el, className) {             var children = [];             for (var i = 0; i &lt; el.childNodes.length; i++) {                 if (el.childNodes[i].className == className) {                     children.push(el.childNodes[i]);                 }             }             return children;         }          function addBtn() {             var comments = document.querySelectorAll(&quot;.comments_list &gt; .comment_item&quot;),                 comment, combody;              function declOfNum(number, titles) {                 cases = [2, 0, 1, 1, 1, 2];                 return titles[(number % 100 &gt; 4 && number % 100 &lt; 20) ? 2 : cases[(number % 10 &lt; 5) ? number % 10 : 5]];             }              for (var i = 0; i &lt; comments.length; i++) {                 comment = comments[i];                 var replies = comment.querySelectorAll('.reply_comments .comment_body');                 if (replies.length &gt; 0) {                     combody = getChildrenByClassName(comment, 'comment_body')[0];                     if (combody) {                         var btn = document.createElement(&quot;input&quot;);                         btn.type = &quot;button&quot;;                         btn.className = &quot;hidereplies&quot;;                         btn.value = replies.length + declOfNum(replies.length, [' \u043e\u0442\u0432\u0435\u0442', ' \u043e\u0442\u0432\u0435\u0442\u0430', ' \u043e\u0442\u0432\u0435\u0442\u043e\u0432']);                         combody.appendChild(btn);                     }                 }             }              function addCSSRule(sheet, selector, rules) {                 if (sheet.insertRule) {                     sheet.insertRule(selector + &quot;{&quot; + rules + &quot;}&quot;);                 } else {                     sheet.addRule(selector, rules);                 }              }              addCSSRule(document.styleSheets[0], &quot;.hidereplies&quot;, &quot;height: 2em; margin-bottom: 2em; border-radius: 6px; background-image: -webkit-linear-gradient(top, #eeeeee, #e1e1e1); background-image: -o-linear-gradient(top, #eeeeee, #e1e1e1); background-image: linear-gradient(top, #eeeeee, #e1e1e1); background-image: -moz-linear-gradient(top, #eeeeee, #e1e1e1); background-repeat: repeat-x; border: 1px solid #d9d8d8; border-color: #d9d8d8 #cccbcb #aeaeae; text-shadow: 0 1px 0px rgba(255, 255, 255, 0.8); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);&quot;);              addCSSRule(document.styleSheets[0], &quot;.hidereplies:hover&quot;, &quot;background-color: #fcfcfc; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fcfcfc), to(#e8e8e8));background-image: -webkit-linear-gradient(top, #fcfcfc, #e8e8e8); background-image: linear-gradient(top, #fcfcfc, #e8e8e8); background-image: -moz-linear-gradient(top, #fcfcfc, #e8e8e8);background-repeat: repeat-x; text-decoration: none;&quot;);              addCSSRule(document.styleSheets[0], &quot;.hidereplies:active&quot;, &quot;-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); background: #e1e1e1 !important; border: 1px solid #a4a7ac; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); border-color: #a4a7ac #d2d3d4 #e1e1e1; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);&quot;);          }         addBtn();           function hideR() {             var buttons = document.querySelectorAll(&quot;.hidereplies&quot;);              for (a = 0; a &lt; buttons.length; a++) {                 var btn = buttons[a];                 btn.onclick = function (event) {                     var btn = event.currentTarget;                     var comments = btn.parentNode.parentNode.querySelectorAll(&quot;.reply_comments&quot;);                     for (var y = 0; y &lt; comments.length; y++) {                         var reply = comments[y];                         reply.style.display = (reply.style.display != 'none' ? 'none' : 'block');                     }                 };             }         }         hideR();       } <\/code><\/pre>\n<p>  \u0410 \u043e\u0431\u0435\u0440\u043d\u0443\u043b \u044f \u0432\u0441\u0435 \u0431\u043b\u043e\u043a\u0438 \u0432 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u0443\u044e \u0441\u0430\u043c\u043e\u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0443\u044e\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044e.<\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u043d\u0430 <a href=\"https:\/\/github.com\/glebcha\/habralite\">\u0433\u0438\u0442\u0445\u0430\u0431<\/a>.<\/p>\n<p>  \u0421 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0445 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u0432 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u043d\u0435 \u0432\u043d\u0438\u043a\u0430\u043b \u0438 \u0441\u0434\u0435\u043b\u0430\u043b \u0438\u0445 \u043f\u043e\u0441\u043b\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0434\u043b\u044f <a href=\"https:\/\/developer.chrome.com\/extensions\/index.html\">Chrome<\/a> \u0438 <a href=\"http:\/\/developer.apple.com\/library\/safari\/#documentation\/Tools\/Conceptual\/SafariExtensionGuide\/Introduction\/Introduction.html\">Safari<\/a>. \u0427\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 Chrome, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0412\u0441\u0435\u043c, \u0441\u043e\u0431\u0440\u0430\u0432\u0448\u0438\u043c\u0441\u044f \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c\u0438 \u0441\u0438\u043b\u0430\u043c\u0438 \u0438 \u0434\u043e\u0447\u0438\u0442\u0430\u0432\u0448\u0438\u043c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u2014 \u0441\u043f\u0430\u0441\u0438\u0431\u043e. \u041f\u0440\u043e\u0448\u0443 \u0438\u0437\u0432\u0438\u043d\u0438\u0442\u044c \u0437\u0430 \u043b\u044f\u043f\u044b, \u043f\u043e\u0440\u0442\u044f\u043d\u043a\u0438 \u043a\u043e\u0434\u0430 \u0438 \u043d\u0435\u043a\u0438\u0439 \u0441\u0443\u043c\u0431\u0443\u0440. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c, \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0443\u0440\u043e\u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u2014 \u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438 \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u0435\u0435 \u0438 \u0432\u0435\u0441\u0435\u043b\u0435\u0435. \u042f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0438 \u0431\u0443\u0434\u0443 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0434 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043a\u0440\u0438\u0442\u0438\u043a\u0435. \u0422\u0430\u043a\u0436\u0435 \u0441 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435\u043c \u0441\u043a\u043e\u043e\u043f\u0435\u0440\u0438\u0440\u0443\u044e\u0441\u044c \u0441 \u043a\u0435\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u044d\u0442\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u0439 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0445 \u043f\u043b\u0430\u043d\u0430\u0445 \u2014 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043a\u0430\u043a \u043e\u043f\u044b\u0442\u043d\u043e\u043c\u0443 \u043d\u0430\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u0443, \u0442\u0430\u043a \u0438 \u0442\u0430\u043a\u043e\u043c\u0443 \u0436\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0435\u043c\u0443 \u043a\u0430\u043a \u044f \ud83d\ude42 \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/189258\/\"> http:\/\/habrahabr.ru\/post\/189258\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 \u043f\u0443\u0442\u044c \u0441 \u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043d\u0438\u0436\u0435\u043a \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0435\u043a, \u0438\u043d\u043e\u0439 \u0440\u0430\u0437 \u0432\u044b\u0438\u0441\u043a\u0438\u0432\u0430\u044f \u043d\u0430 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0444\u043e\u0440\u0443\u043c\u0430\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f\/\u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u043b\u0438\u0441\u044c \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0434\u0435\u043c\u043a\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f\u0445, \u0447\u0442\u043e \u0441\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043a \u043b\u0435\u043d\u0438\u0432\u043e\u043c\u0443 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044e \u0438 \u0441\u043a\u043e\u0440\u0435\u0439\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u0440\u0430\u0434\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043a \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0433\u043b\u0430\u0432\u044b, \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0442.\u0434. \u042f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0441\u0430\u043c\u0443\u0440\u0430\u0439 \u2014 \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0445\u043e\u0442\u0435\u043b\u043a\u0438 \u0438 \u043f\u043e \u0445\u043e\u0434\u0443 \u0434\u0435\u043b\u0430 \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u043a \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u043c\u0430\u0442\u0447\u0430\u0441\u0442\u044c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-189258","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/189258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=189258"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/189258\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=189258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=189258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=189258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}