feat(plugin): add codesponsor plugin
This commit is contained in:
parent
44dc68c6b2
commit
46ac4c3fd2
5 changed files with 97 additions and 3 deletions
|
|
@ -81,3 +81,8 @@ export function off (el, type, handler) {
|
|||
export function toggleClass (el, type, val) {
|
||||
el && el.classList[val ? type : 'toggle'](val || type)
|
||||
}
|
||||
|
||||
export function style (content) {
|
||||
appendTo(head, create('style', content))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue