{"id":14240,"date":"2011-09-06T20:23:08","date_gmt":"2011-09-07T03:23:08","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14240"},"modified":"2011-09-06T20:23:08","modified_gmt":"2011-09-07T03:23:08","slug":"o","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/selectors\/o\/","title":{"rendered":"O"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1036,"featured_media":0,"parent":13708,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-almanac-group.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":3854,"url":"https:\/\/css-tricks.com\/snippets\/jquery\/serialize-form-to-json\/","url_meta":{"origin":14240,"position":0},"title":"Serialize Form to JSON","date":"September 4, 2009","format":false,"excerpt":"$.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; };","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6581,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/shuffle-array\/","url_meta":{"origin":14240,"position":1},"title":"Shuffle Array","date":"June 13, 2010","format":false,"excerpt":"Technique #1 function Shuffle(o) { for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x); return o; }; Usage var testArray = [1,2,3,4,5]; Shuffle(testArray); \/\/ jQuery to dump out new values to element with ID of 'dump' $(function() {\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13939,"url":"https:\/\/css-tricks.com\/almanac\/properties\/o\/","url_meta":{"origin":14240,"position":2},"title":"O","date":"August 31, 2011","format":false,"excerpt":"","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20775,"url":"https:\/\/css-tricks.com\/snippets\/wordpress\/shrink-the-admin-bar-expand-on-hover\/","url_meta":{"origin":14240,"position":3},"title":"Shrink the Admin Bar \/ Expand on Hover","date":"March 25, 2013","format":false,"excerpt":"A mini plugin:","rel":"","context":"With 8 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15601,"url":"https:\/\/css-tricks.com\/snippets\/css\/useful-css3-less-mixins\/","url_meta":{"origin":14240,"position":4},"title":"Useful CSS3 Less Mixins","date":"December 16, 2011","format":false,"excerpt":".text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) { text-shadow: @string; } .box-shadow (@string) { -webkit-box-shadow: @string; -moz-box-shadow: @string; box-shadow: @string; } .drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) { -webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha); -moz-box-shadow: @x @y @blur @spread rgba(0,\u2026","rel":"","context":"With 51 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13264,"url":"https:\/\/css-tricks.com\/snippets\/css\/spinny-leaf-menu\/","url_meta":{"origin":14240,"position":5},"title":"Spinny Leaf Menu","date":"July 10, 2011","format":false,"excerpt":"Home Catalog Price About Contact nav { width: 960px; height: 100px; margin: 120px auto; text-align: center; } .top-menu li { display: inline-block; text-align: center; margin: 30px 5px; position: relative; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; } .top-menu li:hover { margin: 30px 20px; } .top-menu\u2026","rel":"","context":"With 17 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14240"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/1036"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=14240"}],"version-history":[{"count":1,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14240\/revisions"}],"predecessor-version":[{"id":14241,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14240\/revisions\/14241"}],"up":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13708"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=14240"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=14240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}