update
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
<template>
|
||||
<div
|
||||
v-if="show"
|
||||
id="ww-container"
|
||||
class="wwads-cn wwads-vertical"
|
||||
data-id="148"
|
||||
style="z-index:10000;position:fixed;bottom:33px;right:1px;max-width:200px;padding: 12px 10px;border-radius:5px;"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show: true
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (window._AdBlockInit === undefined) {
|
||||
this.show = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.wwads-vertical .wwads-poweredby {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
@@ -23,22 +23,6 @@ export default {
|
||||
key() {
|
||||
return this.$route.path
|
||||
}
|
||||
// watch: {
|
||||
// '$route.path': {
|
||||
// handler: function() {
|
||||
// // define ads element
|
||||
// const ads = document.getElementById('ww-container')
|
||||
// // ad parent node
|
||||
// const prn = ads.parentNode
|
||||
// // lets clone ads block
|
||||
// const cln = ads.cloneNode(true)
|
||||
// // remove the current ads block completely
|
||||
// prn.removeChild(ads)
|
||||
// // append a newly cloned one
|
||||
// prn.appendChild(cln)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user