This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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" |
This file contains hidden or 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
<!-- Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”." --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
div { | |
width: 80px; | |
height: 20px; | |
line-height: 20px; |
This file contains hidden or 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
<!-- Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”." --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
div { | |
width: 80px; | |
height: 20px; | |
line-height: 20px; |