Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footseen-large-website

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit e3e47c1f authored 2 years ago by libai's avatar libai
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

测试

parent 9cdb6075
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 6 deletions
  • yazhaiTest/pc.html
yazhaiTest/pc.html
View file @ e3e47c1f
......@@ -862,13 +862,9 @@ $(function(){
}
function layzImg(){
if(layzImgNum>50)var iNum=layzImgNum;
var iNum=0;
var iNum=$(".video-box-ul li").length-32
console.log($(".video-box-ul li").length)
for(var i=iNum;i<$(".video-box-ul li").length;i++){
if( $(".video-box-ul li .video-top-box").eq(i).attr("data-type2")==1){
iNum++
continue;
}
if(($(".video-box-ul li").eq(i).offset().top)-($(window).height()+$(document).scrollTop())<300){
$(".video-box-ul li .video-top-box").eq(i).css("background","url(https://zhibocdn.yabolive.net/comm"+$(".video-box-ul li .video-top-box").eq(i).attr("data-type")+"?x-oss-process=video/snapshot,t_90000,f_jpg,w_342,h_0,m_fast,f_jpg)no-repeat")
$(".video-box-ul li .video-top-box").eq(i).css("background-size","cover")
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment