This repository has been archived by the owner on May 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathga_delete.html
154 lines (146 loc) · 4.52 KB
/
ga_delete.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="site.webmanifest">
<script src="js/jquery.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="css/core.css">
</head>
<body>
<ul class="header">
<li style="float: left">
<img src="esl/_Web/ESL_Logo_Horiz_light.png" height="32" class="line" style="padding-left: 12px">
</li>
<li style="float: left" class="time">
<a href="index.html" class="timeline">Home</a><b class="lop">></b><a class="timeline" href="chooseAC.html">AC</a><b class="lop">></b><a class="timeline" href="ga_delete.html">GA delete
</a>
</li>
<li style="float: right" id="close">
<img src="esl/close.png" class="line">
</li>
<li style="float: right" id="klein">
<img src="esl/klein.png" class="line">
</li>
<li class="ShowName" style="float: right">
Placeholder
</li>
</ul>
<div class="auswahl">
<div class="coices">
<table class="formAc">
<tr>
<td>
<span class="TitleAC">
Gameaccount
</span>
</td>
</tr>
<tr>
<td>
<input type="text" id="gameid" placeholder="Gameaccount (Game ID)" class="inputAC">
</td>
</tr>
<tr>
<td>
<label class="container">EUW
<input type="radio" checked="checked" name="radio" id="euw" value="euw">
<span class="checkmark"></span>
</label>
<label class="container">EUNE
<input type="radio" name="radio" id=eune value="eune">
<span class="checkmark"></span>
</label>
<label class="container">NA
<input type="radio" name="radio" id="na" value="na">
<span class="checkmark"></span>
</label>
</td>
</tr>
<tr>
<td>
<select class="selectAC">
<option value="Multiaccount deleted">Multiaccount deleted</option>
<option value="Inactive, wants to use it again">Inactive, wants to use it again</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="text" id="ticketid" placeholder="Ticket Number (#....)" class="inputAC">
</td>
</tr>
<tr>
<td>
<button class="loginButton" onclick="generateAC()">
Generate AC
</button>
</td>
</tr>
<tr>
<td>
<textarea class="ac">
</textarea>
</td>
</tr>
</table>
</div>
</div>
<script>
function generateAC(){
let gameaccount = $('#gameid').val();
let server = $("input:radio[name='radio']").val();
let reason = $('.selectAC').val();
let ticket_id = $('#ticketid').val();
const Store = require('electron-store');
const store = new Store();
let ac = "b[Gameaccount deleted]b\n------------------ \nValue: <gameaccount>\nType: <server>\nReason: <reason>\nTicket: url[http://play.eslgaming.com/leagueoflegends/support/<ticket>][<ticket>]url\n------------------\n<name>\n<id>:<squad_id>";
ac = ac.replace("<gameaccount>", gameaccount);
ac = ac.replace("<server>", server);
ac = ac.replace("<reason>", reason);
ac = ac.replace("<ticket>", ticket_id);
ac = ac.replace("<ticket>", ticket_id);
ac = ac.replace("<name>", store.get('name'));
ac = ac.replace("<id>", store.get('eslid'));
ac = ac.replace("<squad_id>", store.get('squadid'));
$('.ac').val(ac);
}
</script>
<script>
window.$ = window.jQuery = require('./js/jquery.js');
/*
FA Suspicion
Account delete
FA Lockremoved
Multiaccount
LB removed
Ga delete
*/
const remote = require('electron').remote;
const {ipcRenderer} = require('electron');
const path = require('path');
const url = require('url');
$('#close').on('click', e => {
remote.getCurrentWindow().close();
});
$('#klein').on('click', e => {
remote.getCurrentWindow().minimize();
});
var level = "1";
const Store = require('electron-store');
const store = new Store();
$('.ShowName').text(store.get('name'));
$('.ShowName').on('click', e => {
remote.getCurrentWindow().loadURL(
url.format({
pathname: path.join(__dirname, 'createUser.html'),
protocol: 'file:',
slashes: true
}));
});
</script>
</body>
</html>