800A03ea编译器错误 - 爱问答

(爱问答)

800A03ea编译器错误

800A03ea编译器错误
$(document).ready( () => {
    var winWidth = $(window).width();
    var winHeight = $(window).height();
 
    var bgHeight = $('.background').height();
    var bgWidth = $('.background').width();
 
    var daysOfTheWeek = ['Sun', 'Mon', 'Tues', 'Wed', 'Thurs', 'Fri', 'Sat'];
    var monthsOfTheYear = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'];
 
    function currentDate() {
        let date = new Date();
        var hours = date.getHours();
        var minutes = date.getMinutes();
        var seconds = date.getSeconds();
 
        var day = date.getDay();
        var month = date.getMonth();
        var year = date.getFullYear();
 
        $('.time').html(hours + ':' + minutes + ':' + seconds);
        $('.date').html(monthsOfTheYear[month] + ' ' +daysOfTheWeek[day] + ' ' + year);
    }
 
    function timeOffset(x, y) {
        $('.outer').css({'top': y + 'px', 'left': x + 'px'});
    }
 
    function backgroundOffset(x, y) {
        $('.background').css({'top': y + (winHeight/2) - (bgHeight / 2) + 'px', 'left': x + (winWidth/2) - (bgWidth / 2) + 'px'});
    }
    currentDate();
    setInterval(currentDate, 1000);
 
    $(window).mousemove( (e) => {
        var mX = e.pageX - (winWidth / 2);
        var mY = e.pageY - (winHeight / 2);
 
        timeOffset(mX * 0.06, mY * 0.07);
        backgroundOffset(mX * 0.03, mY * 0.04);
    });
 
})

下一篇:Oracle数据库删除数据

上一篇:请问硬盘故障软件能处理么

热门标签:
excel 网盘 破解 word dll
最新更新:
微软重新评估新的Outlook的使用时机 联想推出搭载联发科Helio G80芯片组的Tab M9平板 英特尔创新大赛时间确定! 微软Edge浏览器在稳定渠道中推出Workspaces功能 英伟达RTX4060TiGPU推出MaxSun动漫主题! 谷歌地图为用户提供了街景服务! GameSir 在T4 Kaleid中推出了一款出色的控制器! 微软开始在Windows 11 中测试其画图应用程序的新深色模式! LG电子推出全球首款无线OLED电视 英伟达人工智能芯片崭露头角! Steam Deck可以玩什么游戏-Steam Deck价格限时优惠 雷蛇推出CobraPro鼠标 Kindle电子阅读器可以访问谷歌商店吗 Windows10如何加入组策略 window10图片查看器怎么没有了?