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 animation() { | |
var timeArr = (function () { | |
var speeds = [100]; | |
for (var i = 200; i < 1500; i+=100) { | |
speeds.push(i); | |
} | |
return speeds; | |
})(); | |
var animationsArr = [ | |
'zoom-right', |
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 getTime() { | |
var date = new Date(); | |
var year = date.getFullYear(); | |
var month = (date.getMonth() + 1); | |
month = (month < 9) ? '0' + month : month; | |
var day = date.getDate(); | |
day = (day < 9) ? '0' + day : day; | |
var hour = date.getHours(); | |
hour = (hour < 9) ? '0' + hour : hour; |
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
var request = require("request"); | |
var fs = require("fs"); | |
var cheerio = require('cheerio'); | |
var url = ''; | |
request(url, function (err, res, body) { | |
if (err) { | |
return console.log(err); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<script src="jquery.min.js"></script> | |
<script> |
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
Statistics.query(paramForCash, function(result){ | |
if (result.length) { | |
$scope.cash = { | |
cash: (result[0].value.cash/100).toFixed(2), | |
weixin: (result[0].value.weixin/100).toFixed(2) | |
}; | |
} | |
}); |
NewerOlder