jquery dom 应用

本文探讨了Flatland居民的生活,并通过引用信息技术领域的概念进行了比喻性的描述。文章中提到了多种几何形状,如五边形(Pentagon)和六边形(Hexagons),并用这些形状来象征不同类型的居民。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.footnote{color:#f00;}
.square{font-size:16px;
color:#0f0;
}
span.footnote{
 font-style:italic;
 font-family:"Times New Roman",Times,serif;
 display:block;
 margin:1em 0;
}
.chapter span.footnote{
 display:inline;
}
.pulled{
background:#e5e5e5;
position:absolute;
width:145px;
top:-20px;
right:80px;
padding:12px 5px 12px 10px;
font:italic 0.8em "Times New Roman",Times,serif;
}
</style>
<script src="../jquery.js"/></script>
<script language="javascript">
  jQuery(function(){
 /*  $("div.chapter a").each(function(index){
    var $link = $(this);
       $link.attr({'rel':'external','id':'wikilink-'+index,'title':"learn more "+$link.text()});
   })*/
 
    //insertBefore before insertAfter after 区别 可以用来移动元素 prependTo 插入锚
   //$("<a href='#top'>back to top</a>").insertAfter('div.chapter p');
  /* $('div.chapter p:gt(2)').after("<a href='#top'>back to top</a>");
   $("<a id='top'></a>").prependTo('body');
  
   $('p.footnote').insertBefore("#excerpt");
   $('<ol id="notes"></ol>').insertAfter("div.chapter");
   //appendTo 插入到元素的末尾 wrap 包装
   $('span.footnote').each(function(index){
      $(this).before(["<a href='#foot-note-",index+1," 'id='context-",index+1,"' class='context'",'<sup>'+(index+1)+'</sup>','</a>'].join('')).appendTo('#notes')
      .append("&nbsp;(<a href='#context-"+(index+1)+"'>context</a>)")
      .wrap("<li id='foot-note-"+(index+1)+"'></li>");
   })
   $("div.chapter p:eq(0)").clone().insertBefore(".footnote");
   $(".square").click(function(){
    alert("clone");    
   })*/
   $("span.pull-quote").each(function(){
    var $paress = $(this).parent('p');
    $paress.css('position','relative'); 
    $clones = $(this).clone();
 
    $clones.addClass('pulled').find("span.drops").html("&hellip;").end().prependTo($paress);
   var ctext = $clones.text();   
    $clones.html(ctext);  
   })
})
</script>
</head>
<body>
<p>
  <span class="pull-quote">
  11111111111 <a href=''>Concerning</a> the Inhabitants of Flatland
  </span>  
  <span class="drops">
   Linkin Park - Pushing MeLinkin Park - Pushing Me
  </span>
  I'll take the blame for the sake of being with you
(Everything falls apart
Even the people who never frown
Eventually break down)I'll take the blame for the sake of being with you
(Everything falls apart
Even the people who never frown
Eventually break down)
 </p>
 <p>
  <span class="pull-quote">
  22222Concerning the Inhabitants of Flatland22222222
  </span> 
  <span class="drops">
   Linkin Park - Pushing Me Linkin Park - Pushing Me
  </span>
  I'll take the blame for the sake of being with you
(Everything falls apart
Even the people who never frown
Eventually break down)I'll take the blame for the sake of being with you
(Everything falls apart
Even the people who never frown
Eventually break down)
   </p>
<h1 id="f-title">A Romance of Many</h1>
<div id="f-author">by Edwin A.Abbott</div>
<h2>Part Section</h2>
<h3 id="f-subtitle">Concerning the Inhabitants of Flatland</h3>
<div id="excerpt">an Excerpt</div>
<span class="footnote">This is the last time
I'll take the blame for the sake of being with you
(Everything falls apart
Even the people who never frown
Eventually break down)
The sacrifice of hiding in a lie
(Everything has to end
</span>
<div class="chapter">
  <p class="square">Linkin Park - Pushing Me <a href="http://en.wikipedia.org/wiki/Pentagon">Pentagon</a></p>
  <p class="nobility">
    Linkin Park - Pushing Me Away
 I've lied to you
 The same way that I always do
 This is the last smile
 <a href="http://en.wikipedia.org/wiki/Hexagons">Hexagons</a>
 That I'll fake for the sake of being with you
 (Everything falls apart
 Even the people who never frown
 Eventually break down)
 The sacrifice of hiding in a lie
 (Everything has to end
 You'll soon find we're out of time
 To watch it all unwind)
 The sacrifice is never knowing
  Why I never walked away
  Why I <a href="http://en.wikipedia.org/wiki/played">played</a> myself this way
  Now I see your testing me pushes me away
  Why I never walked away
  Why I played myself this way
  Now I see your testing me pushes me away
  I've tried like you

 To do everything you wanted too
 <span class="footnote">This is the last time
 I'll take the blame for the sake of being with you
 (Everything falls apart
 Even the people who never frown
 Eventually break down)
 The sacrifice of hiding in a lie
 (Everything has to end
 </span>
  You'll soon find we're out of time
  To watch it all unwind)
  The sacrifice is never knowing
  Why I never walked away
  Why I played myself this way
  Now I see your testing me pushes me away
  Why I never walked away
  Why I played myself this way
</p>
 

 <p class="footnote">
  This is how we find how it all unwinds)
  The sacrifice is never knowing
 </p>
 
</div>
</body>
</html>

源码链接: https://pan.quark.cn/s/7b9e1590db2e 在本计划中,我们聚焦于一个基于数字逻辑的药片装瓶系统的构建,这构成了北京邮电大学(北邮)在小学期内向学生提供的一次课程设计课题。该系统致力于模拟实际药品包装的操作流程,借助电子操控和自动化技术达成药片的高效且精准的装瓶目标。以下是对该系统设计所涉及的关键知识领域的详尽阐述: 1. **数字逻辑**:数字逻辑是电子工程领域的核心学科,主要探究如何运用二进制数字进行信息的表征与处理。在此项目中,数字逻辑用于构建和实现系统的控制机制,诸如计数器、编码器、解码器、触发器等,旨在保障药片装瓶过程的精确调控。 2. **硬件电路构建**:系统可能整合微控制器、传感器、执行机构等硬件单元。例如,微控制器作为系统的心脏,负责接收输入信号,处理数据,并指挥执行机构执行药片装填。传感器负责监测药片的数量和瓶装进度,而执行机构如电机则负责实际完成装瓶动作。 3. **计数器**:在药片装瓶的操作过程中,计数器用于追踪已装入瓶子的药片总数,确保达到预设的剂量标准。这可能需要设计同步计数器或异步计数器,以实现精确计数并触发装瓶操作。 4. **编码与解码**:编码器将特定的信息(例如药片种类或剂量)转化为二进制编码,便于硬件设备进行处理;解码器则将这些编码解读为可执行的操作,如切换装瓶路径或启动封盖流程。 5. **触发器**:在系统中,触发器可用于在特定条件达成时启动或中止某个操作,例如当瓶子达到满载时关闭装填机制。 6. **传感器技术**:可能包含重量传感器、光电传感器或机械触碰开关,用于识别瓶子的存在、位置以及药片的数量。这些传感器的精确度直接关联到整个系统的性能水平。 7. **控制算法**...
内容概要:本文针对孤岛微电网在遭受拒绝服务(DoS)攻击下的安全与稳定运行问题,提出了一种基于混合系统理论的弹性二次控制策略,创新性地将动态事件触发机制与DoS攻击防御进行协同设计。该方法在保障微电网电压、频率恢复及有功功率精确均分的同时,有效应对通信链路被恶意阻塞的安全威胁,实现了控制性能与通信资源利用效率的双重优化。通过Simulink仿真平台与Matlab代码实现,验证了所提策略在复杂网络攻击场景下的鲁棒性与有效性,深入分析了系统稳定性条件及攻击容忍边界,为电力信息物理系统(CPS)在面临网络安全挑战时的可靠控制提供了理论依据和技术路径。; 适合人群:具备电力系统自动化、分布式控制或网络安全等相关专业背景,熟悉Matlab/Simulink仿真环境,从事微电网控制、信息物理系统安全或弹性控制研究的研究生、科研人员及工程技术人员。; 使用场景及目标:① 提升高比例分布式能源接入背景下孤岛微电网在通信受限与网络攻击耦合场景下的运行可靠性与弹性恢复能力;② 实现低通信开销下的分布式协同控制,优化资源利用并增强系统抗干扰性能;③ 为电力系统中安全-控制联合设计提供可复现的仿真模型与技术方案,推动安全防护从被动响应向主动容忍转变。; 阅读建议:读者应结合文中提供的Matlab代码与Simulink模型开展仿真实验,重点理解动态事件触发机制的设计原理及其与混合系统稳定性分析的融合方法,建议延伸学习DoS攻击建模、弹性控制理论及相关安全性证明技术,以全面掌握该协同设计框架的核心思想与实现细节。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值