{"id":193004,"date":"2013-09-09T18:32:02","date_gmt":"2013-09-09T14:32:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=193004"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=193004","title":{"rendered":"<span class=\"post_title\">\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 .sortable \u2014 \u043d\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 jQuery<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u0430\u0441\u0441\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 tableDTD, tableSorter, jQuery.sortable \u0438 \u043f\u0440\u043e\u0447\u0438\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u2014 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u0434.<br \/>  \u041c\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 jQuery, \u0438\u043c\u0435\u0435\u0442 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 (42 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0435\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432) \u0438 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445) \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.<br \/>  \u0412\u0435\u0441\u044c \u0445\u043e\u0434 \u043c\u044b\u0441\u043b\u0435\u0439 \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0432 JavaScript.<\/p>\n<p>  <a href=\"http:\/\/jsfiddle.net\/rafaylik\/VCKvM\/1\/\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u043d\u0430 jsFiddle<\/a> (\u043d\u0435\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434).<br \/>  <a name=\"habracut\"><\/a><br \/>  <b>HTML-\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430<\/b>  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html&gt;&lt;head&gt;  \t&lt;meta charset='utf-8'&gt; \t&lt;link type='text\/css' rel='stylesheet' href='style.css'&gt; \t&lt;script type='text\/javascript' src='http:\/\/code.jquery.com\/jquery-2.0.3.min.js'&gt;&lt;\/script&gt; \t&lt;script type='text\/javascript' src='actions.js'&gt;&lt;\/script&gt;  &lt;\/head&gt;&lt;body&gt;  &lt;div class=&quot;container&quot;&gt; \t&lt;div class=&quot;drop&quot;&gt;1&lt;\/div&gt; \t&lt;div class=&quot;drop&quot;&gt;2&lt;\/div&gt; \t&lt;div class=&quot;drop&quot;&gt;3&lt;\/div&gt; \t&lt;div class=&quot;drop&quot;&gt;4&lt;\/div&gt; \t&lt;div class=&quot;drop&quot;&gt;5&lt;\/div&gt; &lt;\/div&gt; &lt;input class=&quot;focus-out&quot;&gt;  &lt;\/body&gt;&lt;\/html&gt; <\/code><\/pre>\n<p>  <b>style.css<\/b>  <\/p>\n<pre><code class=\"css\">.container {width:200px;} .drop {position:relative; top:0px; height:16px; cursor:default; z-index:1;} .focus-out {position:absolute; width:2px; height:2px; left:-10px; top:-10px; background:none;} <\/code><\/pre>\n<p>  <b>actions.js<\/b>  <\/p>\n<pre><code class=\"javascript\">$(document).ready(function(){  \t\/\/ \u043d\u0430\u0436\u0430\u043b\u0438 \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \t$('.drop').mousedown(function(e){ \t\tvar drop = $(this); \t\t\/\/ \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \t\tvar posParentTop = drop.parent().position().top; \t\t\/\/ \u043d\u0438\u0436\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \t\tvar posParentBottom = posParentTop + drop.parent().height(); \t\t\/\/ \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \t\tvar posOld = drop.position().top; \t\t\/\/ \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \t\tvar posOldCorrection = e.pageY - posOld; \t\t\/\/ \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e z-\u043e\u0441\u0438 \t\tdrop.css({'z-index':2, 'background-color':'#eeeeee'}); \t\t\/\/ \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \t\tvar mouseMove = function(e){ \t\t\t\/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \t\t\tvar posNew = e.pageY - posOldCorrection; \t\t\t\/\/ \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0442\u044f\u043d\u0443\u0442 \u0432\u044b\u0448\u0435 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \t\t\tif (posNew &lt; posParentTop){ \t\t\t\t\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0440\u0430\u0432\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \t\t\t\tdrop.offset({'top': posParentTop}); \t\t\t\t\/\/ \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0432 \u0444\u043e\u043a\u0443\u0441 \u0432 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043d\u044b\u0439 (\u043d\u043e \u043d\u0435 \u0441\u043a\u0440\u044b\u0442\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 css) input \t\t\t\t$('.focus-out').focus(); \t\t\t\/\/ \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0442\u044f\u043d\u0443\u0442 \u043d\u0438\u0436\u0435 \u043d\u0438\u0436\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \t\t\t} else if ((posNew + drop.height()) &gt; posParentBottom){ \t\t\t\t\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0440\u0430\u0432\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f + \u0432\u044b\u0441\u043e\u0442\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f - \u0432\u044b\u0441\u043e\u0442\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \t\t\t\tdrop.offset({'top': posParentBottom - drop.height()}); \t\t\t\t\/\/ \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \t\t\t\t$('.focus-out').focus(); \t\t\t\/\/ \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \t\t\t} else { \t\t\t\t\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443 (\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0437\u0430 \u043a\u0443\u0440\u0441\u043e\u0440\u043e\u043c) \t\t\t\tdrop.offset({'top': posNew}); \t\t\t\t\/\/ \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d \u0432\u0432\u0435\u0440\u0445 \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443 \t\t\t\tif (posOld - posNew &gt; drop.height() - 2){ \t\t\t\t\t\/\/ \u043c\u0435\u043d\u044f\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0432 DOM \t\t\t\t\tdrop.insertBefore(drop.prev()); \t\t\t\t\t\/\/ \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \t\t\t\t\tdrop.css({'top':0}); \t\t\t\t\t\/\/ \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \t\t\t\t\tposOld = drop.position().top; \t\t\t\t\tposNew = e.pageY - posOldCorrection; \t\t\t\t\tposOldCorrection = e.pageY - posOld; \t\t\t\t\/\/ \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d \u0432\u043d\u0438\u0437 \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443 \t\t\t\t} else if (posNew - posOld &gt; drop.height() - 2){ \t\t\t\t\t\/\/ \u043c\u0435\u043d\u044f\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0432 DOM \t\t\t\t\tdrop.insertAfter(drop.next()); \t\t\t\t\tdrop.css({'top':0}); \t\t\t\t\tposOld = drop.position().top; \t\t\t\t\tposNew = e.pageY - posOldCorrection; \t\t\t\t\tposOldCorrection = e.pageY - posOld; \t\t\t\t} \t\t\t\t\/\/ \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \t\t\t\t$('.focus-out').focus(); \t\t\t} \t\t}; \t\t\/\/ \u043e\u0442\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043b\u0430\u0432\u0438\u0448\u0443 \u043c\u044b\u0448\u0438 \t\tvar mouseUp = function(){ \t\t\t\/\/ \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \t\t\t$(document).off('mousemove', mouseMove).off('mouseup', mouseUp); \t\t\t\/\/ \u043f\u043b\u0430\u0432\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043d\u0430\u0448 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0430 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0432\u0448\u0435\u0435\u0441\u044f \u043c\u0435\u0441\u0442\u043e \t\t\tdrop.animate({'top':0}, 100); \t\t\t\/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c z-\u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \t\t\tsetTimeout(function(){ \t\t\t\tdrop.css({'z-index':1, 'background-color':'transparent'}); \t\t\t}, 100); \t\t}; \t\t\/\/ \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438 \u043e\u0442\u043f\u0443\u0441\u043a\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043c\u044b\u0448\u0438 \t\t\/\/ \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u0430 \u043f\u0440\u0430\u0432\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0430 \u043c\u044b\u0448\u0438 \t\t$(document).on('mousemove', mouseMove).on('mouseup', mouseUp).on('contextmenu', mouseUp); \t});  }); <\/code><\/pre>\n<p>  <b>\u041d\u0435\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441:<\/b> \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u043d\u043e\u0433\u043e input (\u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0443\u0442\u044c, \u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0444\u0435\u043d\u0448\u0443\u0439). \u041a\u0442\u043e \u0447\u0442\u043e \u0434\u0443\u043c\u0430\u0435\u0442 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 user-select?    \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\/193004\/\"> http:\/\/habrahabr.ru\/post\/193004\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u0430\u0441\u0441\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 tableDTD, tableSorter, jQuery.sortable \u0438 \u043f\u0440\u043e\u0447\u0438\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u2014 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u0434.<br \/>  \u041c\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 jQuery, \u0438\u043c\u0435\u0435\u0442 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 (42 \u0441\u0442\u0440\u043e\u043a\u0438 \u0431\u0435\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432) \u0438 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445) \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.<br \/>  \u0412\u0435\u0441\u044c \u0445\u043e\u0434 \u043c\u044b\u0441\u043b\u0435\u0439 \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0432 JavaScript.<\/p>\n<p>  <a href=\"http:\/\/jsfiddle.net\/rafaylik\/VCKvM\/1\/\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u043d\u0430 jsFiddle<\/a> (\u043d\u0435\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434).  <\/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-193004","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/193004","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=193004"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/193004\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}