{"id":178241,"date":"2013-04-28T17:52:03","date_gmt":"2013-04-28T13:52:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=178241"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=178241","title":{"rendered":"<span class=\"post_title\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u044c \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0444\u0443\u0442\u0435\u0440\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439 \u0445\u0430\u0431\u0440!<br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0442\u0430\u0440\u044b\u0439, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0440\u0435\u0446\u0435\u043f\u0442 \u043f\u0440\u0438\u0436\u0430\u0442\u0438\u044f \u0444\u0443\u0442\u0435\u0440\u0430 \u043a \u043d\u0438\u0437\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u0438\u043d\u0443\u0441\u043e\u0432\u044b\u043c\u0438 \u043e\u0442\u0441\u0442\u0443\u043f\u0430\u043c\u0438, \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043a\u0440\u0430\u0441\u0438\u0432\u043e. <br \/>  \u0425\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0442\u0440\u0430\u043a\u0442\u043e\u0432\u043a\u0443 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0435\u0446\u0435\u043f\u0442\u0430, \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c jQuery, \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u043f\u0440\u043e\u0448\u0443 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u043c\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0443\u0431\u043b\u0435\u043d\u043d\u0443\u044e \u0432 \u0444\u043e\u0442\u043e\u0448\u043e\u043f\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0431\u0438\u0445\u0430\u043d\u043a\u0438<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/41a\/44e\/984\/41a44e9845d723a692e7547fa44a4ddd.png\"\/><\/p>\n<p>  \u041c\u0435\u0436\u0434\u0443 \u0444\u0443\u0442\u0435\u0440\u043e\u043c \u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430, \u0430 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a?<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/715\/45b\/9f3\/71545b9f37da6cbb24f3e8ad6772b891.png\"\/><\/p>\n<p>  \u0412\u0440\u043e\u0434\u0435 \u043b\u0443\u0447\u0448\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2f2\/f04\/06c\/2f2f0406c372ef893b1d83081b2ee656.png\"\/><\/p>\n<p>  \u0417\u043e\u043b\u043e\u0442\u043e\u0439 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u044b \u043d\u0435\u0442. \u0418\u043b\u0438 \u0435\u0441\u0442\u044c? \u041e \u043a\u0440\u0430\u0441\u043e\u0442\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0441\u043f\u043e\u0440\u0438\u0442\u044c, \u043a\u043e\u043c\u0443 \u0442\u043e \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0444\u0443\u0442\u0435\u0440 \u043b\u0443\u0447\u0448\u0435, \u043a\u043e\u043c\u0443 \u0442\u043e \u043c\u0435\u043d\u044c\u0448\u0438\u0439 \u043b\u0443\u0447\u0448\u0435, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0444\u0443\u0442\u0435\u0440 \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0432\u044b\u0441\u043e\u0442\u043e\u0439.<\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441 \u043a\u043e\u0434\u043e\u043c  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;!--[if lt IE 7]&gt;      &lt;html class=&quot;no-js lt-ie9 lt-ie8 lt-ie7&quot;&gt; &lt;![endif]--&gt; &lt;!--[if IE 7]&gt;         &lt;html class=&quot;no-js lt-ie9 lt-ie8&quot;&gt; &lt;![endif]--&gt; &lt;!--[if IE 8]&gt;         &lt;html class=&quot;no-js lt-ie9&quot;&gt; &lt;![endif]--&gt; &lt;!--[if gt IE 8]&gt;&lt;!--&gt; &lt;html class=&quot;no-js&quot;&gt; &lt;!--&lt;![endif]--&gt;     &lt;head&gt;         &lt;meta charset=&quot;utf-8&quot;&gt;         &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&gt;         &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot;&gt;     &lt;\/head&gt;     &lt;body&gt;         &lt;style&gt;           SECTION.main, FOOTER {             width:1100px;             margin:0 auto           }           FOOTER {             height:20px;           }         &lt;\/style&gt;         &lt;SECTION class=&quot;main&quot;&gt;         &lt;\/SECTION&gt;         &lt;FOOTER&gt;           &lt;p&gt;\u044f \u0444\u0443\u0442\u0435\u0440!         &lt;\/FOOTER&gt;         &lt;script src=&quot;\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.9.1\/jquery.min.js&quot;&gt;&lt;\/script&gt;         &lt;script&gt;window.jQuery || document.write('&lt;script src=&quot;js\/vendor\/jquery-1.9.1.min.js&quot;&gt;&lt;\\\/script&gt;')&lt;\/script&gt;         &lt;script&gt;             $(document).ready(function(){                 function setFooterPosition()                 {                     var mainBlockHeight = $('SECTION.main').outerHeight(true)                     var browserViewportHeight = $(window).height()                     var footerBlockHeight = $('FOOTER').outerHeight(true)                      var lastViewportHeight = browserViewportHeight - (mainBlockHeight + footerBlockHeight)                      if(lastViewportHeight &gt; 0)                     {                         var needFooterMarginTop = lastViewportHeight * 0.2 \/\/20%                         var needFooterPaddingBottom = lastViewportHeight * 0.8 \/\/80%                          $('body &gt; FOOTER').css('marginTop', needFooterMarginTop)                         $('body &gt; FOOTER').css('paddingBottom', needFooterPaddingBottom)                     }                 }                  $(window).resize(setFooterPosition())                  setFooterPosition()             })         &lt;\/script&gt;     &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. 20% \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u043c \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u0438 \u0444\u0443\u0442\u0435\u0440\u043e\u043c, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 80% \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u0432\u044b\u0441\u043e\u0442\u0443 \u0444\u0443\u0442\u0435\u0440\u0430, \u0435\u0441\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0435\u0442 \u2014 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443 \u0444\u0443\u0442\u0435\u0440\u0430. <\/p>\n<p>  \u0412\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0430\u043c\u044b\u043c\u0438 \u043d\u0435\u043c\u044b\u0441\u043b\u0438\u043c\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u0442\u0435\u0440\u043e\u043c \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443, \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u0442\u0435\u0440\u044b. \u0421 \u0443\u0432. \u0430\u0432\u0442\u043e\u0440 \u0442\u043e\u043f\u0438\u043a\u0430, \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0432\u0430\u043c \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f.    \t \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\/178241\/\"> http:\/\/habrahabr.ru\/post\/178241\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439 \u0445\u0430\u0431\u0440!<br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0442\u0430\u0440\u044b\u0439, \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0440\u0435\u0446\u0435\u043f\u0442 \u043f\u0440\u0438\u0436\u0430\u0442\u0438\u044f \u0444\u0443\u0442\u0435\u0440\u0430 \u043a \u043d\u0438\u0437\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u0438\u043d\u0443\u0441\u043e\u0432\u044b\u043c\u0438 \u043e\u0442\u0441\u0442\u0443\u043f\u0430\u043c\u0438, \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043a\u0440\u0430\u0441\u0438\u0432\u043e. <br \/>  \u0425\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0442\u0440\u0430\u043a\u0442\u043e\u0432\u043a\u0443 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0435\u0446\u0435\u043f\u0442\u0430, \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c jQuery, \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u043f\u0440\u043e\u0448\u0443 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u043c\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/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-178241","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178241","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=178241"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178241\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}