{"id":205894,"date":"2013-12-13T11:29:02","date_gmt":"2013-12-13T07:29:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=205894"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=205894","title":{"rendered":"<span class=\"post_title\">\u0425\u043e\u0434 \u043a\u043e\u043d\u0435\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c canvas<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ebe\/a4a\/199\/ebea4a199367ddb22f8f4cc8e6b3cef0.gif\" alt=\"image\"\/><br \/>   <a href=\"http:\/\/travel.h01sites.zzzing.ru\/chess\/\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/a>.<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0433\u0434\u0435 \u043c\u0430\u043b\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442 \u043f\u0440\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0441\u0430\u0439\u0442\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435, \u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0434\u0430\u0447 \u0441\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0437\u0430\u043b\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0430\u0439\u0442, \u043c\u043d\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043f\u0438\u0441\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447. \u041e \u0438\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442 \u0441\u043f\u043e\u0440\u0438\u0442\u044c \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0441 \u0432\u044b\u0441\u043e\u0442\u044b \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0433\u043d\u0435\u0437\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u0441\u0442\u0432\u043e \u043d\u0435 \u0441\u043b\u044b\u0448\u0438\u0442 \u0434\u043e\u0432\u043e\u0434\u044b \u0440\u0430\u0437\u0443\u043c\u0430, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0437\u0430 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0438\u043a\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445.<\/p>\n<p>  \u041e\u0434\u043d\u043e \u0438\u0437 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u0434\u0430\u0447 \u0441\u0442\u0430\u043b\u0430 \u2014 \u0425\u043e\u0434 \u043a\u043e\u043d\u0435\u043c. \u0421\u0443\u0442\u044c \u0435\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u044f, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0435 \u043f\u043e\u043b\u044f \u0434\u043e\u0441\u043a\u0438 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0443. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0435\u0448\u0438\u043b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c canvas, \u043d\u0435\u043c\u043d\u043e\u0433\u043e jQuery, \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u043e\u0433\u0438\u043a\u0443 \u0441\u0432\u043e\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \u041f\u043e \u043d\u0430\u0447\u0430\u043b\u0443 \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0438\u0434\u0435\u0439 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u043f\u0430\u043b\u0441\u044f \u0432 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0430\u0445 \u0438 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437 \u0443\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0441\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0436\u0435 \u043b\u0443\u0447\u0448\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443, \u0434\u0430 \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0438 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u043d\u0438\u0439, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043c\u044b\u0441\u043b\u044c\u044e, \u0447\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0430\u0447\u0430\u0442\u044c, \u0430 \u0442\u0430\u043c \u043f\u043e\u0439\u0434\u0435\u0442.<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u0430\u043c\u0430 html \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0430.<\/p>\n<pre><code class=\"html\">&lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;title&gt;\u0425\u043e\u0434 \u043a\u043e\u043d\u0435\u043c&lt;\/title&gt; \t&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;css\/style.css&quot;&gt; &lt;\/head&gt; &lt;body&gt;     &lt;div class=&quot;chess&quot;&gt;     \t&lt;canvas id=&quot;chess&quot;&gt;Updet!&lt;\/canvas&gt;              &lt;\/div&gt;     \t&lt;div class=&quot;info&quot;&gt;         \t&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0430\u0433\u043e\u0432: 1&lt;p&gt;             &lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a: 0&lt;p&gt;         &lt;\/div&gt; &lt;\/body&gt; \t&lt;script src=&quot;js\/jQuery.js&quot;&gt;&lt;\/script&gt; \t&lt;script src=&quot;js\/script.js&quot;&gt;&lt;\/script&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0421\u0442\u0438\u043b\u0438 \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u044b, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0442\u043e \u0441\u0442\u043e\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u2014 \u044d\u0442\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0439 \u0434\u043e\u0441\u043a\u0438 \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043b\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 background.<\/p>\n<pre><code class=\"css\">* { \tmargin: 0px; \tpadding: 0px; } body, html { \theight: 100%; } .chess { \tmargin: auto; \tposition: relative; \twidth: 600px; \theight: 600px; } .chess canvas { \tmargin: 28px 0 0 58px; \tbackground: url(..\/images\/chess-block.png) no-repeat; } .kon { \tposition: absolute; \twidth: 52px; \theight: 98px; \tbackground: url(..\/images\/kon.png) no-repeat; } <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u043a\u043e\u0434\u0443 \u0443\u0436\u0435 \u0442\u043e\u043b\u044c\u043a\u043e javaScript, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 init, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 canvas. \u0421\u043e\u0437\u0434\u0430\u0435\u043c 3 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (2 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u0430), \u0447\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u043c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u0438 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f init \u0435\u0441\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u043e\u0447\u043a\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u044f, \u0445 \u0438 \u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c \u043f\u043e \u043e\u0441\u0438 \u0445 \u0438 \u043f\u043e \u043e\u0441\u0438 x. \u041f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u043e\u043d\u0438 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b (undefined), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0438\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e 60(x) \u0438 480(y) \u0447\u0442\u043e \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u0443\u0433\u043b\u0443 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0439 \u0434\u043e\u0441\u043a\u0438(A1).<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 arr \u0432\u043d\u043e\u0441\u0438\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u044f, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u043d\u0430\u043c \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0445\u043e\u0434\u044b \u043a\u043e\u043d\u044f, \u0447\u0442\u043e\u0431\u044b \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043d\u0430 \u043d\u0438\u0445 \u0443\u0436\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u0445\u043e\u0434\u0438\u0442\u044c. <\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0430\u043c canvas, \u0437\u0430\u0442\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u043e\u0434\u044b, \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u043f\u043e\u0437\u0438\u0446\u0438\u0439 \u043a\u043e\u043d\u044f \u043d\u0430 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0439 \u0434\u043e\u0441\u043a\u0435. \u0421\u0430\u043c\u0430 \u043a\u043b\u0435\u0442\u043a\u0430 \u0440\u043e\u0432\u043d\u0430 60px, \u043e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430 [x+60*2, y+60], \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 \u0434\u0432\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u0432\u0435\u0440\u0445\u0443 \u0438 \u043e\u0434\u043d\u0443 \u043a\u043b\u0435\u0442\u043a\u0443 \u0432 \u043f\u0440\u0430\u0432\u044b\u0439 \u0431\u043e\u043a, \u043a\u0430\u043a \u043c\u044b \u0437\u043d\u0430\u0435\u043c, \u043a\u043e\u043d\u044c \u0445\u043e\u0434\u0438\u0442 \u0431\u0443\u043a\u0432\u043e\u0439 \u00ab\u0413\u00bb. \u0412\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 v1, \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0445\u043e\u0434\u043e\u0432 \u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u0430\u0448\u0435\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0435\u0442\u043a\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 rect. <\/p>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u0441\u0435 \u0442\u043e\u0436\u0435 \u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 rect \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043a\u043b\u0435\u0442\u043a\u0438 \u0433\u0434\u0435 \u0443\u0436\u0435 \u043f\u043e\u0431\u044b\u0432\u0430\u043b \u043a\u043e\u043d\u044c. <\/p>\n<pre><code class=\"javascript\">var ctx; var arr=[];var v1=[]; var error=0;  function rect(color, x, y, width, height,opecity) {     this.color = color; \/\/ \u0446\u0432\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430     this.x = x; \/\/ \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0445     this.y = y; \/\/ \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0443     this.width = width; \/\/ \u0448\u0438\u0440\u0438\u043d\u0430     this.height = height; \/\/ \u0432\u044b\u0441\u043e\u0442\u0430     this.draw = function() \/\/ \u041c\u0435\u0442\u043e\u0434 \u0440\u0438\u0441\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a     { \t\tctx.beginPath(); \t\tctx.globalAlpha = opecity;         ctx.fillStyle = this.color;         ctx.fillRect(this.x, this.y, this.width, this.height);     } \tthis.clear = function(){ \t\tctx.clearRect(this.x, this.y, this.width, this.height); \t} }  function init(p,h){ \t(p===undefined) ? x=60 : x=p; \t(h===undefined) ? y=480 : y=h; \t\t\/\/\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 1 - \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \t\tif (x &lt; 60 ) x = 60;if (x &gt; 480 ) x = 480; \t\tif (y &lt; 60 ) y = 60;if (y &gt; 480 ) y = 480; \t\/\/\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0448\u0438\u0431\u043e\u043a  \tarr.push([x,y]); \t\/\/\u0440\u0438\u0441\u0443\u0435\u043c, \u0441\u0430\u043c \u043a\u0430\u043d\u0432\u0430\u0441 \tvar chess = document.getElementById(&quot;chess&quot;); \tvar width = chess.width = 600; \tvar height = chess.height = 600; \tctx = chess.getContext('2d'); \tctx.clearRect(0,0,width,height); \t \/\/\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u043e\u0434\u044b (\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432) \u0432\u0441\u0435\u0433\u043e 8 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \tv1 = [ \t\t[x+60*2, y+60], \t\t[x+60*2, y-60], \t\t[x+60, y+60*2], \t\t[x-60, y+60*2], \t\t[x+60, y-60*2], \t\t[x-60, y-60*2], \t\t[x-60*2, y-60], \t\t[x-60*2, y+60] \t]; \/\/ \u0437\u0430\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0438\u0445  \t \tfor(var v=0;v&lt;v1.length;v++){ \t\tif(v1[v][0]&gt;59 && v1[v][0]&lt;481 && v1[v][1]&gt;59 && v1[v][1]&lt;481) \t\t{ \t\t\tvar f = new rect('#ffe800',v1[v][0],v1[v][1],60,60,0.4); \t\t\t\tf.draw(); \t\t} \t} \/\/\u0437\u0430\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0442\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u0435\u043b \u043a\u043e\u043d\u044c for (var i=0;i&lt;arr.length;i++) { \t\tvar f = new rect('#f00',arr[i][0],arr[i][1],60,60,1); \t\t\t\tf.draw(); } \t\/\/\u0440\u0438\u0441\u0443\u0435\u043c \u043a\u043e\u043d\u044f \timkago(x,y); } init(); <\/code><\/pre>\n<p>  \u0412 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e imkago(x,y), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u043e\u043d\u044f \u043d\u0430 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0439 \u0434\u043e\u0441\u043a\u0435. \u041e\u043d\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0435 \u0432 canvas. \u041f\u043e\u0437\u0438\u0446\u0438\u044f \u043a\u043e\u043d\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 init.<\/p>\n<pre><code class=\"javascript\"> function imkago(x,y) { \tvar kon = new Image(); \tkon.src = 'images\/kon.png'; \tkon.onload = function() { \t\tctx.beginPath(); \t\tctx.globalAlpha = 1; \t\tctx.drawImage(kon, x+3, y-45);\t \t} } <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u044d\u0442\u043e \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043a\u043e\u043d\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0448\u0430\u0445\u043c\u0430\u0442, \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0443\u043a\u0432\u043e\u0439 \u00ab\u0413\u00bb, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u043a\u043b\u0435\u0442\u043a\u0430\u043c, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u043f\u043e\u0431\u044b\u0432\u0430\u043b \u043a\u043e\u043d\u044c.<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u043b\u0438\u043a\u0430. \u041f\u0443\u0442\u0435\u043c \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u0445 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u0447\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0430 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0439 \u0434\u043e\u0441\u043a\u0435. (x = (Math.floor(x\/60))*60 \u0438 y = (Math.floor(y\/60))*60). <\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0438\u043a\u043b\u0430 for (var j=0;j&lt;arr.length;j++) \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0441 \u043a\u043b\u0435\u0442\u043a\u0430\u043c\u0438 \u0433\u0434\u0435 \u043f\u043e\u0431\u044b\u0432\u0430\u043b \u043a\u043e\u043d\u044c \u0441 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u043a\u043b\u0435\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435. \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0440\u043e\u0432\u043d\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c false. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u043e\u0434\u043e\u0432, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e init \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u043a\u043e\u043d\u044f. <\/p>\n<pre><code class=\"javascript\"> $('#chess').click(function(event){  var x = event.pageX - this.offsetLeft-$('.chess').offset().left;  var y = event.pageY - this.offsetTop; \t  \tx = (Math.floor(x\/60))*60; \t\ty = (Math.floor(y\/60))*60; \/\/\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439. \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c, \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0438 \t\tfor (var j=0;j&lt;arr.length;j++) { \t\t\tif (arr[j][0]==x && arr[j][1]==y){ \t\t\t\terror++; \t\t\t\t$(&quot;.info&quot;).html(&quot;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0430\u0433\u043e\u0432: &quot;+arr.length+&quot;&lt;p&gt;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a: &quot;+error+&quot;&lt;p&gt;&quot;); \t\t\t\treturn false; \t\t\t}\t \t\t} \tfor(var v=0;v&lt;v1.length;v++){\t \t\t\tif(v1[v][0]==x && v1[v][1]==y) { \t\t\t\t\tinit(x,y); \t\t\t} \t} \t$(&quot;.info&quot;).html(&quot;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0430\u0433\u043e\u0432: &quot;+arr.length+&quot;&lt;p&gt;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a: &quot;+error+&quot;&lt;p&gt;&quot;); }) <\/code><\/pre>\n<p>  \u041a\u043e\u0434 javaScript \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">javaScript<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">var ctx; var arr=[];var v1=[]; var error=0; function rect(color, x, y, width, height,opecity) {     this.color = color; \/\/ \u0446\u0432\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430     this.x = x; \/\/ \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0445     this.y = y; \/\/ \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0443     this.width = width; \/\/ \u0448\u0438\u0440\u0438\u043d\u0430     this.height = height; \/\/ \u0432\u044b\u0441\u043e\u0442\u0430     this.draw = function() \/\/ \u041c\u0435\u0442\u043e\u0434 \u0440\u0438\u0441\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a     { \t\tctx.beginPath(); \t\tctx.globalAlpha = opecity;         ctx.fillStyle = this.color;         ctx.fillRect(this.x, this.y, this.width, this.height);     } \tthis.clear = function(){ \t\tctx.clearRect(this.x, this.y, this.width, this.height); \t} } function init(p,h){ \t(p===undefined) ? x=60 : x=p; \t(h===undefined) ? y=480 : y=h; \t\t\/\/\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 1 - \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \t\tif (x &lt; 60 ) x = 60;if (x &gt; 480 ) x = 480; \t\tif (y &lt; 60 ) y = 60;if (y &gt; 480 ) y = 480; \t\/\/\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0448\u0438\u0431\u043e\u043a  \tarr.push([x,y]); \t\/\/\u0440\u0438\u0441\u0443\u0435\u043c, \u0441\u0430\u043c \u043a\u0430\u043d\u0432\u0430\u0441 \tvar chess = document.getElementById(&quot;chess&quot;); \tvar width = chess.width = 600; \tvar height = chess.height = 600; \tctx = chess.getContext('2d'); \tctx.clearRect(0,0,width,height); \t \/\/\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u043e\u0434\u044b (\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432) \u0432\u0441\u0435\u0433\u043e 8 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \tv1 = [ \t\t[x+60*2, y+60], \t\t[x+60*2, y-60], \t\t[x+60, y+60*2], \t\t[x-60, y+60*2], \t\t[x+60, y-60*2], \t\t[x-60, y-60*2], \t\t[x-60*2, y-60], \t\t[x-60*2, y+60] \t]; \/\/ \u0437\u0430\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0438\u0445  \t \tfor(var v=0;v&lt;v1.length;v++){ \t\tif(v1[v][0]&gt;59 && v1[v][0]&lt;481 && v1[v][1]&gt;59 && v1[v][1]&lt;481) \t\t{ \t\t\tvar f = new rect('#ffe800',v1[v][0],v1[v][1],60,60,0.4); \t\t\t\tf.draw(); \t\t} \t} \/\/\u0437\u0430\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0442\u043e, \u043a\u0443\u0434\u0430 \u0445\u043e\u0434\u0438\u043b\u0438 for (var i=0;i&lt;arr.length;i++) { \t\tvar f = new rect('#f00',arr[i][0],arr[i][1],60,60,1); \t\t\t\tf.draw(); } \t\/\/\u0440\u0438\u0441\u0443\u0435\u043c \u043a\u043e\u043d\u044f \timkago(x,y); } init(); function imkago(x,y) { \tvar kon = new Image(); \tkon.src = 'images\/kon.png'; \tkon.onload = function() { \t\tctx.beginPath(); \t\tctx.globalAlpha = 1; \t\tctx.drawImage(kon, x+3, y-45);\t \t} }  $('#chess').click(function(event){  var x = event.pageX - this.offsetLeft-$('.chess').offset().left;  var y = event.pageY - this.offsetTop; \t  \tx = (Math.floor(x\/60))*60; \t\ty = (Math.floor(y\/60))*60; \/\/\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439. \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c, \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0438 \t\tfor (var j=0;j&lt;arr.length;j++) { \t\t\tif (arr[j][0]==x && arr[j][1]==y){ \t\t\t\terror++; \t\t\t\t$(&quot;.info&quot;).html(&quot;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0430\u0433\u043e\u0432: &quot;+arr.length+&quot;&lt;p&gt;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a: &quot;+error+&quot;&lt;p&gt;&quot;); \t\t\t\treturn false; \t\t\t}\t \t\t} \tfor(var v=0;v&lt;v1.length;v++){\t \t\t\tif(v1[v][0]==x && v1[v][1]==y) { \t\t\t\t\tinit(x,y); \t\t\t} \t} \t$(&quot;.info&quot;).html(&quot;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0448\u0430\u0433\u043e\u0432: &quot;+arr.length+&quot;&lt;p&gt;&lt;p&gt;\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a: &quot;+error+&quot;&lt;p&gt;&quot;); }) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u0446\u0435\u043b\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e, \u043d\u043e \u043a\u043e\u0434 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d \u0438 \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u0435\u043d. \u0411\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043b\u043e\u0433\u0438\u043a\u0438 \u0438 \u043e\u0441\u043d\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 javaScript. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430, \u0441\u043f\u0430\u0441\u0438\u0431\u043e. \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\/205894\/\"> http:\/\/habrahabr.ru\/post\/205894\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ebe\/a4a\/199\/ebea4a199367ddb22f8f4cc8e6b3cef0.gif\" alt=\"image\"\/><br \/>   <a href=\"http:\/\/travel.h01sites.zzzing.ru\/chess\/\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/a>.<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439, \u0433\u0434\u0435 \u043c\u0430\u043b\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442 \u043f\u0440\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0441\u0430\u0439\u0442\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435, \u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0434\u0430\u0447 \u0441\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0437\u0430\u043b\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043d\u0430 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0430\u0439\u0442, \u043c\u043d\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043f\u0438\u0441\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447. \u041e \u0438\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442 \u0441\u043f\u043e\u0440\u0438\u0442\u044c \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0441 \u0432\u044b\u0441\u043e\u0442\u044b \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0433\u043d\u0435\u0437\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u0441\u0442\u0432\u043e \u043d\u0435 \u0441\u043b\u044b\u0448\u0438\u0442 \u0434\u043e\u0432\u043e\u0434\u044b \u0440\u0430\u0437\u0443\u043c\u0430, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0437\u0430 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0438\u043a\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445.<\/p>\n<p>  \u041e\u0434\u043d\u043e \u0438\u0437 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u0434\u0430\u0447 \u0441\u0442\u0430\u043b\u0430 \u2014 \u0425\u043e\u0434 \u043a\u043e\u043d\u0435\u043c. \u0421\u0443\u0442\u044c \u0435\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0448\u0430\u0445\u043c\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u044f, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0435 \u043f\u043e\u043b\u044f \u0434\u043e\u0441\u043a\u0438 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0443. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0435\u0448\u0438\u043b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c canvas, \u043d\u0435\u043c\u043d\u043e\u0433\u043e jQuery, \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d.   <\/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-205894","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205894","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=205894"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205894\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}