This commit is contained in:
huanqing.shao
2019-11-14 23:17:59 +08:00
parent be5d46a688
commit 71d7b7e5c4
3 changed files with 10 additions and 15 deletions

View File

@ -63,10 +63,6 @@ export default ({
let sharing = true
if (typeof window !== 'undefined') {
AOS.init({
easing: 'ease-out-back',
duration: 1200
});
if (location.search && (location.search.indexOf('sharing') >=0 || location.search.indexOf('from=timeline') >= 0)) {
sharing = true
window.kuboardSharing = true
@ -74,6 +70,12 @@ export default ({
sharing = false
window.kuboardSharing = false
}
setTimeout(_ => {
AOS.init({
easing: 'ease-out-back',
duration: 1200
});
}, 200)
}
console.log('sharing', sharing)
Vue.prototype.$isSharing = sharing

View File

@ -9,14 +9,14 @@
<span style="color: red; font-weight: 500;">免费</span>
Kubernetes教程K8S教程绝不降低品质
</li>
<li>
<a href="https://github.com/eip-work/kuboard-press" target="_blank" @click="$sendGaEvent('GithubStar', '页头求GitHubStar', 'GitHubStar: ' + $page.path)">一个 Github Star <OutboundLink/></a>
<li data-aos="fade-up">
<a href="https://github.com/eip-work/kuboard-press" target="_blank" @click="$sendGaEvent('GithubStar', '页头求GitHubStar', 'GitHubStar: ' + $page.path)">只要一个 Github Star <OutboundLink/></a>
就可以鼓励作者尽快完成 <span style="color: red; font-weight: 500;">剩下的 {{$themeConfig.incompleteRatio}}% </span>
</li>
<li>
<!-- <Qq></Qq>
群号: 808894550 -->
<span style="font-weight: 500;">在线答疑</span> 加群方式见页尾
<span style="font-weight: 500;">在线答疑</span> 方式见页尾
<!-- 初学者可选择在线课程语言更通俗
<span @click="$sendGaEvent('极客时间', '极客时间', '极客时间:' + $page.path)">
<a target="_blank" href="https://time.geekbang.org/column/intro/100015201?code=MH1Wu456g0ZsrKtQI7QidivKV2hVvzerAUxDz5pOuQs%3D">深入剖析Kubernetes</a>
@ -50,13 +50,6 @@
<LazyLoad :noAdsOnSharing="true">
<AdSenseRightSide v-show="!$isSharing"/>
</LazyLoad>
<script>
(function(){
var src = "https://jspassport.ssl.qhimg.com/11.0.1.js?d182b3f28525f2db83acfaaf6e696dba";
document.write('<script src="' + src + '" id="sozz"><\/script>');
console.log('so360')
})();
</script>
</main>
</template>

View File

@ -1,7 +1,7 @@
export const hashRE = /#.*$/
export const extRE = /\.(md|html)$/
export const endingSlashRE = /\/$/
export const outboundRE = /^(https?:|mailto:|tel:)/
export const outboundRE = /^[a-z]+:/i
export function normalize (path) {
return decodeURI(path)