{"id":131724061,"date":"2012-05-19T01:03:08","date_gmt":"2012-05-19T01:03:08","guid":{"rendered":"http:\/\/joshdance.me\/its-friday"},"modified":"2012-05-19T01:03:08","modified_gmt":"2012-05-19T01:03:08","slug":"its-friday","status":"publish","type":"post","link":"http:\/\/joshdance.me\/blog\/its-friday\/","title":{"rendered":"It&#8217;s Friday&#8230;"},"content":{"rendered":"<p>Leave a comment on this post if, in your mind you started singing <a href=\"http:\/\/www.youtube.com\/watch?v=kfVsfOSbJY0\" target=\"_blank\">Friday<\/a>. \u00a0Sorry. \u00a0It had to be done.\u00a0 <\/p>\n<p \/>\n<div>So 2 weeks ago I said I would have my website up. \u00a0It is! Unfortunately not on my domain <a href=\"http:\/\/joshdance.me\" target=\"_blank\">joshdance.me<\/a>. \u00a0It is on a random domain that I had registered for a different project. \u00a0But I will soon move it here. \u00a0<\/div>\n<p \/>\n<div>Recently, I have seen certain chunks of code, or patterns pop up in many designers work. \u00a0I wanted to know why and happily, today I uncovered the mystery of the Phantom Comments. \u00a0<\/div>\n<p \/>\n<div>Sometimes in code, programmers want to write something that only the people who look at the code see. \u00a0It is not meant to be displayed, or operated on by the computer. \u00a0You set these comments off by putting in a comment symbol and then the comment. \u00a0In html the comment symbol is this:<\/div>\n<p \/>\n<div>&lt;!&#8211;&quot;comment goes here&quot;&#8211;&gt;<\/div>\n<p \/>\n<div>Simple right? But I was confused by a statement that I saw on many webpages. \u00a0It went like this.\u00a0<\/div>\n<p \/>\n<div>&lt;!&#8211;if(a string of computer code)&#8211;&gt;<\/div>\n<p \/>\n<div>The comment had what looked like code in it. \u00a0At first I thought that maybe the programmer just wanted the code not to be seen by the computer, but then why would she take the time to write it? I searched google but didn&#039;t find much. However, I am happy to report that today, I solved it. \u00a0<\/div>\n<p \/>\n<div>I was reading this <a href=\"http:\/\/webdesign.tutsplus.com\/tutorials\/htmlcss-tutorials\/put-users-in-control-with-confirmation-feedback-buttons\/\" target=\"_blank\">little tutorial\u00a0<\/a>and came across a part where the author says, &quot;and then we throw in this html5 shiv&quot;, and then he used the confusing code! I thought to myself, &quot;Why it must be called the html5 shiv! So I promptly googled and found <a href=\"http:\/\/en.wikipedia.org\/wiki\/HTML5_Shiv\" target=\"_blank\">this article about the html5 shiv<\/a>\u00a0on Wikipedia. \u00a0As usual, it is all Microsofts fault. \u00a0\ud83d\ude42 Older versions of Internet Explorer doesn&#039;t implement CSS very well. \u00a0So everyone puts in this little piece of code to fix their website in IE. \u00a0Mystery solved! But then I had one more question. \u00a0If the code is in the comment, how does IE even see it? \u00a0Back to google I went. When I searched for &quot;if statements in html comments&quot;, I found this article about <a href=\"http:\/\/www.quirksmode.org\/css\/condcom.html\" target=\"_blank\">CSS conditional comments<\/a>. Guess what? Code in comments only works in this one instance in IE. \u00a0Therefore it is only used to fix rendering problems in IE.<\/div>\n<p \/>\n<div>Next week I am going to continue digging into CSS and making it happen. \u00a0#LetsDoThis.\u00a0<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Leave a comment on this post if, in your mind you started singing Friday. Sorry. It had to be done. So 2 weeks ago I said I would have my website up. It is! Unfortunately not on my domain joshdance.me. It is on a random domain that I had registere&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts\/131724061"}],"collection":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/comments?post=131724061"}],"version-history":[{"count":0,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts\/131724061\/revisions"}],"wp:attachment":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/media?parent=131724061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/categories?post=131724061"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/tags?post=131724061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}