Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
tbf
/
quiz_tbf_accelerator
/
resources
/
js
/
components
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
89.40.16.97
System
Linux server.atelieruldeit.ro 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User
tbf
PHP Version
7.3.33
Software
Apache
Doc root
Writable
close
Edit File :
App.vue
| Size :
2.50
KB
Copy
<template> <div class="tbf-digital" data-scrollbar> <div class="actions-fixed"> <div class="logo top-left"> <router-link :to="{ path: '/'}"> <logo /> </router-link> </div> <div class="menu top-right" @click="openMenu"><menu-bars /></div> <!-- <div class="headphones bottom-left"><a href="https://www.buzzsprout.com/1028881" target="_blank"><icon-headphones /></a></div> <div class="back bottom-right" @click="scrollToTop"><icon-arrow /></div> --> </div> <popup-cookies v-if="viewPopupCookie" @response_cookie="saveResponseCookie"/> <div v-if="showOverlay" @click="closeMenu" class="overlay-menu"></div> <modal-menu @close_menu="closeMenu"/> <div id="app"> <router-view/> </div> </div> </template> <script> import Logo from './assets/Logo' import MenuBars from './assets/MenuBars' import IconArrow from './assets/Arrow' import PopupCookies from './PopupCookies' import ModalMenu from './ModalMenu' export default { name: 'App', data() { return { viewPopupCookie: false, showOverlay: false, step_no: 0 }; }, components: { Logo, MenuBars, IconArrow, PopupCookies, ModalMenu, }, created() { this.$router.beforeEach((to, from, next) => { next(); }); this.$root.$on("change_step_progress", (decrease_one) => { if(decrease_one){ this.step_no = localStorage.getItem('quiz_step_no')-1; }else{ this.step_no = localStorage.getItem('quiz_step_no'); } }); }, destroyed () { }, watch: { $route (to, from){ } }, mounted() { }, methods: { saveResponseCookie(value){ this.viewPopupCookie = false }, scrollToTop(){ $("html, body").animate({ scrollTop: 0 }, "slow"); }, openMenu(){ this.showOverlay = true setTimeout(() => { $('.overlay-menu').addClass('show') $('.menu-tbf').addClass('active') }, 0) }, closeMenu(){ $('.menu-tbf').removeClass('active') setTimeout(() => { $('.overlay-menu').removeClass('show') setTimeout(() => { this.showOverlay = false; }, 200); }, 200); } }, computed: {} }; </script>
Back