This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pokeball { | |
position:relative; | |
width: 400px; | |
height: 400px; | |
margin:10% auto; | |
background: #CA0601; | |
border-radius: 50%; | |
box-shadow:inset -1px 1px 2px #F74339, | |
inset -15px 5px 2px #FDE0DF, | |
inset 0px -115px 2px #CCCDD5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* clown test only one div - JV | |
*/ | |
body{background: white;} | |
span{ cursor:none; outline:0; color:white; text-align:center;display:block; width:80px; height:80px; position:relative; top:178px; margin:0 auto; background:transparent; z-index:1;} | |
div{ | |
width:75px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* teste transform 3d | |
*/ | |
#container{ | |
position:relative; | |
margin:100px auto; | |
width:200px; | |
height:200px; | |
border:solid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* teste transform 3d | |
*/ | |
#container{ | |
position:relative; | |
margin:100px auto; | |
width:200px; | |
height:200px; | |
transform:perspective(500); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="checkbox"><button>Clique para alternar estado do checkbox</button> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script> | |
$('button').click(function() { | |
$('input')[0].checked ^= 1; | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('input')[0].checked ^= 1; //referência à prop checked do elemento input | |
inputElRef.checked = false ^ 1; //conversão implícita ToNumber | |
inputElRef.checked = 0 ^ 1; //bits diferentes, XOR retorna 1 | |
inputElRef.checked = 1; //conversão implícita ToBoolean | |
inputElRef.checked = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[] == false //ToPrimitive deste array retorna string vazia | |
"" == false //comparação com boolean converte booleano ToNumber | |
"" == 0 //comparação de string com número converte string ToNumber | |
0 == 0 | |
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 1 == true | |
<<< true | |
>>> 0 == false | |
<<< true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<< +true | |
>>> 1 | |
<<< +false | |
<<< 0 | |
>>> !!1 | |
<<< true | |
>>> !!0 | |
<<< false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^ | 0 1 | |
--+----- | |
0 | 0 1 | |
1 | 1 0 |
OlderNewer