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
fadeTo: (value, fadeLength)-> | |
fadeLength = fadeLength || @defaultfadeLength | |
currentTime = @ctx.currentTime | |
#time the fade should complete | |
fadeTime = currentTime + fadeLength | |
#set the start time | |
@masterGain.gain.setValueAtTime(@userVolume, currentTime) | |
@masterGain.gain.linearRampToValueAtTime(value, fadeTime) | |
fadeOut: (fadeLength)-> |
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
HTML | |
===== | |
<script type='text/javascript'> | |
window.jQuery || document.write('<script src="js/jquery-1.7.1.js">\x3C/script>') | |
</script> | |
<script src='http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js' type='text/javascript'></script> | |
<script type='text/javascript'> | |
window.Modernizr || document.write('<script src="js/modernizr-2.0.6.js">\x3C/script>') | |
</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
<?php | |
// Requires PHP 5.3+ | |
// Found here: http://stackoverflow.com/a/1320156 | |
function flatten_array(array $array) { | |
$flattened_array = array(); | |
array_walk_recursive($array, function($a) use (&$flattened_array) { $flattened_array[] = $a; }); | |
return $flattened_array; | |
} |
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
<?php | |
// From: Newslist en - 25.4.2014 | |
// http://wiki.typo3.org/Felogin#Users_manual | |
// Add this line in my ext_localconf: | |
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['login_confirmed'][] = 'tx_myextension->myfunction'; | |
// And in my class extension: | |
class tx_myextension extends { | |
public function myfunction() { |
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
/************************ | |
* Vars | |
***********************/ | |
// standard default browser font size is 16px | |
$base_font_size = 16 | |
// bring the base font size upto 18px while respecting the client's individual browser setting | |
$base_font_size_ems = unit($base_font_size / 16, em) |
NewerOlder