{"id":294146,"date":"2019-09-02T09:00:31","date_gmt":"2019-09-02T09:00:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=294146"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=294146","title":{"rendered":"\u0410\u043a\u043a\u043e\u0440\u0434\u0435\u043e\u043d, faq, \u0441\u043f\u043e\u0439\u043b\u0435\u0440 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u044b"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4l\/c2\/20\/4lc220bhxzc8mrhnsiv7zfwspbg.gif\" alt=\"\u0410\u043a\u043a\u043e\u0440\u0434\u0435\u043e\u043d \u0438 faq\"><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u043a\u043a\u043e\u0440\u0434\u0435\u043e\u043d, faq, \u0441\u043f\u043e\u0439\u043b\u0435\u0440 \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Div \u0438 JavaScript. <br \/>  \u041d\u043e \u043b\u0443\u0447\u0448\u0435: Details \u0438 Summary<\/p>\n<p>  \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u043c\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438 \u0438 \u044d\u0442\u043e \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u043f\u043b\u044e\u0441\u044b:<\/p>\n<ol>\n<li>\u041b\u044e\u0434\u044f\u043c \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043f\u0440\u043e\u0449\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0430\u0448\u0438\u043c \u0441\u0430\u0439\u0442\u043e\u043c! \u0418\u0445 \u0441\u043e\u0444\u0442 (\u0441\u043a\u0440\u0438\u043d\u0440\u0438\u0434\u0435\u0440\u044b \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435) \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 html5 \u0442\u0435\u0433\u0438 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439 \u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c.<\/li>\n<li>\u0423\u043b\u0443\u0447\u0448\u0438\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430, \u0438 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u0439\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0432\u0438\u0434\u0438\u043c\u044b\u0439 \u0438 \u0441\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442.<\/li>\n<li>\u0411\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/li>\n<li>\u0423\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e javascript \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c, \u0447\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c. <\/li>\n<li>\u0423\u043b\u0443\u0447\u0448\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 Lighthouse, Google PageSpeed \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0445.<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u043c javascript.<\/li>\n<\/ol>\n<p><a name=\"habracut\"><\/a><br \/>  \u041c\u0438\u043d\u0443\u0441: <\/p>\n<ol>\n<li>\u0421\u0442\u0430\u0440\u044b\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u0442\u0430\u043a\u0438\u0445 \u0442\u0435\u0433\u043e\u0432 \u0438 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/li>\n<\/ol>\n<p>  HTML:<\/p>\n<pre><code class=\"xml\">&lt;details&gt;     &lt;summary&gt;\u041f\u043e\u043a\u0430\u0436\u0438-\u0441\u043a\u0440\u043e\u0439 \u043c\u0435\u043d\u044f&lt;\/summary&gt;     &lt;p&gt;\u0421\u043a\u0430\u043d\u0434\u0438\u043d\u0430\u0432\u0441\u043a\u0430\u044f \u043c\u0438\u0444\u043e\u043b\u043e\u0433\u0438\u044f \u2014 \u043c\u0438\u0444\u043e\u043b\u043e\u0433\u0438\u044f \u0434\u0440\u0435\u0432\u043d\u0438\u0445 \u0441\u043a\u0430\u043d\u0434\u0438\u043d\u0430\u0432\u043e\u0432&lt;\/p&gt; &lt;\/details&gt; &lt;details open&gt;     &lt;summary&gt;\u041f\u043e\u043a\u0430\u0436\u0438-\u0441\u043a\u0440\u043e\u0439 \u043c\u0435\u043d\u044f 2&lt;\/summary&gt;     &lt;p&gt;\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043e \u043d\u0435\u0439 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0435\u043a\u0441\u0442\u044b \u043f\u043e\u044d\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 &lt;\/p&gt; &lt;\/details&gt; &lt;details&gt;     &lt;summary&gt;\u041f\u043e\u043a\u0430\u0436\u0438-\u0441\u043a\u0440\u043e\u0439 \u043c\u0435\u043d\u044f 3&lt;\/summary&gt;     &lt;p&gt;\u0421\u043a\u0430\u043d\u0434\u0438\u043d\u0430\u0432\u0441\u043a\u0430\u044f \u043c\u0438\u0444\u043e\u043b\u043e\u0433\u0438\u044f \u2014 \u043c\u0438\u0444\u043e\u043b\u043e\u0433\u0438\u044f \u0434\u0440\u0435\u0432\u043d\u0438\u0445 \u0441\u043a\u0430\u043d\u0434\u0438\u043d\u0430\u0432\u043e\u0432&lt;\/p&gt; &lt;\/details&gt; <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/js\/2l\/xu\/js2lxuzfaobi0ysd0nt4qixptp4.gif\" alt=\"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 Details\/Summary\"><\/p>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/PoYKzoe?height=300&amp;slug-hash=PoYKzoe&amp;default-tabs=html,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0438\u0437\u0430\u0439\u043d\u044b. \u041a\u0441\u0442\u0430\u0442\u0438, \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u0432\u0438\u0434 \u0442\u0435\u0433\u0430 Details \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0441\u043f\u043e\u0439\u043b\u0435\u0440 \u043e\u0442 \u0445\u0430\u0431\u0440\u0430, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0443\u0436\u043d\u043e \u0447\u0443\u0442\u044c \u043f\u0435\u0440\u0435\u043a\u0440\u0430\u0441\u0438\u0442\u044c, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u0431\u0435\u0437 javascript \u0438 \u0434\u0438\u0432\u043e\u0432, \u0445\u0430\u0431\u0440\u043e\u0432\u0441\u043a\u0438\u0439 \u0441\u043f\u043e\u0439\u043b\u0435\u0440. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/s8\/g0\/tw\/s8g0tw3n_i6y6hqkobk5pqbmfhk.gif\" alt=\"\u0421\u043f\u043e\u0439\u043b\u0435\u0440 \u043e\u0442 \u0425\u0430\u0431\u0440\u0430\"><\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0443 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u043c\u0430\u0440\u043a\u0435\u0440\u0430 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430:<\/p>\n<ol>\n<li>\u0421\u0442\u0430\u0440\u044b\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u0435\u0433\u043e \u043d\u0435 \u0432\u0438\u0434\u044f\u0442. <\/li>\n<li>\u0412\u0435\u0431\u043a\u0438\u0442 \u0431\u0430\u0443\u0437\u0435\u0440\u044b \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b \u043c\u0430\u0440\u043a\u0435\u0440\u0430. <\/li>\n<\/ol>\n<p>  \u041f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435, \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u043d\u0430\u0434\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439.<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 Details\/Summary \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gb\/ek\/ah\/gbekahuht9ktthpv2bqlxwqkxmy.gif\" alt=\"Details\/Summary \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u043c\"><\/p>\n<p>  CSS:<\/p>\n<pre><code class=\"css\">summary::-webkit-details-marker{display:none;} summary::-moz-list-bullet{list-style-type:none;} summary::marker{display:none;}  summary {    display:inline-block;    padding: .3em .5em .3em .4em;    font-size:1.4em;    cursor: pointer; } summary:before {     content: \"+\";   margin-right: .3em; } details[open] &gt; summary:before {   content: \"\u2013\"; } summary ~ * {    padding:0 1em 0 1em; } summary:focus {   outline:0;   box-shadow: inset 0 0 1px rgba(0,0,0,0.3), inset 0 0 2px rgba(0,0,0,0.3); } details{   display:block;   margin-bottom: .5rem; } <\/code><\/pre>\n<p>  \u0414\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c \u043c\u0430\u0440\u043a\u0435\u0440\u0430\u043c \u0434\u0435\u043b\u0430\u0435\u043c display:none \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 summary:before {content: &#171;+&#187;;}<\/p>\n<p>  summary:focus \u2014 \u043e\u0431\u0432\u043e\u0434\u043a\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 box-shadow, \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b, \u0447\u0442\u043e\u0431 \u0432\u0438\u0434\u043d\u043e \u0431\u044b\u043b\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0435\u0439 \u0442\u0430\u0431 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0433\u0430 summary \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b display:inline-block \u2014 \u044d\u0442\u043e \u0447\u0442\u043e\u0431 \u043e\u043d \u043d\u0435 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u043b\u0441\u044f \u043d\u0430 \u0432\u0441\u044e \u0448\u0438\u0440\u0438\u043d\u0443 \u0438 \u0431\u044b\u043b\u0438 \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0432\u0430, \u0430 \u043d\u0435 \u0432\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430.<\/p>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/xxKLRRv?height=300&amp;slug-hash=xxKLRRv&amp;default-tabs=html,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  \u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u0441\u043f\u0440\u0430\u0432\u0430 + \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u043c\u0430\u0440\u043a\u0435\u0440\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jw\/ik\/k8\/jwikk8vg7hm3abxhvkal8lcoisu.gif\" alt=\"Details\/Summary - \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0440\u043a\u0435\u0440 \u0441\u043f\u0440\u0430\u0432\u0430 + \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u043c\u0430\u0440\u043a\u0435\u0440\u0430\"><\/p>\n<p>  CSS:<\/p>\n<pre><code class=\"css\">summary::-webkit-details-marker{display:none;} summary::-moz-list-bullet{list-style-type:none;} summary::marker{display:none;}  summary {    display:inline-block;    padding: .3em .5em .3em .4em;    font-size:1.4em;    cursor: pointer; } summary:after {     content: \"+\";   margin-left: .3em;   display: inline-block;   transition: transform .5s; } details[open] &gt; summary:after {   transform: scale(1,-1); } summary ~ * {    padding:0 1em 0 1em; } summary:focus {   outline:0;   box-shadow: inset 0 0 1px rgba(0,0,0,0.3), inset 0 0 2px rgba(0,0,0,0.3); } details[open] summary ~ *{    animation: sweep .5s ease-in-out; } @keyframes sweep {   0%    {opacity: 0;}   100%  {opacity: 1;} } details{   display:block;   margin-bottom: .5rem; } <\/code><\/pre>\n<p>  \u0412 \u043d\u043e\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0435\u0440\u0430 summary:after \u0432\u043c\u0435\u0441\u0442\u043e summary:before, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431 \u043e\u043d \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0441\u044f \u0441\u043f\u0440\u0430\u0432\u0430.<\/p>\n<p>  \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043c\u0430\u0440\u043a\u0435\u0440\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 transform: scale(1,-1);<\/p>\n<p>  \u0412\u0441\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 summary, \u0441\u0442\u0430\u0432\u043b\u044e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u043f\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 animation: sweep .5s ease-in-out;<\/p>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/QWLMOxL?height=300&amp;slug-hash=QWLMOxL&amp;default-tabs=html,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  Svg \u043c\u0430\u0440\u043a\u0435\u0440 + \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/j_\/st\/bp\/j_stbp-yp9b9juoq0upie2bjxok.gif\" alt=\"Details\/Summary - svg \u043c\u0430\u0440\u043a\u0435\u0440 + \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430\"><\/p>\n<p>  CSS:<\/p>\n<pre><code class=\"css\">summary::-webkit-details-marker{display:none;} summary::-moz-list-bullet{list-style-type:none;} summary::marker{display:none;}  summary {    display:inline-block;    padding: .3em .6em .3em 1.5em;    font-size:1.4em;    cursor: pointer;    position: relative; } summary:before {     left: .3em;   top: .4em;   color: transparent;   background: url(\"data:image\/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz48L3N2Zz4=\") no-repeat 50% 50% \/ 1em 1em;   width: 1em;   height: 1em;     content: \"\";   position: absolute;   transition: transform .5s; } details[open] &gt; summary:before {   transform: rotateZ(90deg); } summary ~ * {    padding:0 1em 0 1em; } details[open] summary ~ *{    animation: sweep .5s ease-in-out; } @keyframes sweep {   0%    {opacity: 0;}   100%  {opacity: 1;} } summary:focus {   outline:0;   box-shadow: inset 0 0 1px rgba(0,0,0,0.3), inset 0 0 2px rgba(0,0,0,0.3); } details{   display:block;   margin-bottom: .5rem; } <\/code><\/pre>\n<p>  Summary:before \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<ol>\n<li>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c position: absolute; left: .3em; top: .4em; width: 1em; height: 1em; <\/li>\n<li>\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c\u0443 \u043c\u0430\u0440\u043a\u0435\u0440\u0443 \u043d\u0430\u0434\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c color: transparent; \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043d.<\/li>\n<li>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0432\u0435\u0448\u0430\u0435\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 background.<\/li>\n<\/ol>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443 summary \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f padding-left: 1.5em, \u0447\u0442\u043e\u0431 \u0442\u0435\u043a\u0441\u0442 \u0438 \u0438\u043a\u043e\u043d\u043a\u0430 \u043d\u0435 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430.<\/p>\n<p>  \u041d\u0443 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c transform: rotateZ(90deg) \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0433\u043e \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0438.<\/p>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/oNveomq?height=300&amp;slug-hash=oNveomq&amp;default-tabs=css,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 svg \u0438\u043a\u043e\u043d\u043a\u0430 \u0441\u043f\u0440\u0430\u0432\u0430, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c summary:before \u0438 \u0432\u043c\u0435\u0441\u0442\u043e left \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c right.<\/p>\n<p>  \u0414\u043b\u044f summary \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c padding-right: 1.5em;<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/u9\/lg\/m-\/u9lgm-0jky0x8ljor_e61issbuu.gif\" alt=\"Details\/Summary - svg \u043c\u0430\u0440\u043a\u0435\u0440 \u0441\u043f\u0440\u0430\u0432\u0430 + \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430\"><\/p>\n<p>  CSS:<\/p>\n<pre><code class=\"css\">summary::-webkit-details-marker{display:none;} summary::-moz-list-bullet{list-style-type:none;} summary::marker{display:none;}  summary {    display:inline-block;    padding: .3em 1.5em .3em .6em;    font-size:1.4em;    cursor: pointer;    position: relative; } summary:before {   right: .3em;   top: .4em;   color: transparent;   background: url(\"data:image\/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz48L3N2Zz4=\") no-repeat 50% 50% \/ 1em 1em;   width: 1em;   height: 1em;     content: \"\";   position: absolute;   transition: transform .5s; } details[open] &gt; summary:before {   transform: rotateZ(90deg); } summary ~ * {    padding:0 1em 0 1em; } details[open] summary ~ *{    animation: sweep .5s ease-in-out; } @keyframes sweep {   0%    {opacity: 0;}   100%  {opacity: 1;} } summary:focus {   outline:0;   box-shadow: inset 0 0 1px rgba(0,0,0,0.3), inset 0 0 2px rgba(0,0,0,0.3); } details{   display:block;   margin-bottom: .5rem; } <\/code><\/pre>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/RwbZjmq?height=300&amp;slug-hash=RwbZjmq&amp;default-tabs=css,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>   \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u043a\u043a\u043e\u0440\u0434\u0438\u043e\u043d\u0430, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u043a\u043e\u043d\u043a\u0430 \u0441\u043b\u0435\u0432\u0430, \u0444\u043e\u043d, \u0442\u0435\u043d\u0438, \u044d\u0444\u0444\u0435\u043a\u0442\u044b:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/l9\/q-\/zf\/l9q-zf0h-3jizg0vskeirourdjq.gif\" alt=\"\u0410\u043a\u043a\u043e\u0440\u0434\u0438\u043e\u043d - \u0438\u043a\u043e\u043d\u043a\u0430 \u0441\u043b\u0435\u0432\u0430, \u0444\u043e\u043d, \u0442\u0435\u043d\u0438, \u044d\u0444\u0444\u0435\u043a\u0442\u044b\"><\/p>\n<p>  CSS:<\/p>\n<pre><code class=\"css\">body{background: #edf2f7;} details{   display:block;   background: #fff;   width:400px;   box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);   border-radius: 8px;   overflow:hidden;   margin-bottom: 1.5rem; } summary::-webkit-details-marker{display:none;} summary::-moz-list-bullet{list-style-type:none;} summary::marker{display:none;}  summary {    display:block;    padding: .3em .3em .3em 1.4em;    font-size:1.4em;    cursor: pointer;    position: relative;    border-bottom: 1px solid #e2e8f0; } summary:before {     top: .4em;   left: .3em;   color: transparent;   background: url(\"data:image\/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz48L3N2Zz4=\") no-repeat 50% 50% \/ 1em 1em;   width: 1em;   height: 1em;     content: \"\";   position: absolute;   transition: transform .5s; } details[open] &gt; summary:before {   transform: rotateZ(90deg); } summary ~ * {    padding: 0 2em 10px 2em; } details[open] summary ~ *{    animation: sweep .5s ease-in-out; } @keyframes sweep {   0%    {opacity: 0;}   100%  {opacity: 1;} } summary:focus {   outline:0;   box-shadow: inset 0 0 1px rgba(0,0,0,0.3), inset 0 0 2px rgba(0,0,0,0.3); } <\/code><\/pre>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/QWLMajy?height=300&amp;slug-hash=QWLMajy&amp;default-tabs=css,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  Svg \u043c\u0430\u0440\u043a\u0435\u0440 \u0441\u043f\u0440\u0430\u0432\u0430 + \u044d\u0444\u0444\u0435\u043a\u0442 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/b8\/oz\/fs\/b8ozfsmgq3ybj9_rimaw1gpasgy.gif\" alt=\"\u0410\u043a\u043a\u043e\u0440\u0434\u0438\u043e\u043d - \u0438\u043a\u043e\u043d\u043a\u0430 \u0441\u043f\u0440\u0430\u0432\u0430 + \u044d\u0444\u0444\u0435\u043a\u0442 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0438\"><\/p>\n<p>  CSS:<\/p>\n<pre><code class=\"css\">body{background: #edf2f7;} details{   display:block;   background: #fff;   width:400px;   box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);   border-radius: 8px;   overflow:hidden;   margin-bottom: 1.5rem; } summary::-webkit-details-marker{display:none;} summary::-moz-list-bullet{list-style-type:none;} summary::marker{display:none;}  summary {    display:block;    padding: .3em .3em .3em 1.4em;    font-size:1.4em;    cursor: pointer;    position: relative;    border-bottom: 1px solid #e2e8f0; } summary:before {     top: .4em;   left: .3em;   color: transparent;   background: url(\"data:image\/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz48L3N2Zz4=\") no-repeat 50% 50% \/ 1em 1em;   width: 1em;   height: 1em;     content: \"\";   position: absolute;   transition: transform .5s; } details[open] &gt; summary:before {   transform: rotateZ(90deg); } summary ~ * {    padding: 0 2em 10px 2em; } details[open] summary ~ *{    animation: sweep .5s ease-in-out; } @keyframes sweep {   0%    {opacity: 0;}   100%  {opacity: 1;} } summary:focus {   outline:0;   box-shadow: inset 0 0 1px rgba(0,0,0,0.3), inset 0 0 2px rgba(0,0,0,0.3); } <\/code><\/pre>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/qBWXpay?height=300&amp;slug-hash=qBWXpay&amp;default-tabs=css,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0430\u043a\u043a\u043e\u0440\u0434\u0438\u043e\u043d\u044b, \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u044b \u0438 faq, \u0431\u0435\u0437 JavaScript, \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c HTML5 \u0438 CSS. <\/p>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0443\u0431\u0438\u0440\u0430\u0442\u044c outline, 100 \u0440\u0430\u0437 \u043f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435, \u0447\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c, \u0447\u0442\u043e\u0431 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0433 \u0432\u0438\u0434\u0435\u0442\u044c \u0444\u043e\u043a\u0443\u0441 \u0438 \u043c\u043e\u0433 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431 \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430, \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435, \u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c javascript, \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e JS \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0448\u0438\u0442 \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443.<\/p>\n<p>  JavaScript:<\/p>\n<pre><code class=\"javascript\">var details = document.querySelectorAll(\"details\"); for(i=0;i&lt;details.length;i++) {   details[i].addEventListener(\"toggle\", accordion); } function accordion(event) {   if (!event.target.open) return;     var details = event.target.parentNode.children;     for(i=0;i&lt;details.length;i++) {       if (details[i].tagName != \"DETAILS\" ||           !details[i].hasAttribute('open') ||           event.target == details[i]) {          continue;       }       details[i].removeAttribute(\"open\");     } } <\/code><\/pre>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/cPortfolio\/embed\/preview\/YzKxaNE?height=300&amp;slug-hash=YzKxaNE&amp;default-tabs=css,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <a href=\"https:\/\/caniuse.com\/#search=details\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 Details\/Summary \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438.<\/a><\/p>\n<p>  \u0421 \u0432\u0430\u043c\u0438 \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u043b\u044d\u043d\u0434\u0438\u043d\u0433\u043e\u0432 cPortfolio!<\/p><\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \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\/post\/465623\/\"> https:\/\/habr.com\/ru\/post\/465623\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4l\/c2\/20\/4lc220bhxzc8mrhnsiv7zfwspbg.gif\" alt=\"\u0410\u043a\u043a\u043e\u0440\u0434\u0435\u043e\u043d \u0438 faq\"><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u043a\u043a\u043e\u0440\u0434\u0435\u043e\u043d, faq, \u0441\u043f\u043e\u0439\u043b\u0435\u0440 \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Div \u0438 JavaScript. <br \/>  \u041d\u043e \u043b\u0443\u0447\u0448\u0435: Details \u0438 Summary<\/p>\n<p>  \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u043c\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438 \u0438 \u044d\u0442\u043e \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u043f\u043b\u044e\u0441\u044b:<\/p>\n<ol>\n<li>\u041b\u044e\u0434\u044f\u043c \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043f\u0440\u043e\u0449\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0430\u0448\u0438\u043c \u0441\u0430\u0439\u0442\u043e\u043c! \u0418\u0445 \u0441\u043e\u0444\u0442 (\u0441\u043a\u0440\u0438\u043d\u0440\u0438\u0434\u0435\u0440\u044b \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435) \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 html5 \u0442\u0435\u0433\u0438 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439 \u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c.<\/li>\n<li>\u0423\u043b\u0443\u0447\u0448\u0438\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430, \u0438 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u0439\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0432\u0438\u0434\u0438\u043c\u044b\u0439 \u0438 \u0441\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442.<\/li>\n<li>\u0411\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/li>\n<li>\u0423\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e javascript \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c, \u0447\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c. <\/li>\n<li>\u0423\u043b\u0443\u0447\u0448\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 Lighthouse, Google PageSpeed \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0445.<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u043c javascript.<\/li>\n<\/ol>\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-294146","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294146","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=294146"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294146\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}