123456789101112131415161718192021222324252627282930313233 |
- import '../scss/entry.scss'
- import util from './until'
- var attachFastClick = require('fastclick');
- class Enter {
- constructor() {
- this.entryGame()
- }
- entryGame() {
- $(document).click(function(e) {
-
- var top = $('.aim-glass').css('top')
- top = top.replace('px','')
- var origin = top
- top = Number(top) - 100
- document.getElementById('hunt-audio').play()
- $('.aim-glass').animate({top: top + 'px'}, 50).animate({top: origin + 'px'}, 400, function() {
- let link = $('.entry-text').attr('data-href')
- localStorage.setItem('entry', 'index');
- window.location.href = link
- });
- })
- }
- }
- new Enter
- $(function() {
- attachFastClick(document.body);
- });
|