crypto-js.min.jsxuanzhuang.js

    云标签 && 旋转

    云标签

    window.tagcloud= TagCloud(myElement, result, {
    radius: 410*fontSize,
    maxSpeed: ‘normal’,
    initSpeed: ‘normal’,
    itemClass: ‘tagcloud—item’,
    colorAry: ‘#ffffff’,
    direction: 135*fontSize,
    // 光标在鼠标移动时候是否保留
    keep: true
    });
    $(‘.tagcloud—item’).on(‘click’, function (e) {
    console.log(e.target.innerText)
    let obj = e.target.innerText
    if (obj != ‘’) {
    let item = vm.tanlentList.filter(c => c.name == obj)[0]
    vm.showDetail(item)
    }
    })

    旋转
    var move = new Move(500*fontSize, 350*fontSize, 380*fontSize, 340*fontSize);
    var arr = document.querySelectorAll(“.icon_move”);
    move.init(arr, “.family_right”);