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
<ac-switch> | |
<div class="ac-switch"> | |
<input name="switcher" type="checkbox" id="{ opts.id }" onchange="{ makeSwitch }" /> | |
<label for="{ opts.id }"></label> | |
<span name="labelOn">{ opts.labelon }</span> | |
<span name="labelOff">{ opts.labeloff }</span> | |
</div> | |
<style> |
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 resultsFromForm(el){ | |
var results = {}; | |
$('.question',el).each(function(){ | |
var iv = $('input:checked', this)[0].value; | |
if(iv.split("|").length > 1){ | |
var iarray = iv.split("|"), isize = iarray.length, i; | |
console.log(iarray); | |
for(i = 0; i < isize; i++){ | |
if(results[iarray[i]] == undefined){ |
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 scanForScrollers(el) { | |
var i = [], | |
t, x, y, w, h, | |
ww = $(window).width(), | |
wh = $(window).height(); | |
el.each(function (index) { | |
t = $(this); | |
x = t[0].offsetLeft; | |
y = t[0].offsetTop; |
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
/* | |
The world need to know about this. | |
Most part taken from: http://pt.stackoverflow.com/a/166/1754 (its in portuguese) | |
IE 9+ , Chrome , Firefox , Opera , iOS 3.2+ , Android 2.1+ , IE Mobile 10+ | |
*/ | |
.centralize-me{ | |
position:absolute; /*fixed works too*/ |
NewerOlder