This commit is contained in:
杜恒
2021-02-21 17:45:35 +08:00
parent 2e670269a6
commit 138f29c95b
4 changed files with 334 additions and 310 deletions

View File

@@ -160,7 +160,7 @@ document.addEventListener('DOMContentLoaded', () => {
const style = $('.joe_aside__item.weather').attr('data-style');
const aqiColor = { 1: 'FFFFFF', 2: '4A4A4A', 3: 'FFFFFF' };
window.WIDGET = { CONFIG: { layout: 2, width: '220', height: '270', background: style, dataColor: aqiColor[style], language: 'zh', key: key } };
$.getScript("https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0")
$.getScript('https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0');
}
}
@@ -470,19 +470,19 @@ document.addEventListener('DOMContentLoaded', () => {
</ul>
`;
}
$(".joe_owo__contain").html(`
$('.joe_owo__contain').html(`
<div class="seat">OωO</div>
<div class="box">
${scrollStr}
<div class="bar">${barStr}</div>
</div>
`)
`);
$(document).on('click', function () {
$('.joe_owo__contain .box').stop().slideUp('fast');
});
$('.joe_owo__contain .seat').on('click', function (e) {
e.stopPropagation();
$(this).siblings('.box').stop().slideToggle('fast')
$(this).siblings('.box').stop().slideToggle('fast');
});
$('.joe_owo__contain .box .bar .item').on('click', function (e) {
e.stopPropagation();