Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 84d1eb2f75
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (60 sloc) 1.867 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta name="author" content="Darko Bunic"/>
<meta name="description" content="Drag and drop table content with JavaScript"/>
<meta name="viewport" content="width=device-width, user-scalable=no"/><!-- "position: fixed" fix for Android 2.2+ -->
<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>
<script type="text/javascript" src="../header.js"></script>
<script type="text/javascript" src="../redips-drag-min.js"></script>
<script type="text/javascript" src="script.js"></script>
<title>Example 4: Tic Tac Toe</title>
</head>
<body>
<div id="main_container">
<!-- tables inside this DIV could have draggable content -->
<div id="drag">
<!-- left container -->
<div id="left">
<table id="table1">
<colgroup>
<col width="100"/>
</colgroup>
<tbody>
<tr><td class="dark"><div id="x" class="drag green clone">X</div></td></tr>
<tr><td class="dark"><div id="o" class="drag green clone">O</div></td></tr>
</tbody>
</table>
</div><!-- left container -->
<!-- right container -->
<div id="right">
<table id="table2">
<colgroup>
<col width="100"/>
<col width="100"/>
<col width="100"/>
</colgroup>
<tbody>
<tr>
<td></td>
<td></td>
<td class="upper_right"></td>
</tr>
<tr>
<td></td>
<td></td>
<th></th>
</tr>
<tr>
<td class="lower_left"></td>
<th></th>
<th></th>
</tr>
</tbody>
</table>
</div><!-- right container -->
</div><!-- drag container -->
<div id="message">Tic Tac Toe</div>
</div><!-- main container -->
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.