{"id":59,"date":"2023-10-24T19:33:56","date_gmt":"2023-10-24T17:33:56","guid":{"rendered":"https:\/\/creative4you.biz\/?page_id=59"},"modified":"2023-10-24T21:37:15","modified_gmt":"2023-10-24T19:37:15","slug":"c4u-craft","status":"publish","type":"page","link":"https:\/\/creative4you.biz\/index.php\/valkommen-till-creative4you\/c4u-craft\/","title":{"rendered":"C4U Craft"},"content":{"rendered":"\n<p class=\"has-black-color has-text-color wp-block-paragraph\" style=\"font-size:15px\">Nedan ser du ett urval av de senaste inl\u00e4ggen p\u00e5 mitt Instagramkonto &#8221;c4ucraft&#8221;. <br>Klicka p\u00e5 bilden f\u00f6r att komma vidare till inl\u00e4gget p\u00e5 Instagram om du vill se mer. M\u00e5nga av inl\u00e4ggen har fler bilder.<\/p>\n\n\n\n<p class=\"width=80% wp-block-paragraph\"><style>\r\n.insta-gallery-div {\r\n\tpadding: 5px !important;\r\n}\r\n.carouselGallery-left, .carouselGallery-right {\r\n\tcolor: #ff9900;\r\n}\r\n.carouselGallery-modal .iconscircle-cross {\r\n\tcolor: #ff9900;\r\n}\r\n<\/style>\r\n\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t\t{\"error\":{\"message\":\"Error validating application\",\"type\":\"OAuthException\",\"code\":190,\"fbtrace_id\":\"AGE6JqDr97odftjeGMHiUnr\"}}\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\timagedate = that.data('imgDate'),\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 (jQuery('.carouselGallery-wrapper').length === 0) {\r\n\t\t\t\t\t\tif(typeof imagepath !== 'undefined') {\r\n\t\t\t\t\t\t\tmodalHtml = \"<div class='carouselGallery-wrapper'>\";\r\n\t\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\t\tmodalHtml += \"<div class='container'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<span class='icons iconscircle-cross close-icon'><\/span>\";\r\n\t\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\t\tif(that[0].attributes[1].value == 'VIDEO') {\r\n\t\t\t\t\t\t\t\tmodalHtml += \"<video <video width='60%' height='90%' controls>\";\r\n\t\t\t\t\t\t\t\tmodalHtml += \"<source src='\"+imagepath+\"'>\";\r\n\t\t\t\t\t\t\t\tmodalHtml += \"<\/video>\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tmodalHtml += \"<img src='\"+imagepath+\"'>\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='carouselGallery-modal-text'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_lightbox_header'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_lightbox_header_content'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_lightbox_avatar'><img src='https:\/\/creative4you.biz\/wp-content\/plugins\/wp-instagram-feed-awplife\/img\/instagram-gallery-premium.png' width='70%' height='100%'><\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_lightbox_user_button'><div class='insta_lightbox_username'><a href='\"+postURL+\"'> \"+username+\"<\/a><\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/div><\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_lightbox_followbtn'><a target='_new' href='https:\/\/www.instagram.com\/\"+username+\"' type='button' class='btn btn-primary'>Follow<\/a><\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_lightbox_content_data'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<p><a href='\"+postURL+\"' style='font-size:15px; margin:5px;'>\"+username+\"<\/a>\";\r\n\t\t\t\t\t\t\t\t\tfor(key in tags) {\r\n\t\t\t\t\t\t\t\t\t\t\tif(tags.hasOwnProperty(key)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (key != 0 ){\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar value = tags[key];\r\n\t\t\t\t\t\t\t\t\t\t\t\tmodalHtml += \"<span class='insta_tags'> <a href='https:\/\/www.instagram.com\/explore\/tags\/\"+value+\"'> #\"+value+\"<\/a> <\/span>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\t\t\telse{ \r\n\t\t\t\t\t\t\t\t\t\t\t\tvar value = tags[key];\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tmodalHtml += \"\"+value+\"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/p><\/span>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_date_post'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<div class='insta_social_icon'>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<a href='\"+postURL+\"'><span class='icons icon-heart'><\/span><\/a>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<a href='\"+postURL+\"'><svg class='comments' version='1.1' id='Layer_1' xmlns='http:\/\/www.w3.org\/2000\/svg' xmlns:xlink='http:\/\/www.w3.org\/1999\/xlink' x='0px' y='0px' width='22px' height='22px' viewBox='796 796 200 200' enable-background='new 796 796 200 200' xml:space='preserve'><path d='M896.001,812.517c-55.23,0-100.001,31.369-100.001,70.071c0,18.018,9.72,34.439,25.67,46.851c3.721,2.895,5.446,7.685,4.424,12.286l-6.872,30.926c-0.498,2.242,0.419,4.561,2.316,5.855c1.896,1.295,4.391,1.304,6.297,0.022l36.909-24.804c3.238-2.176,7.17-3.074,11.032-2.516c6.532,0.945,13.294,1.448,20.226,1.448c55.227,0,99.999-31.37,99.999-70.069C996,843.886,951.229,812.517,896.001,812.517z'\/><\/svg><\/a>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<a href='\"+postURL+\"'><svg class='share-alt2' version='1.1' id='svg2' xmlns:dc='http:\/\/purl.org\/dc\/elements\/1.1\/' xmlns:cc='http:\/\/creativecommons.org\/ns#' xmlns:rdf='http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#' xmlns:svg='http:\/\/www.w3.org\/2000\/svg' xmlns:sodipodi='http:\/\/sodipodi.sourceforge.net\/DTD\/sodipodi-0.dtd' xmlns:inkscape='http:\/\/www.inkscape.org\/namespaces\/inkscape' sodipodi:docname='share-alt.svg' inkscape:version='0.48.4 r9939'xmlns='http:\/\/www.w3.org\/2000\/svg' xmlns:xlink='http:\/\/www.w3.org\/1999\/xlink' x='0px' y='0px' width='22px' height='22px' viewBox='0 0 1200 1200' enable-background='new 0 0 1200 1200' xml:space='preserve'><path id='path20884' inkscape:connector-curvature='0' d='M754.553,35.03v294.208C487.317,329.246,0,332.178,0,1164.97c55.25-556.9,309.061-560.402,754.553-560.408v321.292L1200,480.407L754.553,35.03z'\/><\/svg><\/a>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/div><div>\"+imagedate+\"<\/div><\/div>\";\r\n\t\t\t\t\t\t\tmodalHtml += \"<\/div><\/div><\/div><\/div><\/div>\";\r\n\t\t\t\t\t\t\t$('body').append(modalHtml).fadeIn(2500);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\/\/ active scroll height\r\n\t\t\t\t\tvar insta_lightbox_content_data = jQuery('.insta_lightbox_content_data').height();\r\n\t\t\t\t\tconsole.log(insta_lightbox_content_data);\r\n\t\t\t\t\tif (insta_lightbox_content_data > 400) {\r\n\t\t\t\t\t\tjQuery('.carouselGallery-modal-text').css('overflow-y','scroll');\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t  \r\n\t\t\t\t\r\n\t\t\t\tjQuery('body').on( 'click','.carouselGallery-wrapper', function(e) {\r\n\t\t\t\t\tif(jQuery(e.target).hasClass('.carouselGallery-wrapper')){\r\n\t\t\t\t\t\tremoveModal();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tjQuery('body').on('click', '.carouselGallery-modal .iconscircle-cross', function(e){\r\n\t\t\t\t\tremoveModal();\r\n\t\t\t\t});\r\n\r\n\t\t\t\t var removeModal = function(){\r\n\t\t\t\t\tjQuery('body').find('.carouselGallery-wrapper').remove();\r\n\t\t\t\t\tjQuery('body').removeClass('noscroll');\r\n\t\t\t\t\tjQuery('body').css('position', 'static');\r\n\t\t\t\t\tjQuery('body').animate({scrollTop: scrollTo}, 0);\r\n\t\t\t\t};\r\n\r\n\t\t\t\t\/\/ Avoid break on small devices\r\n\t\t\t\tvar carouselGalleryScrollMaxHeight = function() {\r\n\t\t\t\t\tif (jQuery('.carouselGallery-scrollbox').length) {\r\n\t\t\t\t\t\tmaxHeight = $(window).height()-100;\r\n\t\t\t\t\t\tjQuery('.carouselGallery-scrollbox').css('max-height',maxHeight+'px');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tjQuery(window).resize(function() { \/\/ set event on resize\r\n\t\t\t\t\tclearTimeout(this.id);\r\n\t\t\t\t\tthis.id = setTimeout(carouselGalleryScrollMaxHeight, 100);\r\n\t\t\t\t});\r\n\t\t\t\tdocument.onkeydown = function(evt) {\r\n\t\t\t\t\tevt = evt || window.event;\r\n\t\t\t\t\tif (evt.keyCode == 27) {\r\n\t\t\t\t\t\tremoveModal();\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t});\r\n});\r\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nedan ser du ett urval av de senaste inl\u00e4ggen p\u00e5 mitt Instagramkonto &#8221;c4ucraft&#8221;. Klicka p\u00e5 bilden f\u00f6r att komma vidare till inl\u00e4gget p\u00e5 Instagram om du vill se mer. M\u00e5nga av inl\u00e4ggen har fler bilder.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":47,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"ocean_post_layout":"full-width","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-59","page","type-page","status-publish","hentry","entry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/pages\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":10,"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/pages\/59\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/pages\/59\/revisions\/93"}],"up":[{"embeddable":true,"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/pages\/47"}],"wp:attachment":[{"href":"https:\/\/creative4you.biz\/index.php\/wp-json\/wp\/v2\/media?parent=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}