{"id":310,"date":"2022-10-26T00:21:23","date_gmt":"2022-10-25T21:21:23","guid":{"rendered":"https:\/\/biragurusu.com\/?page_id=310"},"modified":"2022-10-26T00:33:15","modified_gmt":"2022-10-25T21:33:15","slug":"test","status":"publish","type":"page","link":"https:\/\/biragurusu.com\/index.php\/test\/","title":{"rendered":"test"},"content":{"rendered":"<style>\r\n.insta-gallery-div {\r\n\tpadding: 3px !important;\r\n}\r\n.carouselGallery-left, .carouselGallery-right {\r\n\tcolor: #ffffff;\r\n}\r\n.carouselGallery-modal .iconscircle-cross {\r\n\tcolor: #ffffff;\r\n}\r\n<\/style>\r\n\t<div class=\"row\">\r\n\t\t\tSorry! No image gallery found.\t\t\t\t<div><strong>Access Token Limit:<\/strong> calls within one hour = 200 * Number of Users | <strong>more details:<\/strong> <a href=\"https:\/\/developers.facebook.com\/docs\/graph-api\/overview\/rate-limiting#application-level-rate-limiting\" target=\"_blank\">Check Here<\/a><\/div>\r\n\t\t\t\t\t<\/div>\r\n\t<script type=\"text\/javascript\">\t\r\n\tjQuery(window).load(function() {\r\n\t\tjQuery(function($) {\r\n\t\t\tvar updateArrows = function(){\r\n\t\t\t\t$('.carouselGallery-right').removeClass('disabled');\r\n\t\t\t\t$('.carouselGallery-left').removeClass('disabled');\r\n\t\t\t\tvar curIndex = $('.carouselGallery-carousel.active').data('index');\r\n\t\t\t\tupdateArrows.nbrOfItems = updateArrows.nbrOfItems || $('.carouselGallery-carousel').length -1;\r\n\r\n\t\t\t\tcurIndex === updateArrows.nbrOfItems && $('.carouselGallery-right').addClass('disabled');\r\n\t\t\t\tcurIndex === 0 && $('.carouselGallery-left').addClass('disabled');\r\n\t\t\t}\r\n\t\t\t$('.carouselGallery-carousel').on('click', function(e){\r\n\t\t\t\tscrollTo = $('body').scrollTop();\r\n\t\t\t$('body').addClass('noscroll');\r\n\t\t\t$('body').css('position', 'fixed');\r\n\t\t\t\t$('.insta-if-navigation').removeClass('active');\r\n\t\t\t\t$(this).addClass('active');\r\n\t\t\t\tshowModal($(this));\r\n\t\t\t\tupdateArrows();\r\n\t\t\t});\r\n\r\n\t\t\t$('body').on('click', '.carouselGallery-right, .carouselGallery-left', function(e){\r\n\t\t\t\tif($(this).hasClass('disabled')) return;\r\n\t\t\t\tvar curIndex = $('.carouselGallery-carousel.active').data('index');\r\n\t\t\t\tvar nextItemIndex = parseInt(curIndex+1);\r\n\t\t\t\tif($(this).hasClass('carouselGallery-left')){\r\n\t\t\t\t\tnextItemIndex-=2;\r\n\t\t\t\t}\r\n\t\t\t\tvar nextItem = $('.carouselGallery-carousel[data-index='+nextItemIndex+']');\r\n\t\t\t\tif(nextItem.length > 0){\r\n\t\t\t\t\t$('.insta-if-navigation').removeClass('active');\r\n\t\t\t\t\t$('body').find('.carouselGallery-wrapper').remove();\r\n\t\t\t\t\tshowModal($(nextItem.get(0)));\r\n\t\t\t\t\tnextItem.first().addClass('active');\r\n\t\t\t\t}\r\n\t\t\t\tupdateArrows();\r\n\t\t\t});\r\n\t\t\tvar modalHtml = '';\r\n\t\t\tshowModal = function(that){\r\n\t\t\t\tvar username = that.data('username'),\r\n\t\t\t\timagetext = that.data('imagetext'),\r\n\t\t\t\timagepath = that.data('imagepath'),\r\n\t\t\t\tcarouselGalleryUrl = that.data('url');\r\n\t\t\t\tpostURL =  that.data('posturl');\r\n\t\t\t\tmaxHeight = $(window).height()-100;\r\n\t\t\t\tvar tags = imagetext.split('#');\r\n\t\t\t\t\r\n\t\t\t\tif ($('.carouselGallery-wrapper').length === 0) {\r\n\t\t\t\t\tif(typeof imagepath !== 'undefined') {\r\n\t\t\t\t\t\tmodalHtml = \"<div class='carouselGallery-wrapper'>\";\r\n\t\t\t\t\t\tmodalHtml += \"<div class='carouselGallery-modal'><span class='carouselGallery-left'><span class='icons icon-arrow-left6'><\/span><\/span><span class='carouselGallery-right'><span class='icons icon-arrow-right6'><\/span><\/span>\";\r\n\t\t\t\t\t\tmodalHtml += \"<div class='container'>\";\r\n\t\t\t\t\t\tmodalHtml += \"<span class='icons iconscircle-cross close-icon'><\/span>\";\r\n\t\t\t\t\t\tmodalHtml += \"<div class='carouselGallery-scrollbox' style='max-height:\"+maxHeight+\"px'><div class='carouselGallery-modal-image'>\";\r\n\t\t\t\t\t\tif(that[0].attributes[1].value == 'VIDEO') {\r\n\t\t\t\t\t\t\tmodalHtml += \"<video width='\"+530+\"' controls>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<source src='\"+imagepath+\"'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/video>\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmodalHtml += \"<img src='\"+imagepath+\"'>\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmodalHtml += \"<\/div>\";\r\n\t\t\t\t\t\tmodalHtml += \"<div class='carouselGallery-modal-text'>\";\r\n\t\t\t\t\t\tmodalHtml += \"<span class='carouselGallery-modal-username'><img src='https:\/\/biragurusu.com\/wp-content\/plugins\/wp-instagram-feed-awplife\/\/img\/instagram-gallery-premium.png' width='\"+35+\"' height='\"+35+\"' style='border-radius:\"+30+\"px'><a style='margin-left:\"+10+\"px' href='\"+postURL+\"'>\"+username+\"<\/a> <\/span>\"\r\n\t\t\t\t\t\tmodalHtml += \"<hr>\";\r\n\t\t\t\t\t\tmodalHtml += \"<span class='carouselGallery-modal-imagetext'>\";\r\n\t\t\t\t\t\tmodalHtml += \"<p><a href='\"+postURL+\"' style='font-size:\"+15+\"px; margin:\"+5+\"px;'>\"+username+\"<\/a>\";\r\n\t\t\t\t\t\tfor(key in tags) {\r\n\t\t\t\t\t\t\tif(tags.hasOwnProperty(key)) {\r\n\t\t\t\t\t\t\t\tif (key != 0 ){\r\n\t\t\t\t\t\t\t\tvar value = tags[key];\r\n\t\t\t\t\t\t\t\tmodalHtml += \" <span class='insta_tags'>#\"+value+\"<\/span>\";\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\telse{ \r\n\t\t\t\t\t\t\t\tvar value = tags[key];\r\n\t\t\t\t\t\t\t\t\tmodalHtml += \"\"+value+\"\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmodalHtml += \"<\/p><\/span>\";\r\n\t\t\t\t\t\tmodalHtml += \"<div>\";\r\n\t\t\t\t\t\tmodalHtml += \"<hr>\";\r\n\t\t\t\t\t\tmodalHtml += \"<span class='carouselGallery-item-modal-likes'>\";\r\n\t\t\t\t\t\tmodalHtml += \"<a href='\"+postURL+\"'><span class='icons icon-heart'><\/span><\/a>\";\r\n\t\t\t\t\t\tmodalHtml += \"<a href='\"+postURL+\"'><i class='fas fa-comment'><\/i><\/a>\";\r\n\t\t\t\t\t\tmodalHtml += \"<a href='\"+postURL+\"'><i class='fas fa-share'><\/i><\/a>\";\r\n\t\t\t\t\t\tmodalHtml += \"<a href='\"+postURL+\"'><\/a>\";\r\n\t\t\t\t\t\tmodalHtml += \"<\/span><\/div><\/div><\/div><\/div><\/div><\/div>\";\r\n\t\t\t\t\t\t$('body').append(modalHtml).fadeIn(2500);\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\t$('body').on( 'click','.carouselGallery-wrapper', function(e) {\r\n\t\t\t\tif($(e.target).hasClass('.carouselGallery-wrapper')){\r\n\t\t\t\t\tremoveModal();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('body').on('click', '.carouselGallery-modal .iconscircle-cross', function(e){\r\n\t\t\t\tremoveModal();\r\n\t\t\t});\r\n\r\n\t\t\tvar removeModal = function(){\r\n\t\t\t\t$('body').find('.carouselGallery-wrapper').remove();\r\n\t\t\t\t$('body').removeClass('noscroll');\r\n\t\t\t\t$('body').css('position', 'static');\r\n\t\t\t\t$('body').animate({scrollTop: scrollTo}, 0);\r\n\t\t\t};\r\n\r\n\t\t\t\/\/ Avoid break on small devices\r\n\t\t\tvar carouselGalleryScrollMaxHeight = function() {\r\n\t\t\t\tif ($('.carouselGallery-scrollbox').length) {\r\n\t\t\t\t\tmaxHeight = $(window).height()-100;\r\n\t\t\t\t\t$('.carouselGallery-scrollbox').css('max-height',maxHeight+'px');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$(window).resize(function() { \/\/ set event on resize\r\n\t\t\t\tclearTimeout(this.id);\r\n\t\t\t\tthis.id = setTimeout(carouselGalleryScrollMaxHeight, 100);\r\n\t\t\t});\r\n\t\t\tdocument.onkeydown = function(evt) {\r\n\t\t\t\tevt = evt || window.event;\r\n\t\t\t\tif (evt.keyCode == 27) {\r\n\t\t\t\t\tremoveModal();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t});\r\n\t});\r\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/pages\/310"}],"collection":[{"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":3,"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/pages\/310\/revisions"}],"predecessor-version":[{"id":314,"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/pages\/310\/revisions\/314"}],"wp:attachment":[{"href":"https:\/\/biragurusu.com\/index.php\/wp-json\/wp\/v2\/media?parent=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}