-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.html
163 lines (156 loc) · 5.17 KB
/
main.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mangala | CLUTCH</title>
<link rel="stylesheet" href="assets/main.css" />
<link rel="stylesheet" href="assets/bootstrap.min.css" />
</head>
<body>
<div class="container">
<div class="row" id="infoTitle">
<div class="col">
<div class="row">
<p id="mangalaTitle">MANGALA</p>
</div>
<div class="row" id="infoText">
<div class="col">
<p id="linksiz" style="font-size: 16px">
<b>Türk Zeka ve Strateji Oyunu</b>
</p>
</div>
<div class="col text-right">
<img
width="35"
height="35"
src="./assets/image/rulesYellow.png"
alt="rules"
/>
<a
href="./pages/nasilOynanir.html"
class="link"
style="font-size: 16px"
><b>Nasıl Oynanır?</b></a
>
<a href="#" class="link" style="font-size: 20px">|</a>
<img
width="35"
height="35"
src="./assets/image/settings.png"
alt="rules"
/>
<a href="#" class="link" id="yeniPencere" style="font-size: 16px"
><b>Ayarlar</b></a
>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col" style="margin-right: 10px">
<a href="pages/robotGameArea.html" class="boxA">
<div class="row oyun" style="align-items: center">
<div class="col text-center">
<img
width="100"
height="80"
src="./assets/image/robot.png"
alt="robot"
/>
</div>
<div class="col text-center">
<p class="oyunText">Robota Karşı Oyna</p>
</div>
</div>
</a>
<a href="pages/gameArea.html" class="boxA">
<div class="row oyun" style="align-items: center">
<div class="col text-center">
<img
width="100"
height="100"
src="./assets/image/playFriendskirp.png"
alt="playFriends"
/>
</div>
<div class="col text-center">
<p class="oyunText">Arkadaşına Karşı Oyna</p>
</div>
</div>
</a>
</div>
<div class="col" style="margin-left: 10px">
<a href="pages/score.html" class="boxA">
<div class="row skor" style="align-items: center">
<div class="col text-center">
<img
width="50"
height="50"
src="./assets/image/score.png"
alt="playFriends"
/>
</div>
<div class="col text-center">
<p class="oyunText">Skor</p>
</div>
</div>
</a>
<a href="./pages/clientGameArea.html" class="boxA">
<div class="row oyun" style="align-items: center">
<div class="col text-center">
<img
width="80"
height="80"
src="./assets/image/onlineSoluk.png"
alt="playFriends"
/>
</div>
<div class="col text-center">
<p class="oyunText">Çevrim İçi Oyna</p>
</div>
</div>
</a>
<a href="pages/info.html" class="boxA">
<div class="row skor" style="align-items: center">
<div class="col text-center">
<img
width="50"
height="50"
src="./assets/image/contact.png"
alt="playFriends"
/>
</div>
<div class="col text-center">
<p class="oyunText">Clutch</p>
</div>
</div>
</a>
</div>
</div>
</div>
<script>
const electron = require("electron");
const { ipcRenderer } = electron; // backend ile iletişim
let yeniPencere = document.querySelector("#yeniPencere");
yeniPencere.addEventListener("click", () => {
ipcRenderer.send("key:newWindow", true);
});
let sendBtn = document.querySelector("#sendBtn");
sendBtn.addEventListener("click", () => {
ipcRenderer.send("btnClick", "Oyna tuşuna basıldı!");
});
let btnSettings = document.querySelector("#btnSettings");
btnSettings.addEventListener("click", () => {
ipcRenderer.send("key:settingScreen");
});
let btnExit = document.querySelector("#btnExit");
btnExit.addEventListener("click", () => {
ipcRenderer.send(
"key:exitScreen",
"file://" + __dirname + "/pages/settings.html"
);
});
</script>
</body>
</html>