Skip to content
mossxzzom edited this page Sep 15, 2022 · 2 revisions

Welcome to the cnblogs-theme-blogure wiki!

Objects

global : object

全局

header : object

博客标题导航等

main : object

主体content, 目前用于承载{MainPosts,Page} {MainPost}

post : object

随笔[文章]

posts : object

随笔[文章]列表

global : object

全局

Kind: global namespace

global.reset()

IIFE

Kind: static method of global
See: markdown_highlight_swap

global.initDataTheme()

读取WindowLocalStorage中设置的亮色暗色状态 IIFE

Kind: static method of global

global.petitevueOnload(dom)

onload触发设置body可见, 触发各个组件的数据加载, 挂载dom

Kind: static method of global

Param Type
dom Element

global.highlightNumber(dom)

代码行号显示 兼容博客园自身配置

Kind: static method of global

Param Type
dom Element

global.darkSwitcherWithStorage(dom)

更改的亮色暗色状态并存储到WindowLocalStorage

Kind: static method of global

Param Type
dom Element

global.darkSwitcher(dom)

点击触发亮色暗色切换

Kind: static method of global

Param Type
dom Element

global.Get(url)

原生xhr

Kind: static method of global

Param Type
url String

global.markdown_highlight_swap()

markdown_highlight 是异步的, 而且没有给到应用. 使用 patch 来主动管控 markdown_highlight.

Kind: static method of global

global.stub()

IIFE

Kind: static method of global
See: markdown_highlight_swap

header : object

博客标题导航等

Kind: global namespace

header.GetHeader(originBody)

header数据加载

Kind: static method of header

Param Type
originBody Element

main : object

主体content, 目前用于承载{MainPosts,Page} {MainPost}

Kind: global namespace

main.GetMain(originBody)

main数据加载

Kind: static method of main

Param Type
originBody Element

post : object

随笔[文章]

Kind: global namespace

post.tocbotOnload(dom)

onload触发渲染目录

Kind: static method of post

Param Type
dom Element

post.tocSwitcher(dom)

点击触发显示目录

Kind: static method of post

Param Type
dom Element

post.MainPost(detaildom)

post数据加载

Kind: static method of post

Param Type
detaildom Element

posts : object

随笔[文章]列表

Kind: global namespace

posts.MainPosts(postlistdoms, descsdoms, pagedoms)

posts数据加载

Kind: static method of posts

Param Type
postlistdoms Element
descsdoms Element
pagedoms Element

posts.MainPage(originBody)

page数据加载

Kind: static method of posts

Param Type
originBody Element