{"id":159021,"date":"2012-11-17T10:20:03","date_gmt":"2012-11-17T06:20:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=159021"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=159021","title":{"rendered":"<span class=\"post_title\">\u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0441\u0430\u0439\u0442\u0430 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 JavaScript<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e. <\/p>\n<p>  \u0412 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b\u0430 \u043e\u0434\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439. \u0425\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0441 \u0425\u0430\u0431\u0440\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c.<\/p>\n<h4>\u0417\u0430\u0434\u0430\u0447\u0430<\/h4>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 N \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0431\u0430\u043d\u043d\u0435\u0440\u0430 \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0447\u0442\u043e \u0431\u044b \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u044b\u043b \u0435\u0434\u0438\u043d \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0447\u0442\u043e \u0431\u044b \u0432\u0435\u0440\u0441\u0442\u043a\u0430 \u043d\u0435 \u043b\u043e\u043c\u0430\u043b\u0430\u0441\u044c. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043c\u043e\u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0442\u0435\u0433\u0430  \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. <br \/>  \u041f\u0435\u0440\u0432\u043e\u0439 \u043c\u044b\u0441\u043b\u044c\u044e \u0431\u044b\u043b\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043a\u0440\u043e\u043c\u0435 \u0432\u0441\u0442\u0430\u0432\u043a\u0438 js \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0432 \u0441\u043b\u043e\u0439 \u0441 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0441\u0434\u0432\u0438\u0433\u0430\u0442\u044c. \u041d\u043e, \u0443\u0432\u044b, \u0441 \u044d\u0442\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0412\u043e\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445:  <\/p>\n<ul>\n<li>CSS, \u043d\u0430 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0430\u0439\u0442\u0430\u0445 \u0441\u0442\u0438\u043b\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a \u0442\u0435\u0433\u0443 body, \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043b\u043e\u043f\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e css, \u0447\u0442\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e \u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/li>\n<li>JavaScript, \u0442\u043e\u0442 \u0436\u0435 jQuery \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 document.body, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0433\u043e. \u041b\u0435\u0447\u0438\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u0435\u0437\u043d\u044c \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c document.body = document.getElementById(&quot;_NEW_DIV&quot;); \u041d\u043e \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u044d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u0439. \u041f\u0435\u0440\u0435\u0434 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 \u0441\u0430\u0439\u0442\u0430.<\/li>\n<li>\u0421\u043d\u044f\u0442\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441 body. onLoad etc. \u042d\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0427\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435 \u0433\u0443\u0434, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440 \u0447\u0430\u0441\u0442\u044c \u043c\u044b \u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e \u043f\u043e\u043b\u043d\u043e\u0439.<\/li>\n<\/ul>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u044d\u0442\u043e\u0433\u043e \u0431\u044b\u043b\u043e \u0435\u0449\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u0432\u044f\u0437\u0430\u043d\u044b\u0445 \u0441 \u044d\u0442\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c. \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0443\u0442 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0435 \u2014 \u0440\u0430\u0441\u043f\u0438\u0448\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0431\u044b\u043b \u043e\u0442\u0431\u0440\u043e\u0448\u0435\u043d \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0439\u0442\u0438 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<br \/>  \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c\u0443 DOM \u0434\u0435\u0440\u0435\u0432\u0443, \u0438 \u0441\u043c\u0435\u0449\u0430\u043b \u043d\u0443\u0436\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<br \/>  \u041b\u043e\u0433\u0438\u043a\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f:  <\/p>\n<ul>\n<li>_M$.start() \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438 \u0436\u0434\u0435\u0442 \u043f\u043e\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u0432\u0435\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.<\/li>\n<li>_M$.shift(document.body, 0) \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0443. \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f document.body, \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 child. \u0417\u0430\u0442\u0435\u043c \u0438\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 position. \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 position 3-\u0445 \u0442\u0438\u043f\u043e\u0432. absolute, fixed, \u0438 relative<\/li>\n<li>\u0412\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u043b\u0430\u0433\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0441\u043c\u0435\u0449\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 absolute \u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439. <\/li>\n<li>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 position = relative; \u043c\u044b \u043c\u0435\u043d\u044f\u0435\u043c \u0444\u043b\u0430\u0433 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043d\u0430 1 \u0438 \u0438\u0434\u0435\u043c \u0433\u043b\u0443\u0431\u0436\u0435 \u0432 \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0432 \u043d\u0435\u043c \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e child \u0441 position fixed<\/li>\n<li>\u0415\u0441\u043b\u0438 position = absolute \u0438 \u0444\u043b\u0430\u0433 0 \u2014 \u0442\u043e \u0438\u0434\u0435\u0442 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443. \u0424\u043b\u0430\u0433 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 1. \u0415\u0441\u043b\u0438 \u0444\u043b\u0430\u0433 \u0443\u0436\u0435 1 \u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0434\u0435\u043c \u0433\u043b\u0443\u0431\u0436\u0435<\/li>\n<li>\u0415\u0441\u043b\u0438 position = fixed \u0442\u043e \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u0435\u0449\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/li>\n<li>\u041d\u0430 \u0442\u043e\u043c \u0436\u0435 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u2014 \u043c\u044b \u0442\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c display. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f grid (\u0442\u043e \u0435\u0441\u0442\u044c moz-grid, ie-grid \u0438 \u0442.\u0434.) \u0438 \u0444\u043b\u0430\u0433 = 0 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043b\u043e\u0441\u044c relative \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0448\u043b\u043e \u0435\u0433\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435<\/li>\n<li>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0438\u0434\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0441\u043b\u043e\u044f \u0432 \u0441\u0430\u043c\u043e\u043c \u0432\u0435\u0440\u0445\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0421 position = static \u043e\u043d \u0441\u043c\u0435\u0449\u0430\u043b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u043b\u043e\u0438<\/li>\n<\/ul>\n<p>  \u0410 \u0432\u043e\u0442 \u0438 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:  <\/p>\n<pre><code class=\"javascript\">(function(){ \t_D$ = { \t\te: {}, \t\tg:function(id){ \t\t\tif(typeof _D$.e[id] == &quot;undefined&quot;) _D$.e[id] = document.getElementById(id); \t\t\treturn _D$.e[id]; \t\t}, \t\tc:function(e){ \t\t\tif(typeof e != &quot;undefined&quot; && e.hasChildNodes()) return e.childNodes; \t\t}, \t\ts:function(e, s){ \t\t\tif(document.defaultView&&document.defaultView.getComputedStyle){                 return document.defaultView.getComputedStyle(e,&quot;&quot;).getPropertyValue(s)             }             else if(e.currentStyle){                 return e.currentStyle[                     s.replace(                         \/-(w)\/g,function(strMatch,p1){                             return p1.toLowerCase()                         }                     )                 ]             }             return&quot;&quot;; \t\t} \t} \t \t_B$ = { \t\tw: 600, \t\th: 100, insert:function(){ \t\t\tel = document.createElement(&quot;div&quot;); \t\t\tel.setAttribute(&quot;id&quot;, &quot;_HSS_TOP&quot;); \t\t\tel.setAttribute(&quot;style&quot;, &quot;width: 100% !important; height: &quot;+_B$.h+&quot;px !important; background-color: transparent !important;&quot;); \t\t\tdocument.body.insertBefore(el, document.body.firstChild); \t\t} \t} \t \t_M$ = { \t\tstart:function(){ \t\t\tif( document.readyState != &quot;complete&quot;) \t\t\t\treturn setTimeout(arguments.callee, 100); \t\t\t \t\t\t_M$.shift(document.body, 0);                         _B$.insert(); \t\t}, \t\tshift:function(e, lable){ \t\t\tvar e = _D$.c(arguments[0]); \t\t\tif(typeof e == &quot;undefined&quot;) return; \t\t\t \t\t\tfor(var key in e){ \t\t\t\tif(e[key].nodeType != 1 || e[key].nodeName == &quot;SCRIPT&quot; || e[key].nodeName == &quot;STYLE&quot;){ \t\t\t\t\tdelete e[key]; \t\t\t\t\tcontinue; \t\t\t\t} \t\t\t\tvar p = _D$.s(e[key], &quot;position&quot;), \t\t\t\t\tl = lable; \t\t\t\tif(l == 1 && p != &quot;fixed&quot;) p = &quot;&quot;; \t\t\t\telse{ \t\t\t\t\tvar d = _D$.s(e[key], &quot;display&quot;); \t\t\t\t\tif(d.indexOf(&quot;grid&quot;) != -1){ \t\t\t\t\t\te[key].style.position = &quot;relative&quot;; \t\t\t\t\t\tp = &quot;absolute&quot;; \t\t\t\t\t} \t\t\t\t} \t\t\t\tif(p == &quot;absolute&quot; || p == &quot;fixed&quot;){ \t\t\t\t\t_M$.shift_e(e[key]); \t\t\t\t\tl = 1;  \t\t\t\t}else if(p == &quot;relative&quot;) l = 1; \t\t\t\t \t\t\t\t_M$.shift(e[key], l); \t\t\t} \t\t}, \t\tshift_e:function(e){ \t\t\tvar b = _D$.s(e, &quot;bottom&quot;); \t\t\tif(b != &quot;auto&quot;) return; \t\t\tvar t = _D$.s(e, &quot;top&quot;); \t\t\tt += _B$.h; \t\t\tif(t == &quot;auto&quot;) t = 0; \t\t\tif(t.replace) t = t.replace(\/[^0-9-\\.]+\/ig, &quot;&quot;)*1; \t\t\te.style.top = t+&quot;px&quot;; \t\t\te.setAttribute(&quot;edit&quot;, &quot;true&quot;); \t\t} \t} \t_M$.start(); } )(); <\/code><\/pre>\n<p>  <i>P.S. \u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u0448\u0443 \u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \u0423\u0436\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u043e\u0437\u0434\u043d\u043e, \u0442\u043e\u043f\u0438\u043a \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0441\u0438\u043b)<\/i><br \/>  <i>P.P.S. \u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043f\u043e \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0430\u043c \u2014 \u043f\u0440\u043e\u0448\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043b\u0438\u0447\u043a\u0443<\/i><br \/>  <i>P.P.P.S. \u0415\u0441\u043b\u0438 \u0443 \u043a\u043e\u0433\u043e \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u0434\u0435\u0438 \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u2014 \u0441 \u043e\u0433\u0440\u043e\u043c\u043d\u0435\u0439\u0448\u0438\u043c \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435\u043c \u0432\u044b\u0441\u043b\u0443\u0448\u0430\u044e<\/i>    \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\/159021\/\"> http:\/\/habrahabr.ru\/post\/159021\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e. <\/p>\n<p>  \u0412 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b\u0430 \u043e\u0434\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439. \u0425\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0441 \u0425\u0430\u0431\u0440\u043e\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c.<\/p>\n<h4>\u0417\u0430\u0434\u0430\u0447\u0430<\/h4>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 N \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0431\u0430\u043d\u043d\u0435\u0440\u0430 \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0447\u0442\u043e \u0431\u044b \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u044b\u043b \u0435\u0434\u0438\u043d \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0447\u0442\u043e \u0431\u044b \u0432\u0435\u0440\u0441\u0442\u043a\u0430 \u043d\u0435 \u043b\u043e\u043c\u0430\u043b\u0430\u0441\u044c. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043c\u043e\u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \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-159021","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/159021","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=159021"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/159021\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}