clientGameArea.html 11.1 KB
Newer Older
1 2 3
<!DOCTYPE html>
<html lang="en">

4 5 6 7 8 9 10 11 12 13 14
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="../assets/gameArea.css" />
  <link rel="stylesheet" href="../assets/bootstrap.min.css" />
</head>

<body>

  <div class="container-fluid">
    <div id="overlay">
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
      <div style="display: flex; justify-content: center; align-items: center; height: 100%; width: 100%;">
      <div style="display: flex; justify-content: center; align-items: center; height: 250px; width: 550px;flex-direction: column;  background-image: linear-gradient(
        to bottom,
        #416e75,
        #529290,
        #6db7a6,
        #94dbb5,
        #c6ffc1
      ); border-radius: 20px;">
        <div style="margin-bottom: 25px;"><p id="text" style="color:#ffe268;"></p></div>
        <div>
          <button class="big-button" onclick="yenidenOyna()" style="font-size: 11px;width: 150px;">Yeniden
          Oyna
          </button>
        </div>
30
      </div>
31 32
      </div>
    </div>
33 34
      
    </div>
35
    <div id="overlayOda" onclick="overlayOff()">
36 37
      <a href="../main.html"><img width="60" height="60" src="../assets/image/geri.png" alt="geri" style="margin-left: 15px;"></a>
      <div class="row" style="padding: 30px">
38
        <div class="col align-self-center disKenar" style="height: 400px">
39
          
40 41 42 43 44 45
          <div class="odaCerceve kenar">
            <div class="overlayTitle">ODA KUR</div>
            <div class="overlayInput">
              <button class="big-button" style="font-size: 11px" id="odaOlusturBtn">
                OLUŞTUR
              </button>
46
            </div>
47
          </div>
48 49 50 51 52 53 54 55 56 57 58 59 60 61
        </div>
        <div class="col align-self-center disKenar" style="height: 400px">
          <div class="odaCerceve kenar">
            <div class="overlayTitle">ODAYA KATIL</div>
            <div class="overlayInput">
              <div class="row">
                <div class="col-7 align-self-center">
                  <input class="form-control" type="text" placeholder="Oda Numarası"
                    style="margin-left: 10px; margin-top: 5px" id="odayaKatilInput" />
                </div>
                <div class="col-5">
                  <button class="big-button" style="font-size: 11px; margin-right: 10px" id="odayaKatilBtn">
                    GİR
                  </button>
62
                </div>
63 64 65 66 67
              </div>
            </div>
          </div>
        </div>
      </div>
68
    </div>
69

70 71 72 73
    <div class="row" style="margin: 0">
      <div class="col-4">
        <div class="geriButonu">
          <a href="turnBackMain.html" onclick="window.open(this.href, 'Anasayfaya Dön',
74 75
        'left=20,top=20,width=400,height=300,toolbar=no,location=no,scrollbars=no,status=no,fullscreen=no,resizable=no'); return false;"><img width="60" height="60"
              src="../assets/image/geri.png" alt="geri" id="yeniPencere2"/></a>
76
        </div>
77 78 79 80
      </div>
      <div class="col-4">
        <div class="bos">
         
81
        </div>
82 83 84
      </div>
      <div class="col-4 text-right" id="user1">
        <div id="user2card">
85
          <b id="user1Name">Oyuncu 2</b>
86
          <img src="../assets/image/clock.gif" width="70" height="70" id="clock1" style="visibility: hidden;">
87 88
        </div>
      </div>
89
    </div>
90

91
    <div class="clear"></div>
92

93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
    <div class="row" id="tahta">
      <div class="col" style="align-items: center">
        <div id="tahtaCerceve">
          <div id="tahtaGorunum">
            <div class="a">
              <div class="hazine1" style="float: left">
                <div id="user1hole7" class="rectangle"></div>
              </div>
              <div class="boncuklar" style="float: left">
                <div class="boncuklar1">
                  <div class="cirlce" onclick="tikla(this.id)" id="user1hole6">
                    <span class="dot_black" id="drag1" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag2" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag3" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag4" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user1hole5">
                    <span class="dot_black" id="drag5" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag6" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag7" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag8" draggable="true" ondragstart="drag(event)"></span>
114
                  </div>
115 116 117 118 119
                  <div class="cirlce" onclick="tikla(this.id)" id="user1hole4">
                    <span class="dot_black" id="drag1" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag2" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag3" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag4" draggable="true" ondragstart="drag(event)"></span>
120
                  </div>
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
                  <div class="cirlce" onclick="tikla(this.id)" id="user1hole3">
                    <span class="dot_black" id="drag5" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag6" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag7" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag8" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user1hole2">
                    <span class="dot_black" id="drag1" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag2" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag3" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag4" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user1hole1">
                    <span class="dot_black" id="drag5" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag6" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag7" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag8" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="clear"></div>
140
                </div>
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
                <div class="boncuklar2">
                  <div class="cirlce" onclick="tikla(this.id)" id="user2hole1">
                    <span class="dot_black" id="drag1" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag2" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag3" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag4" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user2hole2">
                    <span class="dot_black" id="drag5" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag6" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag7" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag8" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user2hole3">
                    <span class="dot_black" id="drag1" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag2" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag3" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag4" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user2hole4">
                    <span class="dot_black" id="drag5" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag6" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag7" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag8" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user2hole5">
                    <span class="dot_black" id="drag1" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag2" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag3" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag4" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="cirlce" onclick="tikla(this.id)" id="user2hole6">
                    <span class="dot_black" id="drag5" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag6" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag7" draggable="true" ondragstart="drag(event)"></span>
                    <span class="dot_black" id="drag8" draggable="true" ondragstart="drag(event)"></span>
                  </div>
                  <div class="clear"></div>
179
                </div>
180
              </div>
181 182 183 184
              <dic class="clear"></dic>
              <div class="hazine2" style="float: left">
                <div id="user2hole7" class="rectangle"></div>
              </div>
185 186 187
            </div>
          </div>
        </div>
188
      </div>
189
    </div>
190

191 192 193
    <div class="row" style="margin: 0">
      <div class="col-4 text-left" id="user2">
        <div id="user2card">
194
          <b id="user2Name">Oyuncu 2</b>
195
          <img src="../assets/image/clock.gif" width="70" height="70" id="clock2" style="visibility: visible;">
196 197
        </div>
      </div>
198 199 200
      <!-- toast js fonksiyonu eklenecek-->
      <div class="col-4 text-center">
        <div id="toasts"></div>
201
      </div>
202 203 204 205 206

      <div class="col-4 text-right">
        <div class="oda" id="odaOlustur"></div>
      </div>

207
    </div>
208 209 210 211
  </div>
  </div>

  <script src="clientGameArea.js"></script>
212 213 214 215 216
  <script src="settings.js"></script>
  <script>
    document.getElementById("user2Name").innerHTML=getUsername();
    document.getElementById("user1Name").innerHTML=getUsername();
  </script>
217 218

</body>
219

220 221
</html>

222
<!--client script eklenecek-->