首页 > 其他分享 >123

123

时间:2023-06-01 14:14:27浏览次数:38  
标签:function blog foe 123 article preview type

 

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script src="js/jquery-1.12.4.js"></script>
	<style>
		article{
			height: 100px;
		}
		article:nth-of-type(n+4):hover{
			cursor: pointer;
		}
		article:nth-of-type(n+4):hover:after{
			content: "click to hide article";
			font-style: italic;
			color: blue;
			font-size: 20px;
		}
	</style>
	<body>
		<article>Pretent this is a preview(1) foe an article on a blog</article>
		<article>Pretent this is a preview(2) foe an article on a blog</article>
		<article>Pretent this is a preview(3) foe an article on a blog</article>
		<article>Pretent this is a preview(4) foe an article on a blog</article>
		<article>Pretent this is a preview(5) foe an article on a blog</article>
		<article>Pretent this is a preview(6) foe an article on a blog</article>
		<button id="articles">Click to preview additional articles</button>
		<script>
			$(function(){
				$("body").css("height",$(document).height()+1)
				.find("article").each(function(i,el){
					$(el).not(":nth-last-of-type(n+4)").hide()
					.filter(":nth-of-type(4)").on("click.y",function(){
						$("body").animate({
							scrollTop:"0px"
						},1000)
					});
					
					
				});
				$(document).on("scroll.article",{
					"scrolled":false
				},function (e){
					if(!e.data.scrolled){
						var el=$("article:nth-of-type(n+4)");
						$(el).show(1000);
						e.data.scrolled=true;
					};
					if(e.data.scrolled){
						$(el).on("click",function(e){
							$(e.target).hide(1000);
						});
					};
					if($("article:nth-of-type(n+4)").css("display")==="none"){
						e.data.scrolled=false;
					};
					return false;
				});
				$("#articles").on("click",$(document),function(e){
					$(e.target).trigger("scroll.article").scroll()
				})
			});
		</script>
	</body>
</html>

 

标签:function,blog,foe,123,article,preview,type
From: https://www.cnblogs.com/Iriswpp/p/17448738.html

相关文章

  • #123
    Byassigningdifferentweightstotheauthenticandforgedclasses,Weight-BCELossensuresthatthemodelpaysmoreattentiontotheminorityclass(i.e.,forgedimages)duringtraining.Thisisimportantbecausethenumberofauthenticimagesusuallyout......
  • poj 1230(贪心)
    解题思路:这道题目是用贪心的思想,从左向右扫描场地的每一列是否合法。若不合法,贪心的找出从该列起向右延伸最长的m道墙,移除这m道墙使得该列合法。我最开始代码会出现这样的问题:如果两个墙是连在一起的,那么会被当做一个墙来处理。。。AC:#include<iostream>#include<cstdio>#inclu......
  • comp2123 问题解答
    comp2123Assignment5s12023Problem1.Wewanttodesignadivideandconqueralgorithmforcomputingtheunionofacollectionofrectangles.Theinputrectanglesarealignedwiththeaxesandtheyareallstabbedbythey-axis.Eachrectangleisrepresen......
  • GE控制器WES5123-1200,WES5123-2600
    W;① ⑧ 0  ③  0 ①  7  ⑦ 7 5 ⑨  GE控制器WES5123-1200,WES5123-2600,WES5162-9101,IC695CPU320-HS,DS200DCFBG1BLC,IS420ESWBH3A,IC695CRU320-EJ,IS420ESWBH2A,DS200TCPDG2BECIC695CPU315-CD,fdevelopmentinthesensorindustry.当电力系统中的电力......
  • 1232131
    步骤1:安装必要的软件包首先,需要确保系统已安装dhcp、tftp-server和httpd等软件包。可以使用以下命令进行安装:yuminstall-ydhcptftp-serverhttpdsyslinux-tftpbootxinetd步骤2:配置DHCP服务器接下来,需要配置DHCP服务器以向客户端分配IP地址。在/etc/dhcp/d......
  • 123. 买卖股票的最佳时机 III
    classSolution{public:intmaxProfit(vector<int>&prices){intn=prices.size();vector<int>f(n+1),g(n+1);//预处理f,f[i]表示前i天交易的最大值for(inti=1,min_price=INT_MAX;i<=n;i++)//根据当前是否卖出划分{......
  • STATA 字母 ABCDEF 转 123456
    clearinputstr10var1ABCDEFendcap:sscinstallsencodesavecishi1,replaceencodevar1,generate(var2)tostringvar2,replacegenvar4=tobytes(var1)genvar6=substr(tobytes(var1),3,.)genvar8=char(real(substr(tobytes(var1),3,.))-16) ......
  • Auto_Position=1 主库清空部分binlog从库错误(1236)的解决办法
    环境:OS:Centos7DB:mysql5.7.291.从库同步错误如下:mysql>showslavestatus\G;***************************1.row***************************Slave_IO_State:Master_Host:192.168.1.104Master_User:repl......
  • 20201230张国强实验三
    免杀原理1.基础问题回答杀软是如何检测出恶意代码的?基于特征码的静态扫描技术在文件中寻找特定的十六进制字符串,如果找到,就可判定文件感染了某种病毒。启发式杀毒技术病毒要达到感染和破坏的目的,通常的行为都会有一定的行为和特征,所以可以通过分析相关的病毒指令,判......
  • prometheus123456
    #catprometheus/prometheus-consul.ymlglobal:scrape_interval:15s#Setthescrapeintervaltoevery15seconds.Defaultisevery1minute.evaluation_interval:15s#Evaluaterulesevery15seconds.Th......