mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
32 lines
950 B
HTML
32 lines
950 B
HTML
<html>
|
|
<head>
|
|
<title>Collide Tests</title>
|
|
</head>
|
|
<body>
|
|
|
|
<div style="position: absolute; top: 20px; left: 300px;">
|
|
|
|
<div class="red square" style="position:absolute; width:100px; height:100px; background:red; top: 0; left: 0;"></div>
|
|
<div class="green square" style="position:absolute; width:100px; height:100px; background:green; top: 0; left: 100px;"></div>
|
|
<div class="blue square" style="position:absolute; width:100px; height:100px; background:blue; top: 0; left: 200px;"></div>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
<input type="range" (input)="percent($event)" value="0" min="0" max="100" style="width:180px">
|
|
</p>
|
|
|
|
<p>
|
|
<button class="button button-primary" (click)="start($event)">Collide Start</button>
|
|
</p>
|
|
|
|
|
|
<p>
|
|
<button class="button button-primary" (click)="velocityStart($event)">Velocity Start</button>
|
|
</p>
|
|
|
|
<script src="http://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.2/velocity.js"></script>
|
|
|
|
</body>
|
|
</html>
|