mirror of
https://dl.bcrjl.com/ghg/HaoOuBa/Joe.git
synced 2026-02-17 13:10:05 +08:00
更新
This commit is contained in:
2
assets/css/joe.global.min.css
vendored
2
assets/css/joe.global.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -193,6 +193,39 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
}
|
||||
}
|
||||
|
||||
/* 3d云标签 */
|
||||
{
|
||||
if ($('.joe_aside__item.tags').length !== 0) {
|
||||
const entries = [];
|
||||
const colors = ['#F8D800', '#0396FF', '#EA5455', '#7367F0', '#32CCBC', '#F6416C', '#28C76F', '#9F44D3', '#F55555', '#736EFE', '#E96D71', '#DE4313', '#D939CD', '#4C83FF', '#F072B6', '#C346C2', '#5961F9', '#FD6585', '#465EFB', '#FFC600', '#FA742B', '#5151E5', '#BB4E75', '#FF52E5', '#49C628', '#00EAFF', '#F067B4', '#F067B4', '#ff9a9e', '#00f2fe', '#4facfe', '#f093fb', '#6fa3ef', '#bc99c4', '#46c47c', '#f9bb3c', '#e8583d', '#f68e5f'];
|
||||
const random = (min, max) => {
|
||||
min = Math.ceil(min);
|
||||
max = Math.floor(max);
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
};
|
||||
$('.joe_aside__item-contain .list li').each((i, item) => {
|
||||
entries.push({
|
||||
label: $(item).attr('data-label'),
|
||||
url: $(item).attr('data-url'),
|
||||
target: '_blank',
|
||||
fontColor: colors[random(0, colors.length - 1)],
|
||||
fontSize: random(15, 20)
|
||||
});
|
||||
});
|
||||
$('.joe_aside__item-contain .tag').svg3DTagCloud({
|
||||
entries,
|
||||
width: 220,
|
||||
height: 220,
|
||||
radius: '65%',
|
||||
radiusMin: 75,
|
||||
bgDraw: false,
|
||||
fov: 800,
|
||||
speed: 0.5,
|
||||
fontWeight: 500
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* 设置侧边栏最后一个元素的高度 */
|
||||
{
|
||||
$('.joe_aside__item:last-child').css('top', $('.joe_header').height() + 15);
|
||||
|
||||
2
assets/js/joe.global.min.js
vendored
2
assets/js/joe.global.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user