-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (50 loc) · 2.06 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
<!doctype html>
<html lang="en">
<head>
<meta charser="utf-8">
<meta http-equiv="x-ua-compatible" content="ie-edge">
<title>Sudoku | Overdoseflow</title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="bundle/sudoku.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72522075-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="app">
<div class="dialog" v-if="game === null">
<p>Lütfen zorluk derecesini seçiniz: </p>
<p v-if="hasExistingGame()">
<button @click="continueGameClick">Kaldığın yerden devam et</button>
</p>
<button @click="difficultyClick" data-difficulty="easy">Kolay</button>
<button @click="difficultyClick" data-difficulty="medium">Orta</button>
<button @click="difficultyClick" data-difficulty="hard">Zor</button>
</div>
<table class="sudoku-table" v-else>
<tbody>
<tr v-for="(irow, row) in game">
<td v-for="(icell, cell) in row"
:class="['i'+irow, 'j'+icell, cell.editable ? 'editable': 'not-editable', cell.hasConflict ? 'has-conflict' : 'no-conflict']">
<input type="tel" :value="cell.value" :readonly="!cell.editable"
:data-i="irow" :data-j="icell"
@click="cellClick"
@keyup="cellKeyUp" />
</td>
</tr>
</tbody>
</table>
<div class="controls" v-if="game !== null">
<p><a href="#" @click="backClick">Geri</a></p>
<p>{{formatedTime()}}</p>
</div>
</div>
<script src="bundle/sudoku-min.js"></script>
</body>
</html>