{"id":14168,"date":"2011-09-06T19:54:07","date_gmt":"2011-09-07T02:54:07","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14168"},"modified":"2011-09-06T19:54:07","modified_gmt":"2011-09-07T02:54:07","slug":"d","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/selectors\/d\/","title":{"rendered":"D"},"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":13917,"url":"https:\/\/css-tricks.com\/almanac\/properties\/d\/","url_meta":{"origin":14168,"position":0},"title":"D","date":"August 31, 2011","format":false,"excerpt":"","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19750,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/strip-whitespace-from-string\/","url_meta":{"origin":14168,"position":1},"title":"Strip Whitespace From String","date":"January 5, 2013","format":false,"excerpt":"Whitespace, meaning tabs and spaces. Vanilla JavaScript (Trim Leading and Trailing) var str = \" a b c d e f g \"; var newStr = str.trim(); \/\/ \"a b c d e f g\" That method is ES 5, so just in case you could polyfill it (IE 8\u2026","rel":"","context":"With 6 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3801,"url":"https:\/\/css-tricks.com\/snippets\/css\/internationalization-language-css\/","url_meta":{"origin":14168,"position":2},"title":"Internationalization Language CSS","date":"September 4, 2009","format":false,"excerpt":"\/*Language-specific*\/ :lang(af){quotes:'\\201E' '\\201D' '\\201A' '\\2019';} :lang(ak){font-family:Lucida,\"DejaVu Sans\",inherit;} :lang(ar){font-family:Tahoma 12,Nazli,KacstOne,\"DejaVu Sans\",inherit;} :lang(bg){quotes:'\\201E' '\\201C' '\\201A' '\\2018';} :lang(bn){font-family:FreeSans,MuktiNarrow,Vrinda,inherit;font-size:1.1em;line-height:1.4em;} :lang(cs){quotes:'\\201E' '\\201C' '\\201A' '\\2018';} :lang(da){quotes:'\\00BB' '\\00AB' '\\203A' '\\2039';} :lang(de){quotes:'\\201E' '\\201C' '\\201A' '\\2018';} :lang(el){font-family:\"DejaVu Sans\",inherit;quotes:'\\00AB' '\\00BB' '\\2039' '\\203A';} :lang(en-GB){quotes:'\\2018' '\\2019' '\\201C' '\\201D';} :lang(es){quotes:'\\00AB' '\\00BB' '\\2039' '\\203A';} :lang(fa){font-family:Terafik,Traffic,Roya,Nazli,Nazanin,sans;font-size:1.5em;} :lang(fi){quotes:'\\201D' '\\201D' '\\2019' '\\2019';} :lang(fr){quotes:'\\ab\\2005' '\\2005\\bb' '\\2039\\2005' '\\2005\\203a';} :lang(hr){quotes:'\\00BB'\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8315,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/javascript-md5\/","url_meta":{"origin":14168,"position":3},"title":"JavaScript MD5","date":"January 15, 2011","format":false,"excerpt":"var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (lValue>(32-iShiftBits)); } function AddUnsigned(lX,lY) { var lX4,lY4,lX8,lY8,lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0x80000000); lX4 = (lX & 0x40000000); lY4 = (lY & 0x40000000); lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF); if (lX4 & lY4) {\u2026","rel":"","context":"With 22 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3951,"url":"https:\/\/css-tricks.com\/snippets\/php\/adjust-server-time\/","url_meta":{"origin":14168,"position":4},"title":"Adjust Server Time","date":"September 9, 2009","format":false,"excerpt":"Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself. $today = date('Y-m-d-G'); $today = strftime(\"%Y-%m-%d-%H\", strtotime(\"$today -5 hour\")); If your server thought it was 12 midnight, but it was really 7 pm, this will\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3355,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/detect-internet-explorer\/","url_meta":{"origin":14168,"position":5},"title":"Detect Internet Explorer","date":"August 11, 2009","format":false,"excerpt":"Reference","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14168"}],"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=14168"}],"version-history":[{"count":1,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14168\/revisions"}],"predecessor-version":[{"id":14169,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14168\/revisions\/14169"}],"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=14168"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=14168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}