server/aspnetapp/wwwroot/js/polish.js

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


function getWeather() {
    var id,
        weatherInfo = "",
        url = window.location.href,
        weatherBox = ['阴', '晴', '雨', '雪', '风', '雷', '多云', '雾', '霾', '沙', '雨夹雪', '冰雹'];
    weatherInfo = $('.weather-status').text()

    //if (url.split( '?' ).length > 0 ) {
    //    weatherInfo = convertQueryStringToObject( url.split( '?' )[1] ).w;
    //    if ( weatherInfo.indexOf( '转' ) != -1 ) {
    //         weatherInfo = weatherInfo.substring( weatherInfo.lastIndexOf( '转' ) + 1, weatherInfo.length );
    //     }
    //    $( '.weather-status' ).text( weatherInfo );
    // }
    $.each(weatherBox, function (index, value) {
        if (weatherInfo.indexOf(value) != -1) {
            id = index;
            if (weatherInfo.indexOf('雨') != -1 && weatherInfo.indexOf('雷') != -1) {
                id = 5;
            }
            if (weatherInfo.indexOf('雨') != -1 && weatherInfo.indexOf('雪') != -1) {
                id = 10;
            }
            return false;
        }
    });
    return id;
}
//选择图片
function chooseImg(id, $item, $item2) {
    switch (id) {
        case 0:
            $item.attr('src', '../images/polish/homepage/weather/overcast.png');
            $item2.attr('src', '../images/polish/homepage/weather/icon_overcast.png');
            break;
        case 1:
            $item.attr('src', '../images/polish/homepage/weather/sunny.png');
            $item2.attr('src', '../images/polish/homepage/weather/icon_sunny.png');
            break;
        case 2:
            $item.attr('src', '../images/polish/homepage/weather/rain.png');
            $item2.attr('src', '../images/polish/homepage/weather/icon_rain.png');
            break;
        case 3:
            $item.attr('src', '../images/polish/homepage/weather/snow.png');
            $item2.attr('src', '../images/polish/homepage/weather/icon_snow.png');
            break;
        case 4:
            $item.attr('src', '../images/polish/homepage/weather/wind.png');
            $item2.attr('src', '../images/polish/homepage/weather/icon_wind.png');
            break;
        case 5:
            $item.attr('src', '../images/polish/homepage/weather/thunder.png');
            $item2.attr('src', '../images/polish/homepage/weather/icon_thunder.png');
            break;
        case 6:
            $item.attr('src', '../images/polish/homepage/weather/cloudy.png');
            $item2.attr('src', '../images/polish/homepage/weather/icon_cloudy.png');
            break;
后面还有 119 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。