index.js 553 B

1234567891011121314151617181920212223242526
  1. // setTimeout(() => {
  2. // console.log('-----unity实例', unityExamples);
  3. // }, 2000);
  4. // 分享页面
  5. const shareDom = document.querySelector('.shareBox')
  6. window.onClickShare = () => {
  7. // console.log(123456);
  8. shareDom.style.opacity = '1'
  9. shareDom.style.pointerEvents = 'auto'
  10. // var a = document.createElement('a')
  11. // a.download = 'image'
  12. // a.href = '../StreamingAssets/share.png'
  13. // a.click()
  14. }
  15. document.querySelector('.shareBtn').onclick = () => {
  16. shareDom.style.opacity = '0'
  17. shareDom.style.pointerEvents = 'none'
  18. }