Last active
January 25, 2020 19:34
-
-
Save juntao/27cc4e1e7a816394a4f1599c98807fa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add the following to "dapp -- Resources" | |
* JavaScript: https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js | |
* CSS: https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css | |
<p>2020鼠年的春节,我们都不得不待在家里。从开始一句句给我女儿徐笑笑讲述“病毒”“肺炎”,让她理解不能带她去广州玩儿了,到一点点渗透“可能有很长一段时间都不能出门,不能上幼儿园了”……</p> | |
<p>我想肯定有很多家长,像我一样,努力地向小朋友们解释着发生着的一切;也肯定有很多家长,不知道怎么向小朋友们科学、系统、有效的解释为什么突然就不能出门了。</p> | |
<p>感谢我身边的朋友们,一起制作了这个18页的中英双语绘本。家长们可以用这个生动形象的绘本,向小朋友解释:新型冠状病毒的传播途径、为什么会出现新型冠状病毒、出门时必须戴口罩、回家必须7步洗手。</p> | |
<p>感谢插画师太阿乜啦噜,感谢北京协和医院呼吸科医生的专业指导,感谢北京协和医院郭晶核准校对,感谢大叔排版,感谢Dr. Michael Yuan 校对并将绘本上传到区块链。</p> | |
<p><center> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/00.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/01.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/02.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/03.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/04.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/05.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/06.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/07.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/08.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/09.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/10.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/11.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/12.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/13.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/14.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/15.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/16.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/17.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/18.jpg"/><br/> | |
<img class="img-fluid" src="https://www.secondstate.io/demo/2020-virus-handbook/19.jpg"/><br/> | |
</center></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.img-fluid { | |
max-width: 100%; | |
height: auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<br/> | |
<p><center>本文内容已经永久记录在 <a target="_blank" href="https://app.cybermiles.io/">CyberMiles</a> 公链。您可以通过上链合约地址 [<span id="link">获取中...</span>] 查到所有的变更历史与交易哈希值。【<a target="_blank" href="https://mp.weixin.qq.com/s/HHF-1nz0cC2HdICkMssMYg">原文链接 订阅公众号</a>】</center></p> | |
<div class="jumbotron" id="content"> | |
<p class="lead">请稍等,正在从区块链获取数据 ...</p> | |
</div> | |
<br/> | |
<p><a target="_blank" href="https://www.secondstate.io/">第二形科技公司</a></p><ul><li>全球领先的区块链技术,为多个全球著名公链提供技术</li><li>自主研发的WASM虚拟机为下一代数据中心提高效率</li><li>为云服务提供商和开发者赋能</li><li>提供政府政务、医疗健康及电商等领域区块链技术解决方案,提供区块链行业知识培训</li></ul></p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Don't modify */ | |
var instance = null; | |
window.addEventListener('web3Ready', function() { | |
var contract = web3.ss.contract(abi); | |
instance = contract.at(cAddr); | |
reload(); | |
}); | |
function reload() { | |
var content = ""; | |
instance.getContent(function (e, r) { | |
content = r; | |
$("#content").html(content); | |
}); | |
$("#link").html("<a href='https://www.cmttracking.io/address/" + cAddr + "'>" + shorten(cAddr) + "</a>"); | |
} | |
function shorten (addr) { | |
return addr.replace(/(.{7})..+/, "$1…"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >= 0.4.0; | |
contract Content { | |
address owner; | |
string public content; | |
constructor (string _content) public { | |
owner = msg.sender; | |
content = _content; | |
} | |
function setContent (string _content) public { | |
require (msg.sender == owner); | |
content = _content; | |
} | |
function getContent () public constant returns(string) { | |
return content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment