Compare commits
	
		
			6 Commits
		
	
	
		
			feat/smsga
			...
			dependabot
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					6d660da185 | ||
| 1cf43a3768 | |||
| e1daf00609 | |||
| 3a6a9122e1 | |||
| 0d14305ded | |||
| 40b4a0657f | 
@@ -11,7 +11,7 @@
 | 
				
			|||||||
        <label>Din vinlottis kode:</label>
 | 
					        <label>Din vinlottis kode:</label>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div class="codeinput-container">
 | 
					      <div id="code-container" class="codeinput-container">
 | 
				
			||||||
        <input v-model="code" placeholder="KODE" @keyup.enter="submit" />
 | 
					        <input v-model="code" placeholder="KODE" @keyup.enter="submit" />
 | 
				
			||||||
        <button class="vin-button" @click="submit">ENTER</button>
 | 
					        <button class="vin-button" @click="submit">ENTER</button>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
@@ -56,15 +56,24 @@ export default {
 | 
				
			|||||||
      const { video } = this.$refs;
 | 
					      const { video } = this.$refs;
 | 
				
			||||||
      video.paused ? video.play() : video.pause();
 | 
					      video.paused ? video.play() : video.pause();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    smh() {
 | 
				
			||||||
 | 
					      let inputContainer = document.getElementById('code-container')
 | 
				
			||||||
 | 
					      inputContainer.classList.add('shake')
 | 
				
			||||||
 | 
					      if (this.timeout)
 | 
				
			||||||
 | 
					        clearTimeout(this.timeout)
 | 
				
			||||||
 | 
					      this.timeout = setTimeout(() => inputContainer.classList.remove('shake'), 600);
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    submit() {
 | 
					    submit() {
 | 
				
			||||||
      const site = __sites__.find(site => site.code == this.code);
 | 
					      const site = __sites__.find(site => site.code?.toLowerCase() == this.code?.toLowerCase());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (site) {
 | 
					      if (site) {
 | 
				
			||||||
        createCookie("accesscode", site.code, 14);
 | 
					        createCookie("accesscode", site.code, 14);
 | 
				
			||||||
        window.location.href = `${window.location.protocol}//${site.domain}`;
 | 
					        const path = (location.pathname+location.search).substr(1)
 | 
				
			||||||
 | 
					        const redirectUrl = `${window.location.protocol}//${site.domain}/${path}`
 | 
				
			||||||
 | 
					        window.location.href = redirectUrl;
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        this.smh()
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					 | 
				
			||||||
      return;
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@@ -127,6 +136,11 @@ video {
 | 
				
			|||||||
    width: 80%;
 | 
					    width: 80%;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  &.shake {
 | 
				
			||||||
 | 
					    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
 | 
				
			||||||
 | 
					    animation-iteration-count: infinite;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  input {
 | 
					  input {
 | 
				
			||||||
    max-width: 24rem;
 | 
					    max-width: 24rem;
 | 
				
			||||||
    width: 100%;
 | 
					    width: 100%;
 | 
				
			||||||
@@ -145,6 +159,7 @@ video {
 | 
				
			|||||||
  button {
 | 
					  button {
 | 
				
			||||||
    height: 100%;
 | 
					    height: 100%;
 | 
				
			||||||
    max-height: unset;
 | 
					    max-height: unset;
 | 
				
			||||||
 | 
					    font-weight: bold;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -180,6 +195,7 @@ video {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    label {
 | 
					    label {
 | 
				
			||||||
      color: rgba(255, 255, 255, 0.82);
 | 
					      color: rgba(255, 255, 255, 0.82);
 | 
				
			||||||
 | 
					      text-shadow: 1px 1px black;
 | 
				
			||||||
      font-size: 1.5rem;
 | 
					      font-size: 1.5rem;
 | 
				
			||||||
      font-weight: 500;
 | 
					      font-weight: 500;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -205,4 +221,27 @@ video {
 | 
				
			|||||||
.button-container {
 | 
					.button-container {
 | 
				
			||||||
  margin-top: 4rem;
 | 
					  margin-top: 4rem;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@keyframes shake {
 | 
				
			||||||
 | 
					  10%,
 | 
				
			||||||
 | 
					  90% {
 | 
				
			||||||
 | 
					    transform: translate3d(-1px, 0, 0);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  20%,
 | 
				
			||||||
 | 
					  80% {
 | 
				
			||||||
 | 
					    transform: translate3d(2px, 0, 0);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  30%,
 | 
				
			||||||
 | 
					  50%,
 | 
				
			||||||
 | 
					  70% {
 | 
				
			||||||
 | 
					    transform: translate3d(-4px, 0, 0);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  40%,
 | 
				
			||||||
 | 
					  60% {
 | 
				
			||||||
 | 
					    transform: translate3d(4px, 0, 0);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										16
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								yarn.lock
									
									
									
									
									
								
							@@ -2806,9 +2806,9 @@ events@^3.2.0:
 | 
				
			|||||||
  integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
 | 
					  integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
 | 
				
			||||||
 | 
					
 | 
				
			||||||
eventsource@^1.0.7:
 | 
					eventsource@^1.0.7:
 | 
				
			||||||
  version "1.1.0"
 | 
					  version "1.1.1"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-1.1.0.tgz#00e8ca7c92109e94b0ddf32dac677d841028cfaf"
 | 
					  resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-1.1.1.tgz#4544a35a57d7120fba4fa4c86cb4023b2c09df2f"
 | 
				
			||||||
  integrity sha512-VSJjT5oCNrFvCS6igjzPAt5hBzQ2qPBFIbJ03zLI9SE0mxwZpMw6BfJrbFHm1a141AavMEB8JHmBhWAd66PfCg==
 | 
					  integrity sha512-qV5ZC0h7jYIAOhArFJgSfdyz6rALJyb270714o7ZtNnw2WSJ+eexhKtE0O8LYPRsHZHf2osHKZBxGPvm3kPkCA==
 | 
				
			||||||
  dependencies:
 | 
					  dependencies:
 | 
				
			||||||
    original "^1.0.0"
 | 
					    original "^1.0.0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -6609,7 +6609,15 @@ url-parse-lax@^3.0.0:
 | 
				
			|||||||
  dependencies:
 | 
					  dependencies:
 | 
				
			||||||
    prepend-http "^2.0.0"
 | 
					    prepend-http "^2.0.0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
url-parse@^1.4.3, url-parse@^1.5.1:
 | 
					url-parse@^1.4.3:
 | 
				
			||||||
 | 
					  version "1.5.10"
 | 
				
			||||||
 | 
					  resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1"
 | 
				
			||||||
 | 
					  integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==
 | 
				
			||||||
 | 
					  dependencies:
 | 
				
			||||||
 | 
					    querystringify "^2.1.1"
 | 
				
			||||||
 | 
					    requires-port "^1.0.0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					url-parse@^1.5.1:
 | 
				
			||||||
  version "1.5.1"
 | 
					  version "1.5.1"
 | 
				
			||||||
  resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.1.tgz#d5fa9890af8a5e1f274a2c98376510f6425f6e3b"
 | 
					  resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.1.tgz#d5fa9890af8a5e1f274a2c98376510f6425f6e3b"
 | 
				
			||||||
  integrity sha512-HOfCOUJt7iSYzEx/UqgtwKRMC6EU91NFhsCHMv9oM03VJcVo2Qrp8T8kI9D7amFf1cu+/3CEhgb3rF9zL7k85Q==
 | 
					  integrity sha512-HOfCOUJt7iSYzEx/UqgtwKRMC6EU91NFhsCHMv9oM03VJcVo2Qrp8T8kI9D7amFf1cu+/3CEhgb3rF9zL7k85Q==
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user