This commit is contained in:
root
2019-08-30 19:30:19 +02:00
commit 6f2b105ca0
595 changed files with 78405 additions and 0 deletions

12
util/sample/js.txt Normal file
View File

@@ -0,0 +1,12 @@
// Convert '-10px' to -10
function px_to_int(pixels) {
if (typeof pixels != 'string') {
return 0;
}
var result = pixels.replace(/[^-0-9]/g, '');
if (result.length == 0) {
return 0;
} else {
return parseInt(result);
}
}