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
<!doctype html> | |
<html> | |
<head> | |
<title>CSS animations: Example 1</title> | |
<style type="text/css"> | |
body { | |
padding: 20px; | |
} |
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
/* global Modernizr */ | |
(function (app, $, window, document, undefined) { | |
/* SHIM: <input> placeholder shim | |
--------------------------------------------------------------------------- */ | |
if(!Modernizr.input.placeholder){ | |
$(document).on('focus', 'input[placeholder], textarea[placeholder]', function() { | |
var input = $(this); | |
if (input.val() === input.attr('placeholder')) { | |
input.val('').removeClass('placeholder'); | |
} |
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
// ImageMagick - Convert SVG to PNG w/ transparency | |
// | |
// - open terminal | |
// | |
// - confirm you have imagemagick installed | |
// --- type: convert -v | |
// | |
// - cd to folder | |
// | |
// - single file |
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
$.fn.randomize = function(selector, callback) { | |
var $elems = selector ? $(this).find(selector) : $(this).children(), | |
$parents = $elems.parent(); | |
$parents.each(function() { | |
$(this).children(selector).sort(function() { | |
return Math.round(Math.random()) - 0.5; | |
// }). remove().appendTo(this); // 2014-05-24: Removed `random` but leaving for reference. See notes under 'ANOTHER EDIT' | |
}).detach().appendTo(this); | |
}); |
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
<div id="wrapper"> | |
<div id="container"></div> | |
<p>Scroll Down</p> | |
</div> | |
<div id="content"> | |
</div> |
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
function updateSize() { | |
var rotatorHeight = $('.owl-carousel').height(), | |
slides = $('.owl-item'); | |
slideSetHeight = slides.first().height(); | |
slides.each(function(){ | |
var slideHeight = $(this).height(); | |
if (slideHeight > slideSetHeight){ | |
slideSetHeight = slideHeight | |
} |
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
// FPO Caption | |
.fpo-light { | |
position: relative; | |
&::after { | |
content: "FPO"; | |
font-family: sans-serif; | |
font-size: 150px; | |
position: absolute; | |
width: 100%; |
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
/* | |
convertVideo_config: { | |
ffmpeg: 'bin/ffmpeg/./ffmpeg', | |
mp4: '-vcodec libx264', | |
m4v: '-vcodec libx264', | |
'3gp': '-acodec libvo_aacenc -vcodec libx264', | |
webm: '-acodec libvorbis -vcodec libvpx', | |
ogv: '-acodec libvorbis' | |
}, |
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
$.scrollLock = ( function scrollLockClosure() { | |
'use strict'; | |
var $html = $( 'html' ), | |
// State: unlocked by default | |
locked = false, | |
// State: scroll to revert to | |
prevScroll = { | |
scrollLeft : $( window ).scrollLeft(), | |
scrollTop : $( window ).scrollTop() |
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
$ sudo chown -R $(whoami): . | |
# $(whoami) prints your username | |
# :(blank) rewrites the staff owner as the machine default | |
# Broco's default groupname is "staff" |
OlderNewer