forked from relikd/ipa-archive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
109 lines (102 loc) · 3.67 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0">
<meta name="referrer" content="no-referrer">
<title>IPA Archive</title>
<link rel="shortcut icon" href="./favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png">
<link rel="stylesheet" href="style.css">
<script src='script.js'></script>
</head>
<body>
<button style="float: right; margin: 0 16px" onclick="randomIPA()">Random</button>
<h1>IPA Archive</h1>
<form onsubmit="event.preventDefault(); searchIPA(); return false;" autocomplete="off">
<input id="page" hidden>
<input id="minid" hidden>
<label for="search">Search: <input id="search" placeholder="Search"></label>
<label for="bundleid">BundleId: <input id="bundleid" placeholder="com.gameloft."></label>
<label for="unique">Unique: <input id="unique" type="checkbox" checked></label>
<label for="minos">min OS: <input id="minos" placeholder="1.0"></label>
<label for="maxos">max OS: <input id="maxos" placeholder="5.1.1"></label>
<label for="device">Device: <select id="device">
<option value="">Any</option>
<option value="1">iPhone</option>
<option value="2">iPad</option>
<option value="3">TV</option>
<option value="4">Watch</option>
</select></label>
<button type="submit">Search</button>
</form>
<div id="content">JavaScript disabled?</div>
<div id="templates" hidden>
<div class="entry full">
<div>
<img src="$IMG">
<button onclick="installIPA($IDX)">Install</button>
</div>
<div class="info">
<h4>$TITLE</h4>
<div>BundleId: $BUNDLEID</div>
<div>Version: v$VERSION – $SIZE</div>
<div>Device: $PLATFORM</div>
<div>Minimum OS: $MINOS</div>
<div>Link: <a href="$URL" rel="noopener noreferrer nofollow">$URLNAME</a></div>
</div>
</div>
<div class="entry short">
<div><img src="$IMG"></div>
<div class="info">
<h4>$TITLE</h4>
<div>BundleId: $BUNDLEID</div>
<div>Device: $PLATFORM</div>
<div>Minimum OS: $MINOS</div>
<div><a onclick="searchBundle($IDX)">Show all</a></div>
</div>
</div>
<div class="itunes">
<h4>iTunes Info:</h4>
<div>Genre: $GENRES</div>
<div>Rating: $RATING</div>
<div>Advisory: $ADVISORY</div>
<br>
<div>Current Version: <b>$VERSION</b> (last update: $DATE)</div>
<div>Price: $PRICE</div>
<div>Link: <a href="$URL" rel="noopener noreferrer nofollow">iTunes</a></div>
<div>$IMG</div>
<p>$DESCRIPTION</p>
</div>
<a class="screenshot" href="$REF" target="_blank"><img src="$URL" crossorigin="anonymous"
referrerpolicy="no-referrer"></a>
<div class="randomAction">
Actions:
<button onclick="searchBundle($IDX, '&random=$IDX')">Show all versions</button>
<button onclick="randomIPA()">Next Random</button>
</div>
<div class="no-itunes">
<p>iTunes search disabled. No plist server configured.</p>
<a onclick="installIPA()">Configure now</a>
</div>
</div>
<div id="overlay" hidden>
<div id="installMsg">
<h3>Install on device</h3>
<p>
Unfortunatelly, this function is not possible with static HTML+JS.
You must provided a plist generator URL.
See <a href="Readme.md" target="_blank">Readme</a> file for further instructions on how to set up such a
service.
</p>
<form onsubmit="event.preventDefault(); setPlistGen(); return false;" autocomplete="off">
<label for="plistServer">Generator URL:</label>
<input id="plistServer" placeholder="http://192.168.0.1/">
<button type="submit">Save</button>
<button type="button" onclick="document.getElementById('overlay').hidden=true">Abort</button>
</form>
</div>
</div>
<script>loadDB()</script>
</body>
</html>