Skip to content

Instantly share code, notes, and snippets.

@stas
Created September 20, 2009 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stas/189920 to your computer and use it in GitHub Desktop.
Save stas/189920 to your computer and use it in GitHub Desktop.
<?php
var_dump($_GET);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>untitled</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://www.2meter3.de/jqPuzzle/jquery.jqpuzzle.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="http://www.2meter3.de/jqPuzzle/jquery.jqpuzzle.css" />
<script type="text/javascript">
$(document).ready(function() {
var settings = {
rows: 3,
cols: 3,
hole: 1,
numbers: false,
control: {
toggleNumbers: false,
counter: false,
timer: true
},
animation: {
shuffleRounds: 1,
slidingSpeed: 100,
shuffleSpeed: 200
},
success: {
callback: function(results) {
$.get("get.php", {"moves": results.moves, "time": results.seconds});
alert('Made' + results.moves + ' moves in ' +
+ results.seconds + ' seconds.');
}
}
};
$('#pzl').jqPuzzle(settings);
});
</script>
</head>
<body>
<img id="pzl" src="http://camp.softwareliber.ro/2009/poze/Participanti%20la%20FLOSSCamp%202009.jpg" alt=" " class="jqPuzzle jqp-r3-c3-s1" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment