Java resource records

<h1>Nginx</h1>

Primary Beginners: https://www.cnblogs.com/Joanna-Yan/p/8745794.html

<H1> How do custom style skin blog Park </ h1>

Master article: https://www.cnblogs.com/liuyishi/p/9190459.html#_label1

Js code need to apply for permission before you can use:

        <Script Language = "JavaScript" of the type = "text / JavaScript"> 

// build directory index list 
// ref: http://www.cnblogs.com/wangqiguo/p/4355032.html 
// Modified by: ZZQ 
function GenerateContentList () 
{ 
    var mainContent = $ ( '# cnblogs_post_body'); 
    var h2_list = $ ( '# cnblogs_post_body h2'); // If your chapter titles are not h2, h2 only need to replace here 

    if (mainContent. length <. 1) 
        return; 
 
    IF (h2_list.length> 0) 
    { 
        var Content = '<a name="_labelTop"> </a>'; 
        Content + = '<div ID = "navCategory">'; 
        Content + = '<p style = "font- size: 18px"> <b> directory </ b> </ p> ';
        content += '<ul>';
        for(var i=0; i<h2_list.length; i++)
        {
            var go_to_top = '<div style="text-align: right"><a href="#_labelTop">回到顶部</a><a name="_label' + i + '"></a></div>';
            $(h2_list[i]).before(go_to_top);
            
            var h3_list = $(h2_list[i]).nextAll("h3");
            var li3_content = '';
            for(var j=0; j<h3_list.length; j++)
            {
                var tmp = $(h3_list[j]).prevAll('h2').first();
                if(!tmp.is(h2_list[i]))
                    break;
                var li3_anchor = '<a name="_label' + i + '_' + j + '"></a>';
                $(h3_list[j]).before(li3_anchor);
                li3_content += '<li><a href="#_label' + i + '_' + j + '">' + $(h3_list[j]).text() + '</a></li>';
            }
            
            var li2_content = '';
            if(li3_content.length > 0)
                li2_content = '<li><a href="#_label' + i + '">' + $(h2_list[i]).text() + '</a><ul>' + li3_content + '</ul></li>';
            else
                li2_content = '<li><a href="#_label' + i + '">' + $(h2_list[i]).text() + '</a></li>';
            content += li2_content;
        }
        content += '</ul>';
        content += '</div><p> </p>';
        content += '<p style="font-size:18px"><b>正文</b></p>';
        if($('#cnblogs_post_body').length != 0 )
        {
            $($('#cnblogs_post_body')[0]).prepend(content);
        }
    }   
}

GenerateContentList();
</script>

  

Guess you like

Origin www.cnblogs.com/myfaith-feng/p/11526934.html