142
St
startsInvasion / files
startsInvasion / libs / node_modules / bean / support / syn / drag / drag.html
1.1 KB
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3<html lang="en"> 4 <head> 5 <title>Synthetic Typing Test</title> 6 <style type='text/css'> 7 body {font-family: verdana} 8 td {text-align: right} 9 td:nth-child(even) {background: #CCd} 10 #key th:nth-child(even) {background: #CCf} 11 #who th:nth-child(even) {background: #fCb} 12 .hover {background-color: blue} 13 </style> 14 </head> 15 <body> 16 <p id='start'>start</p> 17 <div class='over'>Move over me</div> 18 <div class='over'>Move over me</div> 19 <p id='end'>end</p> 20<script type='text/javascript' src='../../../steal/steal.js'></script> 21<script type='text/javascript'> 22 steal.plugins('funcunit/synthetic', 'funcunit/synthetic/drag','jquery').start(); 23</script> 24<script type='text/javascript' id="demo-source"> 25 setTimeout(function(){ 26 Syn("move",{ 27 from: "#start", 28 to: "#end", 29 duration: 1000 30 },"start") 31 },1000) 32 33 34 $(".over").bind('mouseover',function(){ 35 $(this).addClass('hover') 36 }).bind('mouseout',function(){ 37 $(this).removeClass('hover') 38 }) 39</script> 40 </body> 41</html>