MxWeiXinPF.Web/weixin/cards/js/bjdh1.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
const NUMBER_OF_LEAVES = 30;
function init()
{
var container = document.getElementById('leafContainer');
for (var i = 0; i < NUMBER_OF_LEAVES; i++)
{
container.appendChild(createALeaf());
}
}
function randomInteger(low, high)
{
return low + Math.floor(Math.random() * (high - low));
}
function randomFloat(low, high)
{
return low + Math.random() * (high - low);
}
function pixelValue(value)
{
return value + 'px';
}
function durationValue(value)
{
return value + 's';
}
function createALeaf()
{
var leafDiv = document.createElement('div');
var image = document.createElement('img');
image.src = '../../templatesstore/images/dhimg/realLeaf/realLeaf' + randomInteger(1, 5) + '.png';
leafDiv.style.top = "-100px";
leafDiv.style.left = pixelValue(randomInteger(0, 500));
var spinAnimationName = (Math.random() < 0.5) ? 'clockwiseSpin' : 'counterclockwiseSpinAndFlip';
leafDiv.style.webkitAnimationName = 'fade, drop';
image.style.webkitAnimationName = spinAnimationName;
var fadeAndDropDuration = durationValue(randomFloat(5, 11));
var spinDuration = durationValue(randomFloat(4, 8));
后面还有 15 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
