From 52b5a57bdefa5d4eddf793c84eaddb394dd155c5 Mon Sep 17 00:00:00 2001 From: Milk Date: Tue, 26 Sep 2017 22:58:17 -0400 Subject: [PATCH] Imagine Not using spaces for indents --- index.html | 102 ++++++++++++++++++++++++++--------------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/index.html b/index.html index 4054c6d..730a949 100644 --- a/index.html +++ b/index.html @@ -1,61 +1,61 @@ - - + + - GCT Generator - - - - -
- Game ID:
-
- Code:
-
- -
- - + function generateGCT() { + var data = "00D0C0DE00D0C0DE"; + data += document.getElementById("gctData").value.replace(/[\s\n\r\t]+/gm,""); + if (!/^[a-fA-F0-9]+$/.test(data) || (data.length % 16 != 0)) { + alert("Not a valid code"); + return; + }; + data += "FF00000000000000"; + + var fileName = document.getElementById("gameID").value; + fileName += ".gct"; + + downloadGCT(data, fileName); + } + + + +
+ Game ID:
+
+ Code:
+
+ +
+ +