-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtilityAddons.html
More file actions
201 lines (179 loc) · 8 KB
/
UtilityAddons.html
File metadata and controls
201 lines (179 loc) · 8 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!doctype html>
<!-- The Time Machine GitHub pages theme was designed and developed by Jon Rohan, on Feb 7, 2012. -->
<!-- Follow him for fun. http://twitter.com/jonrohan. Tail his code on https://github.com/jonrohan -->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" href="stylesheets/github-dark.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="javascripts/script.js"></script>
<title>Aimtec Script Database</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body onload="CreatetypeList()">
<div class="wrapper">
<div id="container">
<p class="tagline aimtecFont">
AimTec Script Database
</p>
<div id="main" role="main">
<div class="addon-bar">
<div class="inner">
<a href="index" class="addon-button"><span>Home</span></a>
<a href="ChampionAddons" class="addon-button"><span>Champion Addons</span></a>
<a href="UtilityAddons" class="addon-button-selected"><span>Utility Addons</span></a>
</div>
</div>
<article class="markdown-body">
<div>
<!--<input id="championSearchTextbox" class="searchBoxes" type="text" autocomplete="off" name="championSearch" placeholder="Search by Champion.." oninput="CreatetypeList()"/>-->
</div>
<div class="addonlist">
<ol id="typeList" class="primary">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$(
function () {
$("#typeList").selectable();
}
);
</script>
</ol>
<ol id="scriptList" class="secondary"></ol>
</div>
</article>
</div>
</div>
<footer>
<div class="owner">
<p><a href="https://forum.aimtec.io/profile/60-freelo/" class="avatar"><img src="https://forum.aimtec.io/uploads/monthly_2017_07/7KlRhd9.thumb.gif.6363cd051f2db6c98c45fe6e1c1fbcf3.gif" width="48" height="48"></a> <a href="https://forum.aimtec.io/profile/60-freelo/">freelo</a> stole this Script Database.</p>
</div>
</footer>
</div>
</body>
<style>
#feedback { font-size: 1.4em; }
#typeList .ui-selecting { background: #FECA40; }
#typeList .ui-selected { background: #F39814; color: white; }
#typeList { list-style-type: none; margin: 0; padding: 0; width: 30% }
#typeList li { margin: 0px; padding: 5px 5px 10px 5px; font-size: 16px; height: 14px; }
#scriptList .ui-selecting { background: #FECA40; }
#scriptList .ui-selected { background: #F39814; color: white; }
#scriptList { list-style-type: none; margin: 0; padding: 0; width: 30% }
#scriptList li { margin: 3px; padding: 5px; font-size: 16px; height: 14px; }
.aimtecFont {font-family: Montserrat; font-weight: 700;}
</style>
<script>
var scriptDatabase = ["Evades",
"Trackers##HealthTracker by JQuery|https://forum.aimtec.io/topic/2471-healthtracker/|https://github.com/AlterEgojQuery/Aimtec##NabbTracker:Revolution|https://forum.aimtec.io/topic/1781-latest-version-71415-nabbtracker-revolution-spell-experience-and-tower-ranges-tracker/|https://github.com/ExoryXD/Aimtec-Repository/tree/master/NabbTracker%20Revolution/",
"Auto-Smites##HeavenSmite|https://forum.aimtec.io/topic/1934-heavensmite-basic-auto-smite/|https://github.com/HalenRepo/Aimtec/",
"Humanizers",
"Bots",
"Shopping",
"Base Ult",
"Exploits",
"Recall Trackers##Sunless' Recall Tracker|https://forum.aimtec.io/topic/1976-recall-tracker-track-your-enemies-in-fow/|https://github.com/satyam126/AimTec##9o - Vision|https://forum.aimtec.io/topic/1867-9o-vision-ward-tracker-recall-tracker-gank-alerter-maphack-and-more-coming-soon/|https://github.com/whosdatdev/Leaguetec",
"Skins",
"Other##JQuery's Standalone Orbwalker|https://forum.aimtec.io/topic/1572-default-sdk-orbwalker-dont-use-with-other-assemblies/|https://github.com/AlterEgojQuery/Aimtec##BlackFeeder|https://forum.aimtec.io/topic/1968-blackfeeder-aimtec-version/|https://github.com/blacky/Aimtec/##Clockware|https://forum.aimtec.io/topic/1990-clockware-orianna-e-assist/|https://github.com/Billybishop/Clockware/"];
//populating main list
function CreatetypeList()
{
var typeList = document.getElementById("typeList");
var scriptList = document.getElementById("scriptList");
var possibleScripts = new Array();
for (i = 0; i < scriptDatabase.length; i++)
possibleScripts.splice(possibleScripts.length, 0, scriptDatabase[i]);
while (typeList.hasChildNodes())
typeList.removeChild(typeList.lastChild);
for(i = 0; i < possibleScripts.length; i++)
{
var newtypeListItem = document.createElement("li");
var newtypeListItemNode = document.createTextNode(possibleScripts[i].split('##')[0]);
newtypeListItem.onclick = function () { LoadChampionScripts(this); };
newtypeListItem.appendChild(newtypeListItemNode);
typeList.appendChild(newtypeListItem);
}
}
//when clicking the champion
function LoadChampionScripts(evt)
{
var scriptList = document.getElementById("scriptList");
var typeIndex = -1;
for(i = 0; i < scriptDatabase.length; i++)
if(scriptDatabase[i].includes(evt.innerHTML))
typeIndex = i;
while (scriptList.hasChildNodes())
scriptList.removeChild(scriptList.lastChild);
//champs with no addons
if(scriptDatabase[typeIndex].split('##').length == 1)
{
scriptName = "None available";
var newListItem = document.createElement("li");
var newListItemNode = document.createTextNode(scriptName);
newListItem.appendChild(newListItemNode);
scriptList.appendChild(newListItem);
}
//champs with addons
for(i = 1; i < scriptDatabase[typeIndex].split('##').length; i++)
{
var scriptName = scriptDatabase[typeIndex].split('##')[i].split('|')[0];
var newListItem = document.createElement("li");
var newListItemNode = document.createTextNode(scriptName);
newListItem.appendChild(newListItemNode);
var githubButton = document.createElement("button");
githubButton.innerHTML = "GitHub";
githubButton.onclick = function () { launchGitHub(this, typeIndex); };
var forumButton = document.createElement("button");
forumButton.innerHTML = "Forum";
forumButton.onclick = function () { launchForum(this, typeIndex); };
var installButton = document.createElement("button");
installButton.innerHTML = "Install";
installButton.onclick = function () { launchInstall(this, typeIndex); };
newListItem.appendChild(githubButton);
newListItem.appendChild(forumButton);
newListItem.appendChild(installButton);
scriptList.appendChild(newListItem);
}
}
//when clicking the script
function LoadURL(element, typeIndex, linkIndex)
{
for(i = 1; i < scriptDatabase[typeIndex].split('##').length; i++)
{
if(scriptDatabase[typeIndex].split('##')[i].includes(element.parentNode.innerHTML.split("<")[0]))
{
var scriptURL = "";
//github/forum link
if(linkIndex != 2)
scriptURL = scriptDatabase[typeIndex].split('##')[i].split('|')[linkIndex+1];
//install link
else
{
var githubLink = scriptDatabase[typeIndex].split('##')[i].split('|')[2];
if(githubLink[githubLink.length - 1] != '/')
githubLink = githubLink + "/";
var splitString = githubLink.split("/");
scriptURL = "elobuddy://" + splitString[splitString.length - 3] + "/" + splitString[splitString.length - 2];
}
window.open(scriptURL);
}
}
}
function launchGitHub(element, typeIndex)
{
LoadURL(element, typeIndex, 1);
}
function launchForum(element, typeIndex)
{
LoadURL(element, typeIndex, 0);
}
function launchInstall(element, typeIndex)
{
LoadURL(element, typeIndex, 2);
}
</script>
</html>