jswh
6/20/2016 - 8:05 AM

improve tower tag

improve tower tag

(function () {
    $('.tag').each(function (i, tag) {
        $tag = $(tag);
        tagText = $tag.text();
        switch (tagText) {
            case 'block-header':
                $todo = $tag.closest('.todo');
                $todo.css({
                    'margin':'10px 0',
                    'text-align':'center'
                });
                $wrap = $tag.closest('.todo-wrap');
                $wrap.children('.simple-checkbox').hide();
                $wrap.children('.todo-detail').hide();
                $wrap.children('.todo-content').css({ 'color':'#333333'});
                $tag.hide();
                break;
            case 'bug':
            case 'BUG':
                $tag.removeClass('tag');
                $tag.css({
                    'background-color': '#fb93b8 !important',
                    'color': '#fff !important',
                    'padding': '0.1em 0.2em',
                    'vertical-align': '1px',
                    'font-size': '82%',
                    'font-weight': 'normal',
                    'border-radius': '2px'
                });
                break;
            default:
                break;
        }

    });
})();