{"id":159087,"date":"2012-11-18T00:24:03","date_gmt":"2012-11-17T20:24:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=159087"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=159087","title":{"rendered":"<span class=\"post_title\">Gamma Gallery \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u0433\u0430\u043b\u0435\u0440\u0435\u044f<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u043e\u0442\u043e\u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u0434\u043b\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0439 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u2014 \u043d\u0435 \u0441\u0430\u043c\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0430\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u0448\u0438\u0440\u0438\u043d\u044b, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u0425\u043e\u0440\u043e\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 Gamma Gallery, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/28b\/6e4\/65a\/28b6e465a3631c0cdb3fa7cf906470af.png\"\/><\/p>\n<p>  <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/gamma\/\">\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f<\/a> | \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438: <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/gamma\/full.zip\">\u043f\u043e\u043b\u043d\u0430\u044f<\/a> \u0438 <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/gamma\/light.zip\">\u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u0430\u044f<\/a> \u0432\u0435\u0440\u0441\u0438\u044f <a name=\"habracut\"><\/a><\/p>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b:<\/p>\n<ul>\n<li><a href=\"http:\/\/masonry.desandro.com\/\">jQuery Masonry<\/a> \u0434\u043b\u044f \u0441\u0435\u0442\u043a\u0438<\/li>\n<li><a href=\"http:\/\/www.w3.org\/TR\/page-visibility\/\">PageVisibility API<\/a> \u0434\u043b\u044f \u0441\u043b\u0430\u0439\u0434\u0448\u043e\u0443<\/li>\n<li><a href=\"https:\/\/github.com\/websanova\/js-url\">url()<\/a>: \u043f\u0440\u043e\u0441\u0442\u043e\u0439 URL \u043f\u0430\u0440\u0441\u0435\u0440 \u043d\u0430 JavaScript<\/li>\n<li><a href=\"https:\/\/github.com\/balupton\/history.js\">History.js<\/a> \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 HTML5 History\/State API<\/li>\n<li><a href=\"http:\/\/jquerypp.com\/\">jQuery++<\/a> \u0438 <a href=\"http:\/\/modernizr.com\/\">Modernizr<\/a><\/li>\n<\/ul>\n<p>  \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 HTML-\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0441\u0440\u0430\u0437\u0443 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u043d\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u044d\u043a\u0440\u0430\u043d\u0430:<\/p>\n<pre><code class=\"html\">&lt;div class=&quot;gamma-container gamma-loading&quot; id=&quot;gamma-container&quot;&gt;       &lt;ul class=&quot;gamma-gallery&quot;&gt;         &lt;li&gt;             &lt;div data-alt=&quot;img01&quot; data-description=&quot;&lt;h3&gt;Assemblage&lt;\/h3&gt;&quot; data-max-width=&quot;1800&quot; data-max-height=&quot;2400&quot;&gt;                 &lt;div data-src=&quot;images\/xxxlarge\/1.jpg&quot; data-min-width=&quot;1300&quot;&gt;&lt;\/div&gt;                 &lt;div data-src=&quot;images\/xxlarge\/1.jpg&quot; data-min-width=&quot;1000&quot;&gt;&lt;\/div&gt;                 &lt;div data-src=&quot;images\/xlarge\/1.jpg&quot; data-min-width=&quot;700&quot;&gt;&lt;\/div&gt;                 &lt;div data-src=&quot;images\/large\/1.jpg&quot; data-min-width=&quot;300&quot;&gt;&lt;\/div&gt;                 &lt;div data-src=&quot;images\/medium\/1.jpg&quot; data-min-width=&quot;200&quot;&gt;&lt;\/div&gt;                 &lt;div data-src=&quot;images\/small\/1.jpg&quot; data-min-width=&quot;140&quot;&gt;&lt;\/div&gt;                 &lt;div data-src=&quot;images\/xsmall\/1.jpg&quot;&gt;&lt;\/div&gt;                 &lt;noscript&gt;                     &lt;img src=&quot;images\/xsmall\/1.jpg&quot; alt=&quot;img01&quot;\/&gt;                 &lt;\/noscript&gt;             &lt;\/div&gt;         &lt;\/li&gt;         &lt;li&gt; &lt;!-- ... --&gt; &lt;\/li&gt;         &lt;!-- ... --&gt;     &lt;\/ul&gt;       &lt;div class=&quot;gamma-overlay&quot;&gt;&lt;\/div&gt;   &lt;\/div&gt; <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430:<\/p>\n<pre><code class=\"javascript\">\/\/ default value for masonry column count columns : 4, \/\/ transition properties for the images in ms (transition to\/from singleview) speed : 300, easing : 'ease', \/\/ if set to true the overlay's opacity will animate (transition to\/from singleview) overlayAnimated : true, \/\/ if true, the navigate next function is called when the image (singleview) is clicked nextOnClickImage : true, \/\/ circular navigation circular : true, \/\/ transition settings for the image in the single view. \/\/ These include: \/\/ - adjusting its position and size when the window is resized \/\/ - fading out the image when navigating svImageTransitionSpeedFade : 300, svImageTransitionEasingFade : 'ease-in-out', svImageTransitionSpeedResize : 300, svImageTransitionEasingResize : 'ease-in-out', svMarginsVH : {     vertical : 140,     horizontal : 120 }, \/\/ allow keybord and swipe navigation keyboard : true, swipe : true, \/\/ slideshow interval (ms) interval : 4000, \/\/ if History API is not supported this value will turn false historyapi : true <\/code><\/pre>\n<p>  \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0433\u0430\u043b\u0435\u0440\u0435\u0438, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u0430\u043a\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u0430\u0445:<\/p>\n<pre><code class=\"html\">&lt;script type=&quot;text\/javascript&quot;&gt;           $(function() {           var GammaSettings = {                 \/\/ order is important!                 viewport : [ {                     width : 1200,                     columns : 5                 }, {                     width : 900,                     columns : 4                 }, {                     width : 500,                     columns : 3                 }, {                      width : 320,                     columns : 2                 }, {                      width : 0,                     columns : 2                 } ]         };           Gamma.init( GammaSettings );       });   &lt;\/script&gt; <\/code><\/pre>\n<p>  \u041f\u043b\u0430\u0433\u0438\u043d \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u043e\u0441\u0438\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0443\u0441, \u043e\u0434\u043d\u0430\u043a\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0436\u0438\u0432\u044b\u0445 \u0441\u0430\u0439\u0442\u0430\u0445 \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u043d\u043e. \u0410\u0432\u0442\u043e\u0440\u044b \u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u2014 <a href=\"http:\/\/tympanus.net\/codrops\/2012\/11\/06\/gamma-gallery-a-responsive-image-gallery-experiment\/\">tympanus.net<\/a>.    \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\/159087\/\"> http:\/\/habrahabr.ru\/post\/159087\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u043e\u0442\u043e\u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u0434\u043b\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0439 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u2014 \u043d\u0435 \u0441\u0430\u043c\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0430\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u0448\u0438\u0440\u0438\u043d\u044b, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u0425\u043e\u0440\u043e\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 Gamma Gallery, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/28b\/6e4\/65a\/28b6e465a3631c0cdb3fa7cf906470af.png\"\/><\/p>\n<p>  <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/gamma\/\">\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f<\/a> | \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438: <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/gamma\/full.zip\">\u043f\u043e\u043b\u043d\u0430\u044f<\/a> \u0438 <a href=\"http:\/\/koulikov.com\/wp-content\/uploads\/2012\/11\/gamma\/light.zip\">\u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u0430\u044f<\/a> \u0432\u0435\u0440\u0441\u0438\u044f <\/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-159087","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/159087","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=159087"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/159087\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}