Skip to content

JoryPai/myblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

home heroText tagline bgImageStyle isShowTitleInHome
true
Welcome to lilcandleBlog
不要温和地走进那个良夜
height
450px
true
<style> .hero{ background-image: url(.vuepress/public/bk.gif) !important; background-repeat: repeat !important; background-size: auto !important; } </style> <script> export default { mounted () { const ifJanchor = document.getElementById("JanchorDown"); ifJanchor && ifJanchor.parentNode.removeChild(ifJanchor); let a = document.createElement('a'); a.id = 'JanchorDown'; a.className = 'anchor-down'; document.getElementsByClassName('hero')[0].append(a); let targetA = document.getElementById("JanchorDown"); targetA.addEventListener('click', e => { this.scrollFn(); }); }, methods: { scrollFn() { const windowH = document.getElementsByClassName('hero')[0].clientHeight; document.documentElement.scrollTop = windowH; } } } </script>