mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add fallback reveal to twitter button
This commit is contained in:
parent
b12daa87b1
commit
8f1ef36e2a
1 changed files with 6 additions and 0 deletions
|
|
@ -31,6 +31,12 @@ export default {
|
||||||
mounted () {
|
mounted () {
|
||||||
// https://platform.twitter.com/widgets.js
|
// https://platform.twitter.com/widgets.js
|
||||||
|
|
||||||
|
|
||||||
|
// Fallback reveal
|
||||||
|
setInterval(() => {
|
||||||
|
this.visible = true
|
||||||
|
}, 5000)
|
||||||
|
|
||||||
// the returned function, when called, stops tracking the target element in the
|
// the returned function, when called, stops tracking the target element in the
|
||||||
// given viewport
|
// given viewport
|
||||||
const unobserve = observeElementInViewport(this.$refs.follow, async (_, unobserve, expandZoneElem) => {
|
const unobserve = observeElementInViewport(this.$refs.follow, async (_, unobserve, expandZoneElem) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue