-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
169 lines (165 loc) · 6.09 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
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
<!DOCTYPE html>
<!--
Prologue by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>InstaSquare</title>
<meta name="description"
content="A web app to square photos in bulk to upload into Instagram albums." />
<meta property="og:image"
content="https://www.patrickxchong.com/assets/images/uploads/InstaSquare.png" />
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="apple-touch-icon" href="favicon.png" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/loader.css" />
<link rel="stylesheet" type="text/css" href="css/drive-upload.css" />
<link rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
crossorigin="anonymous" />
</head>
<body>
<div id="upload-loader">
<div class="loader"></div>
<br />
<p>Processing your photos</p>
</div>
<div id="wrapper">
<div id="left-column">
<input type="file" id="file" name="files[]" onchange="newFiles(this)"
multiple />
<div class="top">
<!-- Logo -->
<div id="logo">
<h1 id="title">InstaSquare</h1>
<p>An app to bulk square photos for Instagram</p>
<div id="download-wrapper">
<div id="login-loader">
<div class="loader"></div>
<p>Checking if you've logged in</p>
</div>
<div id="login-box" class="hide">
<p>
To upload to Drive, please login to your Google account.
<span id="login" onclick="handleAuthClick()">(Log In)</span>
</p>
</div>
<div id="drive-box" class="hide"></div>
</div>
</div>
<!-- Nav -->
<nav id="nav">
<ul>
<li class="active icon"
onclick="document.getElementById('file').click(); return false;">
<i class="fas fa-th"></i>Upload Images
</li>
<div id="download-options">
<li id="download-zip" class="icon" onclick="downloadZip()">
<i class="far fa-file-archive"></i>Download as Zip
</li>
<li id="gdrive-upload" class="icon">
<i class="fab fa-google-drive"></i> Upload to Google Drive
</li>
</div>
<!-- href="https://mail.google.com/mail/?view=cm&fs=1&to=pcjh@umich.edu&su=[InstaSquare] &body=Hello Patrick!" -->
<a class="mailtoui" href="mailto:pcjh@umich.edu" target="blank">
<li class="icon"><i class="fas fa-envelope"></i> Contact</li>
</a>
<a href="/privacy" target="blank">
<li class="icon"><i class="fa fa-user-secret"
aria-hidden="true"></i> Privacy Policy</li>
</a>
</ul>
</nav>
<div class="float-box" id="float-box">
<h3>Upload to:</h3>
<li id="root-folder" class="icon">
<i class="far fa-folder-open"></i>
<p>Home Folder</p>
</li>
<li id="insta-folder" class="icon">
<i class="far fa-folder-open"></i>
<p>"InstaSquare" Folder</p>
</li>
<li id="custom-folder" class="icon">
<i class="far fa-folder-open"></i>
<p>Custom Folder</p>
<input type="text" id="txtFolder" class="text-input disabled"
disabled />
</li>
<button id="btnClose" value="Close" class="button btnClose">
Cancel
</button>
</div>
</div>
<div class="bottom">
<!-- Social Icons -->
<div class="icons">
<a href="https://www.facebook.com/PatrickChongJinHua" class="icon">
<i class="fab fa-facebook"></i>
</a>
<a href="https://www.linkedin.com/in/patrickchongjinhua/"
class="icon">
<i class="fab fa-linkedin"></i>
</a>
<a href="https://github.com/patch153" class="icon">
<i class="fab fa-github-square"></i>
</a>
<a href="mailto:pcjh@umich.edu" class="icon">
<i class="fas fa-envelope-square"></i>
</a>
</div>
</div>
</div>
<div id="left-column-placeholder"></div>
<div id="right-column">
<div>
<div id="app">
<div id="img_placeholder" class="img_wrapper">
<div>
Pictures <br />
Appear <br />
Here!
</div>
</div>
</div>
</div>
<div id="contact">
<p>Created by: Patrick Chong Jin Hua</p>
<p>
If you have any suggestions for improvement, contact me <a
style="text-decoration: underline;"
href="https://patrickxchong.com/contact" target="_blank"
rel="noopener noreferrer">here</a>. :)
</p>
</div>
<div id="error-message" class="hidden"></div>
<div id="status-message" class="hidden"></div>
</div>
</div>
<script>
var IMAGE_COUNTER = 0
if (IMAGE_COUNTER <= 0) {
document.getElementById('download-options').style.display = 'none'
}
</script>
<script
src="https://cdn.jsdelivr.net/npm/mailtoui@1.0.2/dist/mailtoui-min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="https://apis.google.com/js/platform.js?onload=init" async
defer></script>
<script src="js/drive-upload.js"></script>
<script src="js/app.js"></script>
<script src="js/jszip.min.js"></script>
<script src="js/FileSaver.min.js"></script>
</body>
</html>