Skip to content

Instantly share code, notes, and snippets.

View fedemp's full-sized avatar
💭
That aloof guy

Federico Panico fedemp

💭
That aloof guy
  • Argentina
  • 21:25 (UTC -03:00)
View GitHub Profile
@fedemp
fedemp / fiddle.css
Created January 6, 2012 19:33
Nice buttons for Therma
input {
font-size: 12px;
border: 0;
cursor: pointer;
border-radius: 3px;
padding: 0 5px;
color: #fff;
font-weight: bold;
background: #ffa20d;
background: -moz-linear-gradient(top, #ffa20d 0%, #f98600 100%);
@fedemp
fedemp / 1.js
Created September 30, 2011 23:33
Some questions on Javascript
var b = undefined = 5;
var a;
if (b) a = 10;
console.log(a);
@fedemp
fedemp / fiddle.css
Created September 19, 2011 20:11
Y.one, Y.all and $() return values
h1 {font: bold 1.25em sans-serif; margin: 0.75em 0}
ul {list-style-type: disc; padding: 0 0 0 5%}
body {line-height: 1.5}
b {font-family: monospace; background: yellow}
@fedemp
fedemp / fiddle.html
Created August 18, 2011 20:54
@Placeholder text should not be spell checked.
<!doctype html>
<title>@placeholder text should not be spell checked</title>
<textarea placeholder="foofoo"></textarea>
<p>Above textarea shows a red dotted bottom border in those browsers that try to check spelling on the placeholder.
<p>Even if the placeholder text was incorrect, to mark it as an error may cause frustation to the user since he cannot correct it.
<p>In Opera 11.50 the red border will appear after the textarea gains and loses focus for the first time.