-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (104 loc) · 3.91 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Sudoku Plugin by Keloo</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="javascripts/main.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<style>
.sudokuInput {
padding: 5px;
padding-left: 13px;
margin: 3px;
font-size: 20px;
width: 20px;
font-family: Arial Rounded MT Bold;
}
</style>
</head>
<body>
<header>
<h1>Sudoku Plugin</h1>
<p>A simple jQuery Sudoku Plugin (solver and generator)</p>
</header>
<div id="banner">
<span id="logo"></span>
<a href="https://github.com/Keloo/Sudoku-Plugin/tree/master" class="button fork"><strong>View On GitHub</strong></a>
<div class="downloads">
<span>Downloads:</span>
<ul>
<li><a href="https://github.com/Keloo/Sudoku-Plugin/zipball/master" class="button">ZIP</a></li>
<li><a href="https://github.com/Keloo/Sudoku-Plugin/tarball/master" class="button">TAR</a></li>
</ul>
</div>
</div><!-- end banner -->
<div class="wrapper">
<nav>
<ul></ul>
</nav>
<section>
<h2>
<a name="Demo" class="anchor" href="#demo">
<span class="octicon octicon-link"></span>
</a>Demo
</h2>
<center>
<div class="sudokuArea"></div>
<br />
<input type="button" name="Solve" value="Solve" class="btnSolve" />
<input type="button" name="Clear" value="Clear" class="btnClear" />
Level:
<select id="puzzleLevel">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected>4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<input type="button" name="Generate" value="Generate" class="btnGenerate" />
</center>
</section>
<footer>
<p>Project maintained by <a href="https://github.com/Keloo">Keloo</a></p>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></small></p>
</footer>
</div>
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-43909662-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
<!-- Scripts at the end -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src='plugin.js'></script>
<script type="text/javascript">
$('.sudokuArea').sudokuSolver({});
$('.btnClear').click(function(){
$('.sudokuArea').data().plugin_sudokuSolver.clearInputs()
});
$('.btnSolve').click(function(){
$('.sudokuArea').data().plugin_sudokuSolver.solvePuzzle()
});
$('.btnGenerate').click(function(){
$('.sudokuArea').data().plugin_sudokuSolver.generatePuzzle({
"level": $("#puzzleLevel").val()
})
});
</script>
</body>
</html>