{"id":361,"date":"2014-11-07T14:09:05","date_gmt":"2014-11-07T14:09:05","guid":{"rendered":"http:\/\/topdevs.net\/smart-grid-gallery\/?page_id=361"},"modified":"2016-11-07T14:50:57","modified_gmt":"2016-11-07T14:50:57","slug":"infinite-scroll-wordpress-gallery","status":"publish","type":"page","link":"http:\/\/topdevs.net\/smart-grid-gallery\/infinite-scroll-wordpress-gallery\/","title":{"rendered":"Infinite Scroll WordPress Gallery"},"content":{"rendered":"<h1>Infinite Scroll WordPress Gallery<\/h1>\n<p>It has\u00a0never been so easy to add infinite scroll WordPress gallery to your site. Using &#8220;Smart Grid Gallery&#8221; plugin you can make\u00a0native [gallery] shortcodes loaded one by one when page is scrolled or button is clicked. Increase page loading speed and improve user experience with this incredible feature. <strong>&#8220;Style 8 &#8211; Direction Aware&#8221; hover effect IS NOT\u00a0SUPPORTED for this feature at the moment. Randomize images is also NOT SUPPORTED with it.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div class=\"column-grid column-grid-12\"><div class=\"column column-span-6 column-push-0 column-first\"><\/p>\n<h2>Infinite Scroll<\/h2>\n<p><strong>Pros<\/strong>. Loads images automatically. No interaction from user required.<br \/>\n<strong>Cons.<\/strong>\u00a0Hard to scroll down to the content below the gallery.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"justified_gallery_RO26aV\" class=\"sgg-style-8 \"><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1.jpg\" data-size=\"1440x1920\" data-caption=\"Winter\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1-225x300.jpg\" data-caption=\"Winter\" alt=\"Winter\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg\" data-size=\"1024x683\" data-caption=\"14382677822_37cf1bc82e_b\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg\" data-caption=\"14382677822_37cf1bc82e_b\" alt=\"14382677822_37cf1bc82e_b\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg\" data-size=\"1024x683\" data-caption=\"14442854887_4afc1958aa_b\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg\" data-caption=\"14442854887_4afc1958aa_b\" alt=\"14442854887_4afc1958aa_b\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280.jpg\" data-size=\"1440x1920\" data-caption=\"River\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280-225x300.jpg\" data-caption=\"River\" alt=\"River\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg\" data-size=\"1024x683\" data-caption=\"14555818552_54f572a850_b\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg\" data-caption=\"14555818552_54f572a850_b\" alt=\"14555818552_54f572a850_b\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o.jpg\" data-size=\"1920x1440\" data-caption=\"River View\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o-300x225.jpg\" data-caption=\"River View\" alt=\"River View\"\/><\/a><\/div>\n<div id=\"load_more_holder_RO26aV\" style=\"display:none\"><\/div>\n\t\t\t<script type=\"text\/javascript\">\n\t\t\t\t(function($){\n\t\t\t\t\t$(\"#justified_gallery_RO26aV\").justifiedGallery({\n\t\t\t\t\t\tsizeRangeSuffixes : {'lt100': '', 'lt240': '', 'lt320': '', 'lt500': '', 'lt640': '', 'lt1024': ''},rowHeight: 150,\r\nmobileRowHeight: 200,\r\nmargins: 5,\r\nlastRow: \"nojustify\",\r\nfixedHeight: false,\r\ncaptions: false,\r\ncaptionsColor: \"#000000\",\r\ncaptionsOpacity: 0.6,\r\nrandomize: false,\r\nmaxRowHeight: 0,\r\nrel: \"RO26aV\",\r\ntarget: null,\r\nrefreshTime: 250,\r\ncssAnimation: true,\r\ncaptionsAnimationDuration: 500,\r\nimagesAnimationDuration: 300,\r\ncaptionsVisibleOpacity: 0.7,\r\nclass: \"\",\r\n\t\t\t\t\t})\n\t\t\t\t\t.on('jg.complete', function(){\n\t\t\t\t\t\t$('#justified_gallery_RO26aV a.sgg-lightbox-item').magnificPopup({type: 'image',\n\t\t\t\t\t\tmainClass: 'mfp-with-zoom',\n\t\t\t\t\t\tcloseOnContentClick: true,\n\t\t\t\t\t\tcloseBtnInside: false,\n\t\t\t\t\t\tpreloader: 'true',\n\t\t\t\t\t\ttLoading: '',\n\t\t\t\t\t\ttClose: '',image: {\n\t\t\t\t\t\t\tverticalFit: true,titleSrc: function(item) {\n\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t}},zoom: {\n\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\tduration: 300\n\t\t\t\t\t\t},\n\t\t\t\t\t\tgallery: {\n\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\ttPrev: '',\n    \t\t\t\t\t\ttNext: '',\n\t\t\t\t\t\t\ttCounter: '(%curr%\/%total%)'\n\t\t\t\t\t\t},iframe: {\n\t\t\t\t\t\t  markup: \n\t\t\t\t\t\t    '<div class=\"mfp-iframe-scaler\">'+\n\t\t\t\t\t\t\t  '<div class=\"mfp-close\"><\/div>'+\n\t\t\t\t\t\t\t    '<iframe class=\"mfp-iframe\" frameborder=\"0\" allowfullscreen><\/iframe>'+\n\t\t\t\t\t\t\t  '<div class=\"mfp-title\"><\/div>'+\n\t\t\t\t\t\t\t'<\/div>',\n\t\t\t\t\t\t  patterns: {\n\t\t\t\t\t\t    youtube: {\n\t\t\t\t\t\t      index: 'youtube.com\/', \/\/ String that detects type of video (in this case YouTube). Simply via url.indexOf(index).\n\t\t\t\t\t\t      id: 'v=', \/\/ String that splits URL in a two parts, second part should be %id%\n\t\t\t\t\t\t      \/\/ Or null - full URL will be returned\n\t\t\t\t\t\t      \/\/ Or a function that should return %id%, for example:\n\t\t\t\t\t\t      \/\/ id: function(url) { return 'parsed id'; }\n\t\t\t\t\t\t      src: '\/\/www.youtube.com\/embed\/%id%?showinfo=0&rel=0' \/\/ URL that will be set as a source for iframe. \n\t\t\t\t\t\t    },\n\t\t\t\t\t\t    youtu_be: {\n\t\t\t\t\t\t      index: 'youtu.be\/',\n\t\t\t\t\t\t      id: '\/',\n\t\t\t\t\t\t      src: '\/\/www.youtube.com\/embed\/%id%?showinfo=0&rel=0'\n\t\t\t\t\t\t    },\n\t\t\t\t\t\t    vimeo: {\n\t\t\t\t\t\t      index: 'vimeo.com\/',\n\t\t\t\t\t\t      id: '\/',\n\t\t\t\t\t\t      src: '\/\/player.vimeo.com\/video\/%id%?byline=0&amp;portrait=0'\n\t\t\t\t\t\t    }\n\t\t\t\t\t\t  }\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcallbacks: {\n\t\t\t\t\t\t  markupParse: function(template, values, item) {\n\t\t\t\t\t\t   values.title = item.el.attr('data-caption');\n\t\t\t\t\t\t  }\n\t\t\t\t\t\t}});\t\t\t\t\t});\n\t\t\t\t\tvar nodes = document.querySelectorAll('#justified_gallery_RO26aV > *'),\n_nodes = [].slice.call(nodes, 0);\nvar getDirection = function (ev, obj) {\n    \/\/ the width and height of the current div\n\tvar w = $(obj).width(),\n\t\th = $(obj).height(),\n\t\t\/\/ calculate the x and y to get an angle to the center of the div from that x and y.\n\t\t\/\/ gets the x value relative to the center of the DIV and \"normalize\" it\n\t\tx = ( ev.pageX - $(obj).offset().left - ( w\/2 )) * ( w > h ? ( h\/w ) : 1 ),\n\t\ty = ( ev.pageY - $(obj).offset().top  - ( h\/2 )) * ( h > w ? ( w\/h ) : 1 ),\n\t\t\/\/ the angle and the direction from where the mouse came in\/went out clockwise (TRBL=0123);\n\t\t\/\/ first calculate the angle of the point,\n\t\t\/\/ add 180 deg to get rid of the negative values\n\t\t\/\/ divide by 90 to get the quadrant\n\t\t\/\/ add 3 and do a modulo by 4  to shift the quadrants to a proper clockwise TRBL (top\/right\/bottom\/left) **\/\n\t\tdirection = Math.round( ( ( ( Math.atan2(y, x) * (180 \/ Math.PI) ) + 180 ) \/ 90 ) + 3 ) % 4;\n\treturn direction;\n};\nvar addClass = function ( ev, obj, state ) {\n    var direction = getDirection( ev, obj ),\n        class_suffix = \"\",\n        iframe = obj.classList.contains(\"mfp-iframe\");\n    obj.className = \"\";\n    if (iframe) {\n        obj.classList.add(\"mfp-iframe\");\n    }\n    obj.classList.add(\"sgg-lightbox-item\");\n    switch ( direction ) {\n        case 0 : class_suffix = '-top';    break;\n        case 1 : class_suffix = '-right';  break;\n        case 2 : class_suffix = '-bottom'; break;\n        case 3 : class_suffix = '-left';   break;\n    }\n    obj.classList.add( state + class_suffix );\n};\n\/\/ bind events\n_nodes.forEach(function (el) {\n    el.addEventListener('mouseenter', function (ev) {\n        addClass( ev, this, 'in' );\n    }, false);\n    el.addEventListener('mouseleave', function (ev) {\n        addClass( ev, this, 'out' );\n    }, false);\n});\t\t\t\t\tWebFontConfig = {\n\tgoogle: { families: [] }\n};\n(function() {\n\tvar wf = document.createElement('script');\n\twf.src = ('https:' == document.location.protocol ? 'https' : 'http') +\n\t\t':\/\/ajax.googleapis.com\/ajax\/libs\/webfont\/1\/webfont.js';\n\twf.type = 'text\/javascript';\n\twf.async = 'true';\n\tvar s = document.getElementsByTagName('script')[0];\n\ts.parentNode.insertBefore(wf, s);\n})();WebFontConfig.google.families.push('Lobster');\t\t\t\t\t\t\t\t\tvar galleries = [\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14376270065_b00cb75377_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg&quot; data-caption=&quot;14376270065_b00cb75377_b&quot; alt=&quot;14376270065_b00cb75377_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659.jpg&quot; data-size=&quot;1920x1126&quot; data-caption=&quot;River in a fog&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659-420x246.jpg&quot; data-caption=&quot;River in a fog&quot; alt=&quot;River in a fog&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14387378874_e25163f809_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg&quot; data-caption=&quot;14387378874_e25163f809_b&quot; alt=&quot;14387378874_e25163f809_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item mfp-iframe&quot; data-type=&quot;video&quot; href=&quot;https:\/\/www.youtube.com\/watch?v=FNJ09RwY6k8&quot; data-caption=&quot;Sea&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396iwHV9n1slhhf0o1_1280-225x300.jpg&quot; data-caption=&quot;Sea&quot; alt=&quot;Sea&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334.jpg&quot; data-size=&quot;1920x1277&quot; data-caption=&quot;In the mountains&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334-420x279.jpg&quot; data-caption=&quot;In the mountains&quot; alt=&quot;In the mountains&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Windmill&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2-300x225.jpg&quot; data-caption=&quot;Windmill&quot; alt=&quot;Windmill&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_vranov-czech-republic.jpg&quot; data-size=&quot;1547x1920&quot; data-caption=&quot;Valey&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_vranov-czech-republic-242x300.jpg&quot; data-caption=&quot;Valey&quot; alt=&quot;Valey&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item mfp-iframe&quot; data-type=&quot;video&quot; href=&quot;https:\/\/www.youtube.com\/watch?v=-WGfXjfBZ74&quot; data-caption=&quot;Amsterdam&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/wordpress-video-gallery-300x225.jpg&quot; data-caption=&quot;Amsterdam&quot; alt=&quot;Amsterdam&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_lednice-castle.jpg&quot; data-size=&quot;1388x1600&quot; data-caption=&quot;Castle&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_lednice-castle-260x300.jpg&quot; data-caption=&quot;Castle&quot; alt=&quot;Castle&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14375187664_23c376d694_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14375187664_23c376d694_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14375187664_23c376d694_b.jpg&quot; data-caption=&quot;14375187664_23c376d694_b&quot; alt=&quot;14375187664_23c376d694_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_GOPR0423.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Mistery Prague&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_GOPR0423-300x225.jpg&quot; data-caption=&quot;Mistery Prague&quot; alt=&quot;Mistery Prague&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad1.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;On the road&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad1-300x225.jpg&quot; data-caption=&quot;On the road&quot; alt=&quot;On the road&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14201760289_1ae3e7b285_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;Beach&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14201760289_1ae3e7b285_b.jpg&quot; data-caption=&quot;Beach&lt;br\/&gt;&lt;br\/&gt;&lt;i class=&#039;icon-large icon-zoom-in&#039;&gt;&lt;\/i&gt;&quot; alt=&quot;Beach&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/BeachSunset.jpg&quot; data-size=&quot;1920x1273&quot; data-caption=&quot;Beach sunset&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/BeachSunset-420x278.jpg&quot; data-caption=&quot;Beach sunset&quot; alt=&quot;Beach sunset&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Windmill&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2-300x225.jpg&quot; data-caption=&quot;Windmill&quot; alt=&quot;Windmill&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h.jpg&quot; data-size=&quot;1600x844&quot; data-caption=&quot;Factory&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h-420x222.jpg&quot; data-caption=&quot;Factory&quot; alt=&quot;Factory&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot; alt=&quot;14480507746_b5e63b0db1_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree.jpg&quot; data-size=&quot;1920x1280&quot; data-caption=&quot;Under the tree&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree-420x280.jpg&quot; data-caption=&quot;Under the tree&quot; alt=&quot;Under the tree&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Venice sunset&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o-300x225.jpg&quot; data-caption=&quot;Venice sunset&quot; alt=&quot;Venice sunset&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot; alt=&quot;14929301809_da44cf5e42_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;Bicycle&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b-420x280.jpg&quot; data-caption=&quot;Bicycle&lt;br\/&gt;&lt;br\/&gt;&lt;i class=&#039;icon-large icon-zoom-in&#039;&gt;&lt;\/i&gt;&quot; alt=&quot;Bicycle&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1.jpg&quot; data-size=&quot;1440x1920&quot; data-caption=&quot;Winter&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1-225x300.jpg&quot; data-caption=&quot;Winter&quot; alt=&quot;Winter&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14382677822_37cf1bc82e_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg&quot; data-caption=&quot;14382677822_37cf1bc82e_b&quot; alt=&quot;14382677822_37cf1bc82e_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14442854887_4afc1958aa_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg&quot; data-caption=&quot;14442854887_4afc1958aa_b&quot; alt=&quot;14442854887_4afc1958aa_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280.jpg&quot; data-size=&quot;1440x1920&quot; data-caption=&quot;River&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280-225x300.jpg&quot; data-caption=&quot;River&quot; alt=&quot;River&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14555818552_54f572a850_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg&quot; data-caption=&quot;14555818552_54f572a850_b&quot; alt=&quot;14555818552_54f572a850_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;River View&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o-300x225.jpg&quot; data-caption=&quot;River View&quot; alt=&quot;River View&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14376270065_b00cb75377_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg&quot; data-caption=&quot;14376270065_b00cb75377_b&quot; alt=&quot;14376270065_b00cb75377_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659.jpg&quot; data-size=&quot;1920x1126&quot; data-caption=&quot;River in a fog&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659-420x246.jpg&quot; data-caption=&quot;River in a fog&quot; alt=&quot;River in a fog&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14387378874_e25163f809_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg&quot; data-caption=&quot;14387378874_e25163f809_b&quot; alt=&quot;14387378874_e25163f809_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item mfp-iframe&quot; data-type=&quot;video&quot; href=&quot;https:\/\/www.youtube.com\/watch?v=FNJ09RwY6k8&quot; data-caption=&quot;Sea&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396iwHV9n1slhhf0o1_1280-225x300.jpg&quot; data-caption=&quot;Sea&quot; alt=&quot;Sea&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334.jpg&quot; data-size=&quot;1920x1277&quot; data-caption=&quot;In the mountains&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334-420x279.jpg&quot; data-caption=&quot;In the mountains&quot; alt=&quot;In the mountains&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item mfp-iframe&quot; data-type=&quot;video&quot; href=&quot;https:\/\/www.youtube.com\/watch?v=-WGfXjfBZ74&quot; data-caption=&quot;Amsterdam&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/wordpress-video-gallery-300x225.jpg&quot; data-caption=&quot;Amsterdam&quot; alt=&quot;Amsterdam&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Windmill&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2-300x225.jpg&quot; data-caption=&quot;Windmill&quot; alt=&quot;Windmill&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h.jpg&quot; data-size=&quot;1600x844&quot; data-caption=&quot;Factory&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h-420x222.jpg&quot; data-caption=&quot;Factory&quot; alt=&quot;Factory&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot; alt=&quot;14480507746_b5e63b0db1_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree.jpg&quot; data-size=&quot;1920x1280&quot; data-caption=&quot;Under the tree&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree-420x280.jpg&quot; data-caption=&quot;Under the tree&quot; alt=&quot;Under the tree&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Venice sunset&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o-300x225.jpg&quot; data-caption=&quot;Venice sunset&quot; alt=&quot;Venice sunset&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot; alt=&quot;14929301809_da44cf5e42_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;Bicycle&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b-420x280.jpg&quot; data-caption=&quot;Bicycle&lt;br\/&gt;&lt;br\/&gt;&lt;i class=&#039;icon-large icon-zoom-in&#039;&gt;&lt;\/i&gt;&quot; alt=&quot;Bicycle&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t];\n\t\t\t\tvar gallery = $(\"#justified_gallery_RO26aV\");\n\t\t\t\t$(window).scroll(function() {\n\t\t\t\t\tif ( galleries.length >= 1  ) {\n\t\t\t\t\t\tvar scroll_top = $(window).scrollTop();\n\t\t\t\t\t\tvar scroll_bottom = scroll_top + $(window).height();\n\t\t\t\t\t\tvar gallery_top = $(gallery).offset().top;\n\t\t\t\t\t\tvar gallery_height = $(gallery).innerHeight();\n\t\t\t\t\t\tvar gallery_bottom = gallery_top + gallery_height;\n\t\t\t\t\t\tif( scroll_bottom >= gallery_bottom ) {\n\t\t\t\t\t\t\tvar images = galleries.splice(0,1);\n\t\t\t\t\t\t\tvar image_html = $(\"#load_more_holder_RO26aV\").html(images).text();\n\t\t\t\t\t\t\t$(gallery).append(image_html);\n\t\t\t\t\t\t\t$(gallery).justifiedGallery('norewind');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\t\t\t\t})(jQuery);\n\t\t\t<\/script>\n\t\t\t\t\t\t<style>\n\t            #justified_gallery_RO26aV .sgg-caption {\n\t\t\t\t\tbackground: rgb(0,0,0);\n\t\t\t\t\tbackground: rgba(0,0,0,0.6);\n\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\tfont-size: 1.8em;\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t\tfont-family: Lobster;\n\t\t\t\t}\n\t\t\t\t#load_more_RO26aV {\n\t\t\t\t    background: #444444;\n\t\t\t\t    color: #ffffff;\n\t\t\t\t}\n\t\t\t<\/style>\n        \t\n<p>\n<\/div>\n<div class=\"column column-span-6 column-push-0 column-last\"><\/p>\n<h2>Load More<\/h2>\n<p><strong>Pros<\/strong>. Loads images\u00a0only if a user is interested in it.<br \/>\n<strong>Cons.\u00a0<\/strong>User needs to click each time to load next bunch of images.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"justified_gallery_AjjkpR\" class=\"sgg-style-8 \"><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg\" data-size=\"1024x683\" data-caption=\"14376270065_b00cb75377_b\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg\" data-caption=\"14376270065_b00cb75377_b\" alt=\"14376270065_b00cb75377_b\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659.jpg\" data-size=\"1920x1126\" data-caption=\"River in a fog\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659-420x246.jpg\" data-caption=\"River in a fog\" alt=\"River in a fog\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg\" data-size=\"1024x683\" data-caption=\"14387378874_e25163f809_b\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg\" data-caption=\"14387378874_e25163f809_b\" alt=\"14387378874_e25163f809_b\"\/><\/a><a class=\"sgg-lightbox-item mfp-iframe\" data-type=\"video\" href=\"https:\/\/www.youtube.com\/watch?v=FNJ09RwY6k8\" data-caption=\"Sea\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396iwHV9n1slhhf0o1_1280-225x300.jpg\" data-caption=\"Sea\" alt=\"Sea\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334.jpg\" data-size=\"1920x1277\" data-caption=\"In the mountains\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334-420x279.jpg\" data-caption=\"In the mountains\" alt=\"In the mountains\"\/><\/a><a class=\"sgg-lightbox-item\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2.jpg\" data-size=\"1920x1440\" data-caption=\"Windmill\"><img decoding=\"async\" src=\"http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2-300x225.jpg\" data-caption=\"Windmill\" alt=\"Windmill\"\/><\/a><\/div>\n<div id=\"load_more_holder_AjjkpR\" style=\"display:none\"><\/div>\n\t\t\t\n\t\t\t<button id=\"load_more_AjjkpR\" class=\"sgg-load-more sgg-button-square sgg-button-medium\">\n\t\t\t\tLoad More\t\t\t<\/button>\n\t\t\t\n\t\t\t\t\t\t<script type=\"text\/javascript\">\n\t\t\t\t(function($){\n\t\t\t\t\t$(\"#justified_gallery_AjjkpR\").justifiedGallery({\n\t\t\t\t\t\tsizeRangeSuffixes : {'lt100': '', 'lt240': '', 'lt320': '', 'lt500': '', 'lt640': '', 'lt1024': ''},rowHeight: 150,\r\nmobileRowHeight: 200,\r\nmargins: 5,\r\nlastRow: \"nojustify\",\r\nfixedHeight: false,\r\ncaptions: false,\r\ncaptionsColor: \"#000000\",\r\ncaptionsOpacity: 0.6,\r\nrandomize: false,\r\nmaxRowHeight: 0,\r\nrel: \"AjjkpR\",\r\ntarget: null,\r\nrefreshTime: 250,\r\ncssAnimation: true,\r\ncaptionsAnimationDuration: 500,\r\nimagesAnimationDuration: 300,\r\ncaptionsVisibleOpacity: 0.7,\r\nclass: \"\",\r\n\t\t\t\t\t})\n\t\t\t\t\t.on('jg.complete', function(){\n\t\t\t\t\t\t$('#justified_gallery_AjjkpR a.sgg-lightbox-item').magnificPopup({type: 'image',\n\t\t\t\t\t\tmainClass: 'mfp-with-zoom',\n\t\t\t\t\t\tcloseOnContentClick: true,\n\t\t\t\t\t\tcloseBtnInside: false,\n\t\t\t\t\t\tpreloader: 'true',\n\t\t\t\t\t\ttLoading: '',\n\t\t\t\t\t\ttClose: '',image: {\n\t\t\t\t\t\t\tverticalFit: true,titleSrc: function(item) {\n\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t}},zoom: {\n\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\tduration: 300\n\t\t\t\t\t\t},\n\t\t\t\t\t\tgallery: {\n\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\ttPrev: '',\n    \t\t\t\t\t\ttNext: '',\n\t\t\t\t\t\t\ttCounter: '(%curr%\/%total%)'\n\t\t\t\t\t\t},iframe: {\n\t\t\t\t\t\t  markup: \n\t\t\t\t\t\t    '<div class=\"mfp-iframe-scaler\">'+\n\t\t\t\t\t\t\t  '<div class=\"mfp-close\"><\/div>'+\n\t\t\t\t\t\t\t    '<iframe class=\"mfp-iframe\" frameborder=\"0\" allowfullscreen><\/iframe>'+\n\t\t\t\t\t\t\t  '<div class=\"mfp-title\"><\/div>'+\n\t\t\t\t\t\t\t'<\/div>',\n\t\t\t\t\t\t  patterns: {\n\t\t\t\t\t\t    youtube: {\n\t\t\t\t\t\t      index: 'youtube.com\/', \/\/ String that detects type of video (in this case YouTube). Simply via url.indexOf(index).\n\t\t\t\t\t\t      id: 'v=', \/\/ String that splits URL in a two parts, second part should be %id%\n\t\t\t\t\t\t      \/\/ Or null - full URL will be returned\n\t\t\t\t\t\t      \/\/ Or a function that should return %id%, for example:\n\t\t\t\t\t\t      \/\/ id: function(url) { return 'parsed id'; }\n\t\t\t\t\t\t      src: '\/\/www.youtube.com\/embed\/%id%?showinfo=0&rel=0' \/\/ URL that will be set as a source for iframe. \n\t\t\t\t\t\t    },\n\t\t\t\t\t\t    youtu_be: {\n\t\t\t\t\t\t      index: 'youtu.be\/',\n\t\t\t\t\t\t      id: '\/',\n\t\t\t\t\t\t      src: '\/\/www.youtube.com\/embed\/%id%?showinfo=0&rel=0'\n\t\t\t\t\t\t    },\n\t\t\t\t\t\t    vimeo: {\n\t\t\t\t\t\t      index: 'vimeo.com\/',\n\t\t\t\t\t\t      id: '\/',\n\t\t\t\t\t\t      src: '\/\/player.vimeo.com\/video\/%id%?byline=0&amp;portrait=0'\n\t\t\t\t\t\t    }\n\t\t\t\t\t\t  }\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcallbacks: {\n\t\t\t\t\t\t  markupParse: function(template, values, item) {\n\t\t\t\t\t\t   values.title = item.el.attr('data-caption');\n\t\t\t\t\t\t  }\n\t\t\t\t\t\t}});\t\t\t\t\t});\n\t\t\t\t\tvar nodes = document.querySelectorAll('#justified_gallery_AjjkpR > *'),\n_nodes = [].slice.call(nodes, 0);\nvar getDirection = function (ev, obj) {\n    \/\/ the width and height of the current div\n\tvar w = $(obj).width(),\n\t\th = $(obj).height(),\n\t\t\/\/ calculate the x and y to get an angle to the center of the div from that x and y.\n\t\t\/\/ gets the x value relative to the center of the DIV and \"normalize\" it\n\t\tx = ( ev.pageX - $(obj).offset().left - ( w\/2 )) * ( w > h ? ( h\/w ) : 1 ),\n\t\ty = ( ev.pageY - $(obj).offset().top  - ( h\/2 )) * ( h > w ? ( w\/h ) : 1 ),\n\t\t\/\/ the angle and the direction from where the mouse came in\/went out clockwise (TRBL=0123);\n\t\t\/\/ first calculate the angle of the point,\n\t\t\/\/ add 180 deg to get rid of the negative values\n\t\t\/\/ divide by 90 to get the quadrant\n\t\t\/\/ add 3 and do a modulo by 4  to shift the quadrants to a proper clockwise TRBL (top\/right\/bottom\/left) **\/\n\t\tdirection = Math.round( ( ( ( Math.atan2(y, x) * (180 \/ Math.PI) ) + 180 ) \/ 90 ) + 3 ) % 4;\n\treturn direction;\n};\nvar addClass = function ( ev, obj, state ) {\n    var direction = getDirection( ev, obj ),\n        class_suffix = \"\",\n        iframe = obj.classList.contains(\"mfp-iframe\");\n    obj.className = \"\";\n    if (iframe) {\n        obj.classList.add(\"mfp-iframe\");\n    }\n    obj.classList.add(\"sgg-lightbox-item\");\n    switch ( direction ) {\n        case 0 : class_suffix = '-top';    break;\n        case 1 : class_suffix = '-right';  break;\n        case 2 : class_suffix = '-bottom'; break;\n        case 3 : class_suffix = '-left';   break;\n    }\n    obj.classList.add( state + class_suffix );\n};\n\/\/ bind events\n_nodes.forEach(function (el) {\n    el.addEventListener('mouseenter', function (ev) {\n        addClass( ev, this, 'in' );\n    }, false);\n    el.addEventListener('mouseleave', function (ev) {\n        addClass( ev, this, 'out' );\n    }, false);\n});\t\t\t\t\tWebFontConfig.google.families.push('Lobster');\t\t\t\t\t\t\t\t\tvar galleries = [\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1.jpg&quot; data-size=&quot;1440x1920&quot; data-caption=&quot;Winter&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1-225x300.jpg&quot; data-caption=&quot;Winter&quot; alt=&quot;Winter&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14382677822_37cf1bc82e_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg&quot; data-caption=&quot;14382677822_37cf1bc82e_b&quot; alt=&quot;14382677822_37cf1bc82e_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14442854887_4afc1958aa_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg&quot; data-caption=&quot;14442854887_4afc1958aa_b&quot; alt=&quot;14442854887_4afc1958aa_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280.jpg&quot; data-size=&quot;1440x1920&quot; data-caption=&quot;River&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280-225x300.jpg&quot; data-caption=&quot;River&quot; alt=&quot;River&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14555818552_54f572a850_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg&quot; data-caption=&quot;14555818552_54f572a850_b&quot; alt=&quot;14555818552_54f572a850_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;River View&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o-300x225.jpg&quot; data-caption=&quot;River View&quot; alt=&quot;River View&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Windmill&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2-300x225.jpg&quot; data-caption=&quot;Windmill&quot; alt=&quot;Windmill&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h.jpg&quot; data-size=&quot;1600x844&quot; data-caption=&quot;Factory&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h-420x222.jpg&quot; data-caption=&quot;Factory&quot; alt=&quot;Factory&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot; alt=&quot;14480507746_b5e63b0db1_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree.jpg&quot; data-size=&quot;1920x1280&quot; data-caption=&quot;Under the tree&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree-420x280.jpg&quot; data-caption=&quot;Under the tree&quot; alt=&quot;Under the tree&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Venice sunset&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o-300x225.jpg&quot; data-caption=&quot;Venice sunset&quot; alt=&quot;Venice sunset&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot; alt=&quot;14929301809_da44cf5e42_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;Bicycle&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b-420x280.jpg&quot; data-caption=&quot;Bicycle&lt;br\/&gt;&lt;br\/&gt;&lt;i class=&#039;icon-large icon-zoom-in&#039;&gt;&lt;\/i&gt;&quot; alt=&quot;Bicycle&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_vranov-czech-republic.jpg&quot; data-size=&quot;1547x1920&quot; data-caption=&quot;Valey&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_vranov-czech-republic-242x300.jpg&quot; data-caption=&quot;Valey&quot; alt=&quot;Valey&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item mfp-iframe&quot; data-type=&quot;video&quot; href=&quot;https:\/\/www.youtube.com\/watch?v=-WGfXjfBZ74&quot; data-caption=&quot;Amsterdam&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/wordpress-video-gallery-300x225.jpg&quot; data-caption=&quot;Amsterdam&quot; alt=&quot;Amsterdam&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_lednice-castle.jpg&quot; data-size=&quot;1388x1600&quot; data-caption=&quot;Castle&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_lednice-castle-260x300.jpg&quot; data-caption=&quot;Castle&quot; alt=&quot;Castle&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14375187664_23c376d694_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14375187664_23c376d694_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14375187664_23c376d694_b.jpg&quot; data-caption=&quot;14375187664_23c376d694_b&quot; alt=&quot;14375187664_23c376d694_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_GOPR0423.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Mistery Prague&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_GOPR0423-300x225.jpg&quot; data-caption=&quot;Mistery Prague&quot; alt=&quot;Mistery Prague&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad1.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;On the road&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad1-300x225.jpg&quot; data-caption=&quot;On the road&quot; alt=&quot;On the road&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14201760289_1ae3e7b285_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;Beach&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14201760289_1ae3e7b285_b.jpg&quot; data-caption=&quot;Beach&lt;br\/&gt;&lt;br\/&gt;&lt;i class=&#039;icon-large icon-zoom-in&#039;&gt;&lt;\/i&gt;&quot; alt=&quot;Beach&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/BeachSunset.jpg&quot; data-size=&quot;1920x1273&quot; data-caption=&quot;Beach sunset&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/BeachSunset-420x278.jpg&quot; data-caption=&quot;Beach sunset&quot; alt=&quot;Beach sunset&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14376270065_b00cb75377_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14376270065_b00cb75377_b.jpg&quot; data-caption=&quot;14376270065_b00cb75377_b&quot; alt=&quot;14376270065_b00cb75377_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659.jpg&quot; data-size=&quot;1920x1126&quot; data-caption=&quot;River in a fog&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_IMG_6659-420x246.jpg&quot; data-caption=&quot;River in a fog&quot; alt=&quot;River in a fog&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14387378874_e25163f809_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14387378874_e25163f809_b.jpg&quot; data-caption=&quot;14387378874_e25163f809_b&quot; alt=&quot;14387378874_e25163f809_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item mfp-iframe&quot; data-type=&quot;video&quot; href=&quot;https:\/\/www.youtube.com\/watch?v=FNJ09RwY6k8&quot; data-caption=&quot;Sea&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396iwHV9n1slhhf0o1_1280-225x300.jpg&quot; data-caption=&quot;Sea&quot; alt=&quot;Sea&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334.jpg&quot; data-size=&quot;1920x1277&quot; data-caption=&quot;In the mountains&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_DSC_3334-420x279.jpg&quot; data-caption=&quot;In the mountains&quot; alt=&quot;In the mountains&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item mfp-iframe&quot; data-type=&quot;video&quot; href=&quot;https:\/\/www.youtube.com\/watch?v=-WGfXjfBZ74&quot; data-caption=&quot;Amsterdam&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/wordpress-video-gallery-300x225.jpg&quot; data-caption=&quot;Amsterdam&quot; alt=&quot;Amsterdam&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Windmill&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_austriaroad2-300x225.jpg&quot; data-caption=&quot;Windmill&quot; alt=&quot;Windmill&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h.jpg&quot; data-size=&quot;1600x844&quot; data-caption=&quot;Factory&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/8564524508_169c136c7c_h-420x222.jpg&quot; data-caption=&quot;Factory&quot; alt=&quot;Factory&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14480507746_b5e63b0db1_b.jpg&quot; data-caption=&quot;14480507746_b5e63b0db1_b&quot; alt=&quot;14480507746_b5e63b0db1_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree.jpg&quot; data-size=&quot;1920x1280&quot; data-caption=&quot;Under the tree&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/picjumbo.com_Bench-Under-Tree-420x280.jpg&quot; data-caption=&quot;Under the tree&quot; alt=&quot;Under the tree&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;Venice sunset&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12408232674_507efbbaed_o-300x225.jpg&quot; data-caption=&quot;Venice sunset&quot; alt=&quot;Venice sunset&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14929301809_da44cf5e42_b.jpg&quot; data-caption=&quot;14929301809_da44cf5e42_b&quot; alt=&quot;14929301809_da44cf5e42_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;Bicycle&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14178004949_7711cf317f_b-420x280.jpg&quot; data-caption=&quot;Bicycle&lt;br\/&gt;&lt;br\/&gt;&lt;i class=&#039;icon-large icon-zoom-in&#039;&gt;&lt;\/i&gt;&quot; alt=&quot;Bicycle&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t\t\t\t\t\t\"&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1.jpg&quot; data-size=&quot;1440x1920&quot; data-caption=&quot;Winter&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/12345308323_29ea4c1317_1-225x300.jpg&quot; data-caption=&quot;Winter&quot; alt=&quot;Winter&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14382677822_37cf1bc82e_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14382677822_37cf1bc82e_b.jpg&quot; data-caption=&quot;14382677822_37cf1bc82e_b&quot; alt=&quot;14382677822_37cf1bc82e_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14442854887_4afc1958aa_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14442854887_4afc1958aa_b.jpg&quot; data-caption=&quot;14442854887_4afc1958aa_b&quot; alt=&quot;14442854887_4afc1958aa_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280.jpg&quot; data-size=&quot;1440x1920&quot; data-caption=&quot;River&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/tumblr_n396v8DDt01slhhf0o1_1280-225x300.jpg&quot; data-caption=&quot;River&quot; alt=&quot;River&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg&quot; data-size=&quot;1024x683&quot; data-caption=&quot;14555818552_54f572a850_b&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/11\/14555818552_54f572a850_b.jpg&quot; data-caption=&quot;14555818552_54f572a850_b&quot; alt=&quot;14555818552_54f572a850_b&quot;\/&gt;&lt;\/a&gt;&lt;a class=&quot;sgg-lightbox-item&quot; href=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o.jpg&quot; data-size=&quot;1920x1440&quot; data-caption=&quot;River View&quot;&gt;&lt;img src=&quot;http:\/\/topdevs.net\/smart-grid-gallery\/files\/2014\/06\/13324205983_bbb9d51bb5_o-300x225.jpg&quot; data-caption=&quot;River View&quot; alt=&quot;River View&quot;\/&gt;&lt;\/a&gt;\",\n\t\t\t\t];\n\t\t\t\tvar gallery = $(\"#justified_gallery_AjjkpR\");\n\t\t\t\t\t\t\t\t$(\"#load_more_AjjkpR\").on('click', function() {\n\t\t\t\t\tif ( galleries.length >= 1  ) {\n\t\t\t\t\t\tvar images = galleries.splice(0,1); \n\t\t\t\t\t\tvar image_html = $(\"#load_more_holder_AjjkpR\").html(images).text();\n\t\t\t\t\t\t$(gallery).append(image_html);\n\t\t\t\t\t\t$(gallery).justifiedGallery('norewind');\n\t\t\t\t\t\tif ( galleries.length == 0 ) {\n\t\t\t\t\t\t\t$(\"#load_more_AjjkpR\").css('display', 'none');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\t\t\t\t})(jQuery);\n\t\t\t<\/script>\n\t\t\t\t\t\t<style>\n\t            #justified_gallery_AjjkpR .sgg-caption {\n\t\t\t\t\tbackground: rgb(0,0,0);\n\t\t\t\t\tbackground: rgba(0,0,0,0.6);\n\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\tfont-size: 1.8em;\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t\tfont-family: Lobster;\n\t\t\t\t}\n\t\t\t\t#load_more_AjjkpR {\n\t\t\t\t    background: #444444;\n\t\t\t\t    color: #ffffff;\n\t\t\t\t}\n\t\t\t<\/style>\n        \t\n<\/div><\/div>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: center;\">You Rock! You Made It Till The End<br \/>\n<small>More Cool Features For You<\/small><\/h2>\n<p style=\"text-align: center;\"><a class=\"button learn-more\" title=\"\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/wordpress-gallery-hover-effects\/\"><i class=\"icon-eye-open icon-large\"><\/i> Hover Effects<\/a> \u00a0<span style=\"font-size: 21px; line-height: 73px;\">or<\/span>\u00a0 <a class=\"button buy-it\" title=\"\" href=\"http:\/\/topdevs.net\/smart-grid-gallery\/wordpress-gallery-with-captions\/\"><i class=\"icon-thumbs-up icon-large\"><\/i> Caption Styles<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Infinite Scroll WordPress Gallery It has\u00a0never been so easy to add infinite scroll WordPress gallery to your site. Using &#8220;Smart Grid Gallery&#8221; plugin you can make\u00a0native shortcodes loaded one by one when page is scrolled or button is clicked. Increase page loading speed and improve user experience with this incredible feature. &#8220;Style 8 &#8211; Direction [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"template.page.fullwidth.php","meta":{"footnotes":""},"class_list":["post-361","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/pages\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":40,"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/pages\/361\/revisions"}],"predecessor-version":[{"id":543,"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/pages\/361\/revisions\/543"}],"wp:attachment":[{"href":"http:\/\/topdevs.net\/smart-grid-gallery\/wp-json\/wp\/v2\/media?parent=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}