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
:javascript | |
$(function() { | |
new Survca.StickyFooter({ | |
el: 'body', | |
headerElem: 'header.global', | |
contentElem: 'section#main', | |
footerElem: 'footer.global' | |
}); | |
}); |
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
var _round = function(num) { | |
if(isDecimal(num)) { | |
var num_array = num.toString().split("."); | |
var whole_num = parseInt(num_array[0]); | |
var decimal_num = parseFloat("." + num_array[1]); | |
if(decimal_num > .444444444444444 && decimal_num < .5) { | |
decimal_num = .5; | |
} | |
num = whole_num + decimal_num; | |
} |