Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
M
mangala-pardusacikhack
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Tuğba Fıçıcı
mangala-pardusacikhack
Commits
e6d90a7e
Kaydet (Commit)
e6d90a7e
authored
May 07, 2021
tarafından
Abdülkerim AKSAK
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge branch 'master' of
https://kod.pardus.org.tr/tugbaficici/mangala
üst
10afd358
cc1bde57
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
9 deletions
+26
-9
gameArea.css
assets/gameArea.css
+2
-4
clock.gif
assets/image/clock.gif
+0
-0
clientGameArea.html
pages/clientGameArea.html
+0
-0
clientGameArea.js
pages/clientGameArea.js
+6
-0
gameArea.html
pages/gameArea.html
+0
-0
gameArea.js
pages/gameArea.js
+6
-1
robotGameArea.html
pages/robotGameArea.html
+4
-2
robotGameArea.js
pages/robotGameArea.js
+6
-1
turnBackMain.html
pages/turnBackMain.html
+2
-1
No files found.
assets/gameArea.css
Dosyayı görüntüle @
e6d90a7e
...
...
@@ -136,8 +136,7 @@ body {
background-color
:
#ed664c
;
border-bottom-left-radius
:
40px
;
margin
:
0
;
box-shadow
:
rgba
(
50
,
50
,
93
,
0.25
)
0px
2px
5px
-1px
,
rgba
(
0
,
0
,
0
,
0.3
)
0px
1px
3px
-1px
;
box-shadow
:
rgba
(
6
,
24
,
44
,
0.4
)
0px
0px
0px
2px
,
rgba
(
6
,
24
,
44
,
0.65
)
0px
4px
6px
-1px
,
rgba
(
255
,
255
,
255
,
0.08
)
0px
1px
0px
inset
;
margin-bottom
:
20px
;
color
:
#334443
;
font-family
:
"Itim"
;
...
...
@@ -150,8 +149,7 @@ body {
background-color
:
#ffe268
;
border-top-right-radius
:
40px
;
box-shadow
:
rgba
(
50
,
50
,
93
,
0.25
)
0px
2px
5px
-1px
,
rgba
(
0
,
0
,
0
,
0.3
)
0px
1px
3px
-1px
;
box-shadow
:
rgba
(
6
,
24
,
44
,
0.4
)
0px
0px
0px
2px
,
rgba
(
6
,
24
,
44
,
0.65
)
0px
4px
6px
-1px
,
rgba
(
255
,
255
,
255
,
0.08
)
0px
1px
0px
inset
;
margin
:
0
;
margin-top
:
20px
;
color
:
#334443
;
...
...
assets/image/clock.gif
0 → 100644
Dosyayı görüntüle @
e6d90a7e
249 KB
pages/clientGameArea.html
Dosyayı görüntüle @
e6d90a7e
This diff is collapsed.
Click to expand it.
pages/clientGameArea.js
Dosyayı görüntüle @
e6d90a7e
...
...
@@ -25,6 +25,8 @@ user2hole.push(treasure2);
var
player
=
2
;
waitcolor
=
"#ed664c"
;
//// Kırmızı renk beklesin
playercolor
=
"#ffe268"
;
// Sarı renk oynasın
waitvisible
=
"visible"
;
playervisible
=
"hidden"
;
function
tikla
(
id
)
{
// ekranda bulunan kuyulardaki kuyulara tıklama ile tetiklenen fonk.
...
...
@@ -39,6 +41,8 @@ function tikla(id) {
if
(
player
==
2
)
{
document
.
getElementById
(
"user1"
).
style
.
backgroundColor
=
waitcolor
;
document
.
getElementById
(
"user2"
).
style
.
backgroundColor
=
playercolor
;
document
.
getElementById
(
"clock1"
).
style
.
visibility
=
playervisible
;
document
.
getElementById
(
"clock2"
).
style
.
visibility
=
waitvisible
;
}
//sendMessage(Number(id[9]));
}
...
...
@@ -52,6 +56,8 @@ function tikla(id) {
if
(
player
==
1
)
{
document
.
getElementById
(
"user1"
).
style
.
backgroundColor
=
playercolor
;
document
.
getElementById
(
"user2"
).
style
.
backgroundColor
=
waitcolor
;
document
.
getElementById
(
"clock1"
).
style
.
visibility
=
waitvisible
;
document
.
getElementById
(
"clock2"
).
style
.
visibility
=
playervisible
;
}
sendMessage
(
Number
(
id
[
9
]));
}
...
...
pages/gameArea.html
Dosyayı görüntüle @
e6d90a7e
This diff is collapsed.
Click to expand it.
pages/gameArea.js
Dosyayı görüntüle @
e6d90a7e
...
...
@@ -25,7 +25,8 @@ user2hole.push(treasure2);
var
player
=
2
;
waitcolor
=
"#ed664c"
;
//// Kırmızı renk beklesin
playercolor
=
"#ffe268"
;
// Sarı renk oynasın
waitvisible
=
"visible"
;
playervisible
=
"hidden"
;
function
tikla
(
id
){
// ekranda bulunan kuyulardaki kuyulara tıklama ile tetiklenen fonk.
...
...
@@ -41,6 +42,8 @@ function tikla(id){
if
(
player
==
2
){
document
.
getElementById
(
"user1"
).
style
.
backgroundColor
=
waitcolor
;
document
.
getElementById
(
"user2"
).
style
.
backgroundColor
=
playercolor
;
document
.
getElementById
(
"clock1"
).
style
.
visibility
=
playervisible
;
document
.
getElementById
(
"clock2"
).
style
.
visibility
=
waitvisible
;
}
}
...
...
@@ -53,6 +56,8 @@ function tikla(id){
if
(
player
==
1
){
document
.
getElementById
(
"user1"
).
style
.
backgroundColor
=
playercolor
;
document
.
getElementById
(
"user2"
).
style
.
backgroundColor
=
waitcolor
;
document
.
getElementById
(
"clock1"
).
style
.
visibility
=
waitvisible
;
document
.
getElementById
(
"clock2"
).
style
.
visibility
=
playervisible
;
}
}
...
...
pages/robotGameArea.html
Dosyayı görüntüle @
e6d90a7e
...
...
@@ -32,12 +32,13 @@
</div>
<div
class=
"col-4"
>
<div
class=
"bos"
>
<button
class=
"btn-primary"
onclick=
"overlay()"
>
overlay
</button>
</div>
</div>
<div
class=
"col-4 text-right"
id=
"user1"
>
<div
id=
"user2card"
>
<b>
Cengaver
</b>
<img
src=
"../assets/image/clock.gif"
width=
"70"
height=
"70"
id=
"clock1"
style=
"visibility: hidden;"
>
</div>
</div>
...
...
@@ -146,11 +147,12 @@
<div
class=
"col-4 text-left"
id=
"user2"
>
<div
id=
"user2card"
>
<b>
Ben
</b>
<img
src=
"../assets/image/clock.gif"
width=
"70"
height=
"70"
id=
"clock2"
style=
"visibility: visible;"
>
</div>
</div>
<!-- toast js fonksiyonu eklenecek-->
<div
class=
"col-4 text-center"
>
<div
class=
"toast"
></div>
</div>
<div
class=
"col-4 text-right"
>
<div
class=
"oda"
></div>
...
...
pages/robotGameArea.js
Dosyayı görüntüle @
e6d90a7e
...
...
@@ -70,7 +70,8 @@ user2hole.push(treasure2);
var
player
=
2
;
playercolor
=
"#ed664c"
;
waitcolor
=
"#ffe268"
;
waitvisible
=
"visible"
;
playervisible
=
"hidden"
;
function
tikla
(
id
){
...
...
@@ -87,6 +88,8 @@ function tikla(id){
if
(
player
==
2
){
document
.
getElementById
(
"user1"
).
style
.
backgroundColor
=
waitcolor
;
document
.
getElementById
(
"user2"
).
style
.
backgroundColor
=
playercolor
;
document
.
getElementById
(
"clock1"
).
style
.
visibility
=
playervisible
;
document
.
getElementById
(
"clock2"
).
style
.
visibility
=
waitvisible
;
}
}
...
...
@@ -97,6 +100,8 @@ function tikla(id){
document
.
getElementById
(
"user1"
).
style
.
backgroundColor
=
playercolor
;
document
.
getElementById
(
"user2"
).
style
.
backgroundColor
=
waitcolor
;
document
.
getElementById
(
"clock1"
).
style
.
visibility
=
waitvisible
;
document
.
getElementById
(
"clock2"
).
style
.
visibility
=
playervisible
;
}
boncukCiz
();
if
(
player
==
1
&&
state
){
...
...
pages/turnBackMain.html
Dosyayı görüntüle @
e6d90a7e
...
...
@@ -145,6 +145,7 @@
.
getElementById
(
"anasayfayaDon"
)
.
addEventListener
(
"click"
,
function
(
e
)
{
// ODADAN AYRIL
/*
const odadanAyrilBtn = document.getElementById("odadanAyrilBtn");
odadanAyrilBtn.onclick = () => {
let roomKey = odayaKatilInput.value;
...
...
@@ -156,7 +157,7 @@
});
odayaKatilContainer.appendChild(elemt);
};
*/
console
.
log
(
window
.
opener
.
location
.
href
);
var
dosyaYolu
=
__dirname
;
dosyaYolu
=
dosyaYolu
.
toString
().
substring
(
0
,
dosyaYolu
.
length
-
5
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment