{"id":311466,"date":"2020-10-14T15:01:07","date_gmt":"2020-10-14T15:01:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=311466"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=311466","title":{"rendered":"\u0421\u0430\u043c\u044b\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0432 \u043c\u0438\u0440\u0435"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/vdsina\/blog\/523306\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1c\/ry\/xe\/1cryxeo_yak8zrq4ooicphbwnn8.jpeg\"><\/p>\n<p>  \u0412\u0441\u0435\u043c \u043d\u0430\u043c \u0437\u043d\u0430\u043a\u043e\u043c \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u2014 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0439, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c \u0438\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u043e\u043a. \u0412\u0441\u0451 \u044d\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0432 Microsoft Office \u0438 \u0432 Google Docs. \u0412\u0441\u0435 \u044d\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043c\u043e\u0449\u043d\u044b \u0438 \u043e\u0431\u044a\u0451\u043c\u043d\u044b. \u041d\u043e \u043a\u0430\u043a\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0444\u0438\u0441\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430?<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430<\/h2>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0448 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0441 GUI \u2014 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0433\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438 \u0442\u0440\u0443\u0434\u0430. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0438 \u043a \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e (\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e) \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 <a href=\"https:\/\/github.com\/antirez\/kilo\">\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u044b<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/github.com\/c00kiemon5ter\/ioccc-obfuscated-c-contest\/blob\/master\/2000\/jarijyrki.c\">\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/a>, \u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435, \u0435\u0441\u043b\u0438 \u043c\u044b \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0431\u0440\u0430\u0443\u0437\u0435\u0440.<\/p>\n<p>  \u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c (contenteditable) \u0438 \u043e\u043d\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c\u0438 (\u0445\u043e\u0442\u044c \u0438 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c\u0438) <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/eval\">\u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044f\u043c\u0438<\/a> \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u043c\u0430\u043b\u044b\u043c \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442?<\/p>\n<h2>\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440<\/h2>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u044d\u0442\u043e \u00ab\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u0438\u0435 \u0433\u043e\u0434\u044b:<\/p>\n<pre><code class=\"xml\">&lt;html contenteditable&gt;<\/code><\/pre>\n<p>  \u0414\u0430, \u0438 \u044d\u0442\u043e \u0432\u0441\u0451. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 \u0441\u0430\u043c\u043e\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 URL, \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e, \u043a\u043e\u0433\u0434\u0430 \u043c\u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c \u0437\u0430\u043c\u0435\u0442\u043a\u0438:<\/p>\n<pre><code class=\"xml\">data:text\/html,&lt;html contenteditable&gt;<\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u043f\u043e\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 URL. \u0415\u0441\u043b\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432\u0430\u043c \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442, \u0442\u043e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>Ctrl+B<\/code> \u0438\u043b\u0438 <code>Ctrl+I<\/code>, \u0447\u0442\u043e\u0431\u044b \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0436\u0438\u0440\u043d\u044b\u043c \u0438\u043b\u0438 \u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u043c.<\/p>\n<p>  \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0442\u0438\u043b\u0435\u0439 (\u0434\u0430, \u044f \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e <a href=\"http:\/\/bettermotherfuckingwebsite.com\/\">\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0442\u0438\u043f\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f<\/a> \u0432\u0430\u0436\u043d\u044b):<\/p>\n<pre><code class=\"xml\">data:text\/html,&lt;body contenteditable style=&quot;line-height:1.5;font-size:20px;&quot;&gt;<\/code><\/pre>\n<p>  \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043c\u043e\u0435\u043c\u0443 \u043d\u0435\u0432\u0435\u0441\u043e\u043c\u043e\u043c\u0443 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0432\u0438\u0448. \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a\u0430\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0442\u0438\u043b\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432, \u0441\u043f\u0438\u0441\u043a\u0438 \u0438 \u043e\u0442\u0441\u0442\u0443\u043f\u044b.<\/p>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0433\u043e HTML \u0432 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u043f\u0435\u0447\u0430\u0442\u044c\u044e \u0435\u0433\u043e \u043d\u0430 \u0431\u0443\u043c\u0430\u0433\u0435.<\/p>\n<h2>\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/h2>\n<p>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/github.com\/trikita\/slide-html\">\u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0439<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b HTML. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 markdown-\u0442\u0435\u043a\u0441\u0442\u0430) \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0440\u0430\u0437\u043d\u043e\u0446\u0432\u0435\u0442\u043d\u0430\u044f \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0432 \u0441\u0442\u0438\u043b\u0435 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Takahashi_method\">Takahashi<\/a>.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c <code>contenteditable<\/code>, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c WYSYWIG-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441\u043b\u0430\u0439\u0434\u043e\u0432. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0441\u0442\u044b\u0445 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"xml\">&lt;body&gt;&lt;script&gt; for (let i=0; i&lt;50; i++) {   document.body.innerHTML += `     &lt;div style=&quot;position:relative;width:90%;padding-top:60%;margin:5%;border:1px solid silver;page-break-after:always;&quot;&gt;       &lt;div contenteditable style=&quot;outline:none;position:absolute;right:10%;bottom:10%;left:10%;top:10%;font-size:5vmin;&quot;&gt;       &lt;\/div&gt;     &lt;\/div&gt;`; } &lt;\/script&gt;<\/code><\/pre>\n<p>  \u0427\u0438\u0441\u043b\u043e 50 \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e, \u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0441\u0442\u043e\u0438\u0442. \u041a\u0430\u0436\u0434\u044b\u0439 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 <code>div<\/code> \u2014 \u044d\u0442\u043e \u0441\u043b\u0430\u0439\u0434 \u0441 \u0442\u043e\u043d\u043a\u043e\u0439 \u043e\u0431\u0432\u043e\u0434\u043a\u043e\u0439. \u0422\u0440\u044e\u043a \u0441 <code>width<\/code> \u0438 <code>padding-top<\/code> \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u0441\u0442\u043e\u0440\u043e\u043d \u0441\u043b\u0430\u0439\u0434\u0430. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041a\u0430\u0436\u0434\u044b\u0439 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 <code>div<\/code> \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0441 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0440\u0430.<\/p>\n<p>  \u0412\u043f\u043e\u043b\u043d\u0435 \u043d\u0435\u043f\u043b\u043e\u0445\u043e. \u041d\u043e \u0432\u0435\u0434\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0430\u0445 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438 \u0441\u043f\u0438\u0441\u043a\u0438, \u043f\u0440\u0430\u0432\u0434\u0430?<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438:<\/p>\n<pre><code class=\"javascript\">document.querySelectorAll(&quot;div&gt;div&quot;).forEach(el =&gt; {   el.onkeydown = e=&gt; {     \/\/ `code` will be false if Ctrl or Alt are not pressed     \/\/ `code` will be 0..8 for numeric keys 1..9     \/\/ `code` will be some other numeric value if another key is pressed     \/\/ with Ctrl+Alt hold.     const code = e.ctrlKey &amp;&amp; e.altKey &amp;&amp; e.keyCode-49;     \/\/ Find the suitable rich text command, or undefined if the key     \/\/ is out of range     x = [&quot;formatBlock&quot;, &quot;formatBlock&quot;, &quot;justifyLeft&quot;, &quot;justifyCenter&quot;,           &quot;justifyRight&quot;, &quot;outdent&quot;, &quot;indent&quot;, &quot;insertUnorderedList&quot;][n];     \/\/ Find command parameter (only for 1 and 2)     y = [&quot;&lt;h1&gt;&quot;, &quot;&lt;div&gt;&quot;][n];     \/\/ Send the command and the parameter (if any) to the editor     if (x) {       document.execCommand(x, false, y);     }   }; });<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 <code>Ctrl+Alt+1<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043b\u0430\u0439\u0434\u0430 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c. \u0410 \u0435\u0441\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044c <code>Ctrl+Alt+2<\/code>, \u0442\u043e \u043e\u043d \u0441\u043d\u043e\u0432\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u043c. <code>Ctrl+Alt+3<\/code>&#8212;<code>Ctrl+Alt+5<\/code> \u043c\u0435\u043d\u044f\u044e\u0442 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435, \u0430 <code>6<\/code> \u0438 <code>7<\/code> \u2014 \u043e\u0442\u0441\u0442\u0443\u043f. <code>8<\/code> \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a. <code>9<\/code> \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0434 \u0432\u0430\u0448\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043d\u0443\u0436\u0434\u044b, \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u044d\u0442\u0443 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e. \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 <code>contenteditable<\/code> \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document\/execCommand\">MDN<\/a>.<\/p>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0436\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043a\u043e\u0434 \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0432 \u0435\u0433\u043e \u0432 data URL, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441\u043b\u0430\u0439\u0434\u043e\u0432 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043e\u043a\u043e\u043b\u043e 600 \u0431\u0430\u0439\u0442:<\/p>\n<pre><code class=\"xml\">data:text\/html,&lt;style&gt;@page{size: 6in 8in landscape;}&lt;\/style&gt;&lt;body&gt;&lt;script&gt;d=document;for(i=0;i&lt;50;i++)d.body.innerHTML+='&lt;div style=&quot;position:relative;width:90%;padding-top:60%;margin:5%;border:1px solid silver;page-break-after:always;&quot;&gt;&lt;div contenteditable style=&quot;outline:none;position:absolute;right:10%;bottom:10%;left:10%;top:10%;font-size:5vmin;&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;';d.querySelectorAll(&quot;div&gt;div&quot;).forEach(e=&gt;e.onkeydown=e=&gt;{n=e.ctrlKey&amp;&amp;e.altKey&amp;&amp;e.keyCode-49,x=[&quot;formatBlock&quot;,&quot;formatBlock&quot;,&quot;justifyLeft&quot;,&quot;justifyCenter&quot;,&quot;justifyRight&quot;,&quot;outdent&quot;,&quot;indent&quot;,&quot;insertUnorderedList&quot;][n],y=[&quot;&lt;h1&gt;&quot;,&quot;&lt;div&gt;&quot;][n],x&amp;&amp;document.execCommand(x,!1,y)})&lt;\/script&gt; <\/code><\/pre>\n<p>  \u0421\u043b\u0430\u0439\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 PDF \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u0435\u0447\u0430\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b, \u0430 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435.<\/p>\n<h2>\u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435<\/h2>\n<p>  \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u044f \u0441\u043e\u0437\u0434\u0430\u043b <a href=\"https:\/\/onthesamepage.online\">https:\/\/onthesamepage.online<\/a> \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a\u043e\u0432 \u0438\u0434\u0435\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438, \u043d\u043e \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443, \u043e\u043d \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0433\u043e \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043b\u0438\u043d\u0438\u0438 \u043d\u0430 canvas. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <code>&lt;canvas&gt;<\/code>, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043c\u044b\u0448\u0438\/\u043a\u0430\u0441\u0430\u043d\u0438\u0439 \u0438 \u0444\u043b\u0430\u0433, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0438\u0439, \u0447\u0442\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043c\u044b\u0448\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u043d\u0438\u044e \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043c\u044b\u0448\u0438.<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0441 <code>id<\/code> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <code>window[id]<\/code> \u0438\u043b\u0438 <code>window.id<\/code>. \u041b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044d\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u0445\u0430\u043a\u043e\u043c \u0438\u0437 IE, \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u043b\u043e <a href=\"https:\/\/html.spec.whatwg.org\/multipage\/window-object.html#named-access-on-the-window-object\">\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c<\/a>.<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u0443\u0440\u0441\u043e\u0440\u0430 \u043c\u044b\u0448\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0435\u0449\u0451 \u0440\u0430\u0437 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 <code>mousedown<\/code> \u0438 <code>mousemove<\/code>. \u0422\u0430\u043a\u0436\u0435 \u044f \u0441\u0431\u0440\u043e\u0441\u0438\u043b \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <code>body<\/code>, \u0447\u0442\u043e\u0431\u044b canvas \u0431\u044b\u043b \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>  \u041c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 400 \u0431\u0430\u0439\u0442 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043c\u044b\u0448\u044c\u044e:<\/p>\n<pre><code class=\"xml\">&lt;canvas id=&quot;v&quot;&gt; &lt;script&gt; d=document, \/\/ shortcut for document d.body.style.margin=0, \/\/ reset style f=0, \/\/ mouse-down flag c=v.getContext(&quot;2d&quot;), \/\/ canvas context v.width=innerWidth, \/\/ make canvas element fullscreen v.height=innerHeight, c.lineWidth=2, \/\/ make lines a bit wider x=e=&gt;e.clientX||e.touches[0].clientX, \/\/ get X position from mouse\/touch y=e=&gt;e.clientY||e.touches[0].clientY, \/\/ get Y position from mouse\/touch d.onmousedown=d.ontouchstart=e=&gt;{f=1,e.preventDefault(),c.moveTo(x(e),y(e)),c.beginPath()}, d.onmousemove=d.ontouchmove=e=&gt;{f&amp;&amp;(c.lineTo(x(e),y(e)),c.stroke())}, d.onmouseup=d.ontouchend=e=&gt;f=0 &lt;\/script&gt;<\/code><\/pre>\n<p>  \u0410 \u0432\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u0430\u044f \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0430:<\/p>\n<pre><code class=\"xml\">data:text\/html,&lt;canvas id=&quot;v&quot;&gt;&lt;script&gt;d=document,d.body.style.margin=0,f=0,c=v.getContext(&quot;2d&quot;),v.width=innerWidth,v.height=innerHeight,c.lineWidth=2,x=e=&gt;e.clientX||e.touches[0].clientX,y=e=&gt;e.clientY||e.touches[0].clientY,d.onmousedown=d.ontouchstart=e=&gt;{f=1,e.preventDefault(),c.moveTo(x(e),y(e)),c.beginPath()},d.onmousemove=d.ontouchmove=e=&gt;{f&amp;&amp;(c.lineTo(x(e),y(e)),c.stroke())},d.onmouseup=d.ontouchend=e=&gt;f=0&lt;\/script&gt;<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446<\/h2>\n<p>  \u041d\u0430\u0432\u0435\u0440\u043d\u043e, \u044d\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0430\u043c\u044b\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u043c, \u043d\u043e \u043c\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c \u043b\u0438\u043c\u0438\u0442 \u0432 1 \u041a\u0411 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439. \u0412 HTML \u0435\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0442\u0430\u043a \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445? \u0422\u0430\u043a \u043a\u0430\u043a \u044f\u0447\u0435\u0439\u043a\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u0430\u0434\u0440\u0435\u0441\u0443\u044e\u0442\u0441\u044f \u043f\u043e \u00ab\u0431\u0443\u043a\u0432\u0435\u00bb + \u00ab\u0447\u0438\u0441\u043b\u0443\u00bb, \u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 26&#215;100 \u044f\u0447\u0435\u0435\u043a. \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u044f\u0447\u0435\u0439\u043a\u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438, \u0432 \u0446\u0438\u043a\u043b\u0435. \u041f\u0440\u043e\u0441\u0442\u0430\u044f \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043a\u0440\u0430\u0441\u0438\u0432\u0435\u0435:<\/p>\n<pre><code class=\"xml\">&lt;table id=&quot;t&quot;&gt;  t.style.borderCollapse=&quot;collapse&quot;; \/\/ remove gaps between cells for (let i = 0; i &lt; 101; i++) {   const row = t.insertRow(-1);   for (let j = 0; j &lt; 27; j++) {     \/\/ convert column index j to a letter (char code of &quot;A&quot; is 65)     const letter = String.fromCharCode(65+j-1); \/\/ 1=A, 2=B, 3=C etc     const cell = row.insertCell(-1);     cell.style.border = &quot;1px solid silver&quot;; \/\/ make thin grey border     cell.style.textAlign = &quot;right&quot;;         \/\/ right-align, like excel     if (i &gt; 0 &amp;&amp; j &gt; 0) {       \/\/ add identifiable input field, this is where formula is entered       const field = document.createElement('input');       field.id = letter + i; \/\/ i.e, &quot;B3&quot;       cell.appendChild(field);     } else if (i &gt; 0) {       \/\/ Row numbers       cell.innerHTML = i;     } else if (j &gt; 0) {       \/\/ Column letters       cell.innerHTML = letter;     }   } }<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0441\u0435\u0442\u043a\u0430 \u0438\u0437 \u044f\u0447\u0435\u0435\u043a \u0441\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438 \u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0433\u0440\u044f\u0437\u043d\u044b\u0439, \u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u0440\u0451\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u0445 \u2014 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u0435\u0439 \u0432\u0432\u043e\u0434\u0430 (\u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0445 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0447\u0438\u0441\u0435\u043b \u0438 \u0444\u043e\u0440\u043c\u0443\u043b), \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0441 \u0443\u043c\u043d\u044b\u043c \u0433\u0435\u0442\u0442\u0435\u0440\u043e\u043c, \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u043c eval(), \u0435\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0438 \u043e\u043d\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u043e\u0439 \u0441 \u043f\u043e\u043b\u0435\u043c \u0432\u0432\u043e\u0434\u0430, \u0438 \u043a\u044d\u0448\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044f:<\/p>\n<pre><code class=\"javascript\">inputs = []; \/\/ assume that we did inputs.push(field) for each field in the loop above data = {}; \/\/ smart data accessing object cache = {}; \/\/ cache  \/\/ Re-calculate all fields const calc = () =&gt; {   inputs.map(field =&gt; {     try {       field.value = D[field.id];     } catch (e) { \/* ignore *\/}   }); };  \/\/ We also need to customize our field initialization code: field.onfocus = () =&gt; {   \/\/ When element is focused - replace its calculated value with its formula   field.value = cache[field.id] || &quot;&quot;; }; field.onblur = () =&gt; {   \/\/ When element loses focus - put formula in cache, and re-calculate everything   cache[field.id] = field.value;   calc(); }; \/\/ Smart getter for a field, evaluates formula if needed const get = () =&gt; {   let value = cache[field.id] || &quot;&quot;;   if(value.chatAt(0) == &quot;=&quot;) {     \/\/ evaluate the formula using &quot;with&quot; hack:     with(data) return eval(value.substring(1));   } else {     \/\/ return value as it is, convert to number if possible:     return isNaN(parseFloat(value)) ? value : parseFloat(value);   } }; \/\/ Add smart getter to the data array for both upper and lower case variants: Object.defineProperty(data, field.id, {get}), Object.defineProperty(data, field.id.toLowerCase(), {get})<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u2014 \u0435\u0441\u043b\u0438 \u043c\u044b \u0432\u0432\u0435\u0434\u0451\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u00ab42\u00bb \u0432 A1 \u0438 &quot;=A1+3&quot; \u0432 A2, \u0442\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0444\u043e\u043a\u0443\u0441\u0430 \u0441 A2 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c 45.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0439 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 800 \u0431\u0430\u0439\u0442:<\/p>\n<pre><code class=\"xml\">data:text\/html,&lt;table id=&quot;t&quot;&gt;&lt;script&gt;for(I=[],D={},C={},calc=()=&gt;I.forEach(e=&gt;{try{e.value=D[e.id]}catch(e){}}),t.style.borderCollapse=&quot;collapse&quot;,i=0;i&lt;101;i++)for(r=t.insertRow(-1),j=0;j&lt;27;j++)c=String.fromCharCode(65+j-1),d=r.insertCell(-1),d.style.border=&quot;1px solid #ccc&quot;,d.style.textAlign=&quot;right&quot;,d.innerHTML=i?j?&quot;&quot;:i:c,i*j&amp;&amp;I.push(d.appendChild((f=&gt;(f.id=c+i,f.style.border=&quot;none&quot;,f.style.width=&quot;4rem&quot;,f.style.textAlign=&quot;right&quot;,f.onfocus=e=&gt;f.value=C[f.id]||&quot;&quot;,f.onblur=e=&gt;{C[f.id]=f.value,calc()},get=()=&gt;{let v=C[f.id]||&quot;&quot;;if(&quot;=&quot;!=v.charAt(0))return isNaN(parseFloat(v))?v:parseFloat(v);with(D)return eval(v.substring(1))},Object.defineProperty(D,f.id,{get:get}),Object.defineProperty(D,f.id.toLowerCase(),{get:get}),f))(document.createElement(&quot;input&quot;))))&lt;\/script&gt;<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0412\u044b \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e?<\/h2>\n<p>  \u0414\u0430, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0432\u0441\u0451 \u044d\u0442\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u043e\u0444\u0438\u0441\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0437\u043c\u0430 \u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u043a\u043e\u0434\u0430. \u0412\u0441\u0435 \u044d\u0442\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u0444\u0435\u043c\u0435\u0440\u043d\u044b, \u043e\u043d\u0438 \u0442\u0435\u0440\u044f\u044e\u0442 \u0441\u0432\u043e\u0451 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0438, \u043f\u043e\u0445\u043e\u0436\u0435, \u043d\u0438\u043a\u0430\u043a \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b data URL \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u0438 \u0438\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041d\u043e \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u043a\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a \u0437\u0430\u043c\u0435\u0442\u043a\u0438, \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044f \u0442\u044f\u0436\u0451\u043b\u044b\u0435 \u00ab\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435\u00bb \u043e\u0444\u0438\u0441\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u043e\u043d\u0443\u0441\u0430: \u0432\u0441\u0435 \u044d\u0442\u0438 \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0443\u0432\u0430\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442 \u0432\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 (\u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0445\u0440\u0430\u043d\u044f\u0442 \u0438\u0445).<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430, \u044d\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0448\u0443\u0442\u043a\u0443, \u0447\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u043d\u0443\u0436\u0434\u044b: <a href=\"http:\/\/github.com\/zserge\/awfice\">http:\/\/github.com\/zserge\/awfice<\/a>. \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f \u043f\u0443\u043b\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0443\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f!<\/p>\n<hr>\n<p>  <\/p>\n<h4>\u041d\u0430 \u043f\u0440\u0430\u0432\u0430\u0445 \u0440\u0435\u043a\u043b\u0430\u043c\u044b<\/h4>\n<p>  \u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435! \u0412\u043f\u0435\u0440\u0432\u044b\u0435 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u2014 <b>\u044d\u043f\u0438\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b<\/b>!<br \/>  <a href=\"https:\/\/vdsina.ru\/cloud-servers?partner=habr137\">\u041c\u043e\u0449\u043d\u044b\u0435 VDS<\/a> \u043d\u0430 \u0431\u0430\u0437\u0435 \u043d\u043e\u0432\u0435\u0439\u0448\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 AMD EPYC. \u0427\u0430\u0441\u0442\u043e\u0442\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0434\u043e 3.4 GHz. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u2014 128 \u044f\u0434\u0435\u0440 CPU, 512 \u0413\u0411 RAM, 4000 \u0413\u0411 NVMe!<\/p>\n<p>  <a href=\"https:\/\/vdsina.ru\/cloud-servers?partner=habr137\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/8p\/3v\/z4\/8p3vz47nluspfyc0axlkx88gdua.png\"><\/a><\/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=\"https:\/\/habr.com\/ru\/company\/vdsina\/blog\/523306\/\"> https:\/\/habr.com\/ru\/company\/vdsina\/blog\/523306\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/vdsina\/blog\/523306\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1c\/ry\/xe\/1cryxeo_yak8zrq4ooicphbwnn8.jpeg\"><\/p>\n<p>  \u0412\u0441\u0435\u043c \u043d\u0430\u043c \u0437\u043d\u0430\u043a\u043e\u043c \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u2014 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0439, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c \u0438\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u043e\u043a. \u0412\u0441\u0451 \u044d\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0432 Microsoft Office \u0438 \u0432 Google Docs. \u0412\u0441\u0435 \u044d\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043c\u043e\u0449\u043d\u044b \u0438 \u043e\u0431\u044a\u0451\u043c\u043d\u044b. \u041d\u043e \u043a\u0430\u043a\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0444\u0438\u0441\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430?  <\/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-311466","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311466","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=311466"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311466\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}