Given the following markup:
<fieldset id="comp-1">
<legend id="comp-1[label]">Legend One</legend>
<label for="dd-1" id="dd-1[label]">Day</label>
<input id="dd-1" type="text" />
</fieldset>
// Assume .foo triggers a CSS animation, or a transition and that we wish to | |
// remove the .foo class when the animation completes. | |
// | |
// Useful for declarative animation class names like .shake | |
// on animation end | |
var animationEnd = 'webkitAnimationEnd oanimationend oAnimationEnd msAnimationEnd animationend'; | |
$('.foo') | |
.addClass('bar') |
Given the following markup:
<fieldset id="comp-1">
<legend id="comp-1[label]">Legend One</legend>
<label for="dd-1" id="dd-1[label]">Day</label>
<input id="dd-1" type="text" />
</fieldset>
white-space: pre-wrap; /* css-3 */ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
word-wrap: break-word; /* IE 5.5+ */ |
/** | |
* Adds a transparent noise texture as a background image to a given element. | |
* Texture strength can be controlled with @opacity parameter. | |
*/ | |
.noise (@opacity: .3) { | |
&:before { | |
bottom: 0; | |
content: ""; | |
left: 0; | |
opacity: @opacity; |
<?php | |
class UsersController extends AppController { | |
var $name = 'Users'; | |
var $scaffold = 'admin'; | |
var $components = array('JqImgcrop'); | |
var $helpers = array('Javascript', 'Thumbnail', 'CropImage'); | |
function beforeFilter() { |
function getDocumentHeight() { | |
return Math.max( | |
Math.max(document.body.scrollHeight, document.documentElement.scrollHeight), | |
Math.max(document.body.offsetHeight, document.documentElement.offsetHeight), | |
Math.max(document.body.clientHeight, document.documentElement.clientHeight) | |
); | |
} |
text-shadow: 0px 1px 0px #e5e5ee; |
text-shadow: 0px -1px 0px #666; |
<?php | |
$test = array('a', 'b', 'c'); | |
function clean($input) | |
{ | |
$output = $input . '!'; | |
return $output; | |
} |
.element { | |
display: inline-block; | |
} | |
* + .element { // IE 6-7 | |
display: inline; | |
} |