turnBackMain.html 4.87 KB
Newer Older
1 2
<!DOCTYPE html>
<html lang="en">
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
3 4 5 6
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7 8 9
    <link rel="stylesheet" href="../assets/bootstrap.min.css" />
    <link rel="stylesheet" href="../assets/button.sccs" />
    <style>
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
10
      @font-face {
11
        font-family: "Itim";
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
12 13 14 15 16 17
        src: url("../assets/fonts/Itim-Regular.ttf") format("truetype");
      }
      body {
        width: 400px;
        height: 250px;
        background-color: #334443;
18

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
19 20 21 22 23 24 25 26 27 28 29
        color: aliceblue;
        font-family: "Itim";
      }
      :root {
        --backgroundColor: rgba(246, 241, 209);
        --colorShadeA: rgb(88, 112, 85);
        --colorShadeB: rgb(88, 112, 85);
        --colorShadeC: rgb(187, 240, 182, 94);
        --colorShadeD: rgb(197, 252, 192, 99);
        --colorShadeE: rgb(198, 255, 193, 100);
      }
30

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
31 32 33 34 35 36 37 38
      @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
      * {
        box-sizing: border-box;
      }
      *::before,
      *::after {
        box-sizing: border-box;
      }
39

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
      button {
        position: relative;
        display: inline-block;
        cursor: pointer;
        outline: none;
        border: 0;
        vertical-align: middle;
        text-decoration: none;
        font-size: 11px;
        color: var(--colorShadeA);
        font-weight: 700;
        text-transform: uppercase;
        font-family: inherit;
        width: 150px;
      }
55

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
      button.big-button {
        padding: 1em 2em;
        border: 2px solid var(--colorShadeA);
        border-radius: 1em;
        background: var(--colorShadeE);
        transform-style: preserve-3d;
        transition: all 175ms cubic-bezier(0, 0, 1, 1);
      }
      button.big-button::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--colorShadeC);
        border-radius: inherit;
        box-shadow: 0 0 0 2px var(--colorShadeB),
          0 0.75em 0 0 var(--colorShadeA);
        transform: translate3d(0, 0.75em, -1em);
        transition: all 175ms cubic-bezier(0, 0, 1, 1);
      }
80

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
81 82 83 84
      button.big-button:hover {
        background: var(--colorShadeD);
        transform: translate(0, 0.375em);
      }
85

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
86 87 88
      button.big-button:hover::before {
        transform: translate3d(0, 0.75em, -1em);
      }
89

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
90 91 92
      button.big-button:active {
        transform: translate(0em, 0.75em);
      }
93

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
94 95
      button.big-button:active::before {
        transform: translate3d(0, 0, -1em);
96

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
97 98 99
        box-shadow: 0 0 0 2px var(--colorShadeB),
          0 0.25em 0 0 var(--colorShadeB);
      }
100
    </style>
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
101
  </head>
102

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
103
  <body>
104
    <div class="container">
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
105 106 107 108 109 110 111 112 113 114 115 116
      <div class="col">
        <div class="row">
          <div
            class="col text-center"
            style="
              margin-top: 50px;
              color: #ffe268;
              text-shadow: 1.5px 1.5px #a87414;
            "
          >
            <h4>ANASAYFAYA DÖN</h4>
          </div>
117
        </div>
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
118 119
        <div
          class="row"
120
          style="margin-top: 10px; margin-bottom: 10px; font-size: 14px; display: flex; justify-content: center; align-items: center;"
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
121
        >
122
          <p style="text-align: center;">Anasayfaya döndüğünüzde oyun kaydedilmez.</p>
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
123 124 125
        </div>
        <div class="row">
          <div class="col">
126
            <a href="#">
127 128 129 130
              <button class="big-button" id="anasayfayaDon">
                Anasayfaya Dön
              </button>
            </a>
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
131 132 133 134 135 136 137 138 139
          </div>
          <div class="col">
            <!--<a href="#" class="btn">Oyuna Dön</a>-->
            <button class="big-button" onclick="window.close()">
              Oyuna Dön
            </button>
          </div>
        </div>
      </div>
140
    </div>
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
141 142 143
  </body>
  <script src="clientApp.js"></script>
  <script>
144 145
    //const remote = require("electron").remote;

Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
146 147 148 149
    document
      .getElementById("anasayfayaDon")
      .addEventListener("click", function (e) {
        // ODADAN AYRIL
150
        /*
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
151 152 153 154 155 156 157 158 159 160 161
        const odadanAyrilBtn = document.getElementById("odadanAyrilBtn");
        odadanAyrilBtn.onclick = () => {
          let roomKey = odayaKatilInput.value;
          game.emit("disconnection", roomKey);
          let elemt = document.createElement("p");

          game.on("disconnectionRoom", (key) => {
            elemt.textContent = key + " odasından ayrıldın.";
          });
          odayaKatilContainer.appendChild(elemt);
        };
162
        */
Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
163 164 165 166
        console.log(window.opener.location.href);
        var dosyaYolu = __dirname;
        dosyaYolu = dosyaYolu.toString().substring(0, dosyaYolu.length - 5);
        window.opener.location.href = "file://" + dosyaYolu + "/main.html";
167
        //var window = remote.getCurrentWindow();
168

169
        //window.close();
170
        close();
171 172


Abdülkerim AKSAK's avatar
Abdülkerim AKSAK committed
173 174 175
      });
  </script>
</html>