move utils functions

This commit is contained in:
Aurélien Delobelle 2017-03-24 22:05:04 +01:00
parent 2e3bd5bd7a
commit 0d02d47d33
2 changed files with 15 additions and 15 deletions

View file

@ -25,6 +25,21 @@ String.prototype.isValidTri = function() {
}
function intCheck(v) {
return Number.parseInt(v);
}
function floatCheck(v) {
if (typeof v === 'number')
return v;
return Number.parseFloat(v);
}
function booleanCheck(v) {
return v == true;
}
$(document).ready(function() {
$(window).scroll(function() {
if ($(window).width() >= 768 && $(this).scrollTop() > 72.6) {

View file

@ -175,21 +175,6 @@
<script type="text/javascript">
function intCheck(v) {
return Number.parseInt(v);
}
function floatCheck(v) {
if (typeof v === 'number')
return v;
return Number.parseFloat(v);
}
function booleanCheck(v) {
return v == true;
}
$(document).ready(function() {
'use strict';
// -----