server/aspnetapp/wwwroot/lib/alloyfinger/example/tap_state/index.html
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE html>
<html>
<head>
<title>Tap State</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<style>
#test {
-webkit-tap-highlight-color: rgba(0,0,0,0);
background-color: green;
}
#test.active {
background-color: red;
}
.ribbon {
top: 3.2em;
right: -4.7em;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
color:#fff;
display: block;
padding: .6em 3.5em;
position: fixed;
text-align: center;
text-decoration: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #6c7211;
z-index: 10000;
}
</style>
</head>
<body style="text-align: center; font-family: Segoe UI Light,Segoe UI,Microsoft Jhenghei,Mirco Yahei,'sans-serif'; background-color: black; color: white;">
<a href="https://github.com/AlloyTeam/AlloyFinger" class="ribbon">Fork me on Github</a>
<div id="test" style="width: 280px; height: 200px; margin: 0 auto; line-height: 200px; font-size: 30px;">Tap Me</div>
<div id="result" style="font-size: 18px;"></div>
<script src="../../alloy_finger.js"></script>
<div>
<script>
var result = document.querySelector("#result"),
testDiv = document.querySelector("#test"),
html = "";
new AlloyFinger(testDiv, {
touchStart: function () {
html += "";
result.innerHTML = html;
addClass(testDiv, "active");
},
touchMove: function () {
removeClass(testDiv, "active");
},
后面还有 31 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。