{"id":18966,"date":"2013-12-14T13:51:17","date_gmt":"2013-12-14T11:51:17","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=18966"},"modified":"2013-12-14T13:51:17","modified_gmt":"2013-12-14T11:51:17","slug":"jquery-adaptive-background-js","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2013\/12\/14\/jquery-adaptive-background-js\/","title":{"rendered":"jquery.adaptive-background.js"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"https:\/\/github.com\/briangonzalez\/jquery.adaptive-backgrounds.js\">jquery.adaptive-background.js<\/a><\/p>\n<p>A simple jQuery plugin to extract the dominant color of an image and apply it to the background of its parent element.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2013\/12\/adoptive-background.gif?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"18967\" data-permalink=\"https:\/\/mamchenkov.net\/wordpress\/2013\/12\/14\/jquery-adaptive-background-js\/adoptive-background\/\" data-orig-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2013\/12\/adoptive-background.gif?fit=440%2C458&amp;ssl=1\" data-orig-size=\"440,458\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"adoptive-background\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2013\/12\/adoptive-background.gif?fit=440%2C458&amp;ssl=1\" class=\"aligncenter size-full wp-image-18967\" alt=\"adoptive-background\" src=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2013\/12\/adoptive-background.gif?resize=440%2C458&#038;ssl=1\" width=\"440\" height=\"458\" \/><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>jquery.adaptive-background.js A simple jQuery plugin to extract the dominant color of an image and apply it to the background of its parent element.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,62,1334],"tags":[1139,3044,1157,1330],"keyring_services":[],"class_list":["post-18966","post","type-post","status-publish","format-link","hentry","category-general","category-technology","category-web-work","tag-javascript","tag-jquery","tag-web-design","tag-web-development","post_format-post-format-link"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":20211,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/02\/03\/share-button-simple-light-flexible-and-good-looking-share-button-jquery-plugin\/","url_meta":{"origin":18966,"position":0},"title":"Share button &#8211; simple, light, flexible, and good-looking share button jquery plugin","author":"Leonid Mamchenkov","date":"February 3, 2014","format":"link","excerpt":"Share button - simple, light, flexible, and good-looking share button jquery plugin","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22397,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/08\/18\/vide-easy-jquery-plugin-for-video-backgrounds\/","url_meta":{"origin":18966,"position":1},"title":"Vide &#8211; easy jQuery plugin for video backgrounds","author":"Leonid Mamchenkov","date":"August 18, 2014","format":"link","excerpt":"Vide - easy jQuery plugin for video backgrounds","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22239,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/07\/21\/fitting-and-inflating-text-and-videos-with-responsive-web-design\/","url_meta":{"origin":18966,"position":2},"title":"Fitting and inflating text and videos with responsive web design","author":"Leonid Mamchenkov","date":"July 21, 2014","format":false,"excerpt":"There are plenty of solutions around for scaling images. Text and videos on the other hand - not so much. Here are a few that are handy: FitVids.js - a lightweight, easy-to-use jQuery plugin for fluid width video embeds. FitText.js - a jQuery plugin for inflating web type. Letterings.js -\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24510,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/07\/28\/jquery-3-0-alpha-release\/","url_meta":{"origin":18966,"position":3},"title":"jQuery 3.0 Alpha release","author":"Leonid Mamchenkov","date":"July 28, 2015","format":false,"excerpt":"Just a few weeks after we've started using jQuery 2, the news come in of the new major release of jQuery being not too far away: It\u2019s been a long time since we did a major release, and you certainly deserve one. So we\u2019re glad to announce the first alpha\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24484,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/07\/16\/json2html-html-templating-engine\/","url_meta":{"origin":18966,"position":4},"title":"json2html &#8211; HTML Templating Engine","author":"Leonid Mamchenkov","date":"July 16, 2015","format":"link","excerpt":"json2html - HTML Templating Engine. \u00a0Available both as jQuery plugin and node.js package.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26184,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/06\/14\/simple-file-upload-using-jquery-and-ajax\/","url_meta":{"origin":18966,"position":5},"title":"Simple file upload using jQuery and AJAX","author":"Leonid Mamchenkov","date":"June 14, 2016","format":false,"excerpt":"Here's something that came in helpful the other day at work - \"Simple file upload using jQuery and AJAX\". \u00a0We were on the right track, but this blog post helped iron out the last few details. \u00a0In particular, this bit: And a clarification of the parameters: 2 attributes need to\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/18966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=18966"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/18966\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=18966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=18966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=18966"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=18966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}