-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
1 lines (1 loc) · 5.79 KB
/
main.js
1
!function(n){var t={};function s(e){if(t[e])return t[e].exports;var i=t[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,s),i.l=!0,i.exports}s.m=n,s.c=t,s.d=function(e,i,n){s.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(i,e){if(1&e&&(i=s(i)),8&e)return i;if(4&e&&"object"==typeof i&&i&&i.__esModule)return i;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),2&e&&"string"!=typeof i)for(var t in i)s.d(n,t,function(e){return i[e]}.bind(null,t));return n},s.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(i,"a",i),i},s.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},s.p="",s(s.s=0)}([function(e,i,n){"use strict";n.r(i);n(1),n(2),n(3),n(4);var t=document.querySelector(".banner .dropdown"),s=document.querySelector(".banner .banner-hint");t.addEventListener("click",function(){s.classList.remove("none"),setTimeout(function(){s.classList.add("none")},2e3)});var a=document.querySelector(".banner .list"),o=document.querySelector(".banner .banner-menu");a.addEventListener("mouseover",function(){return o.style.display="block"}),a.addEventListener("mouseout",function(){return setTimeout(function(){o.style.display="none"},1e3)});var r=!1;function c(e){var i=e.getBoundingClientRect();return 0<=i.top&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)}window.addEventListener("scroll",function(){var e;r||c(document.querySelector(".loadmore"))&&(r=!0,setTimeout(function(){var e=document.querySelector(".box"),i=document.createElement("div");i.innerHTML=[' <div class="panel film">',' <div class="panel-header">'," <h4>电影作品</h4>"," </div>",' <div class="container">',' <ul class="pic-gallery">'," <li>",' <div class="poster">'," <img",' src="https://mu1.sinaimg.cn/frame.180x240/weiyinyue.music.sina.com.cn/movie_poster/181691_vertical.jpg"',' alt=""'," />"," </div>",' <div class="info">',' <div class="title">解忧杂货店(2017)</div>',' <div class="subtitle">上映2017-12-29(中国大陆)</div>',' <div class="option">',' <a href="#">',' <span class="icon"></span>'," 248145"," </a>",' <span class="line"></span>',' <a href="#">点评</a>'," </div>"," </div>"," </li>"," <li>",' <div class="poster">'," <img",' src="https://mu1.sinaimg.cn/frame.180x240/weiyinyue.music.sina.com.cn/movie_poster/182796_vertical.jpg"',' alt=""'," />"," </div>",' <div class="info">',' <div class="title">解忧杂货店(2017)</div>',' <div class="subtitle">上映2017-12-29(中国大陆)</div>',' <div class="option">',' <a href="#">',' <span class="icon"></span>'," 248145"," </a>",' <span class="line"></span>',' <a href="#">点评</a>'," </div>"," </div>"," </li>"," <li>",' <div class="poster">'," <img",' src="https://mu1.sinaimg.cn/frame.180x240/weiyinyue.music.sina.com.cn/movie_poster/178925_vertical.jpg"',' alt=""'," />"," </div>",' <div class="info">',' <div class="title">解忧杂货店(2017)</div>',' <div class="subtitle">上映2017-12-29(中国大陆)</div>',' <div class="option">',' <a href="#">',' <span class="icon"></span>'," 248145"," </a>",' <span class="line"></span>',' <a href="#">点评</a>'," </div>"," </div>"," </li>"," <li>",' <div class="poster">'," <img",' src="https://mu1.sinaimg.cn/frame.180x240/weiyinyue.music.sina.com.cn/movie_poster/181142_vertical.jpg"',' alt=""'," />"," </div>",' <div class="info">',' <div class="title">解忧杂货店(2017)</div>',' <div class="subtitle">上映2017-12-29(中国大陆)</div>',' <div class="option">',' <a href="#">',' <span class="icon"></span>'," 248145"," </a>",' <span class="line"></span>',' <a href="#">点评</a>'," </div>"," </div>"," </li>"," </ul>"," </div>",' <div class="panel-footer">'," 查看更多",' <span class="icon"><i class="iconfont icon-previewright"></i></span>'," </div>"," </div>"].join(""),e.appendChild(i),r=!1},1e3)),c(e=document.querySelector(".videobox .video"))?e.paused&&(e.muted=!0,e.play()):e.paused||e.pause()})},function(e,i,n){},function(e,i,n){},function(e,i,n){},function(e,i,n){}]);