everything that happens here is nice and not crimes
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Alexandra Catalina
read-thing
Commits
8e5c2212
Commit
8e5c2212
authored
Jan 30, 2021
by
Alexandra Catalina
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js: fix selectors
parent
d1e1aa71
Pipeline
#389
passed with stages
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
public/js/app.js
public/js/app.js
+4
-4
No files found.
public/js/app.js
View file @
8e5c2212
...
...
@@ -17,12 +17,11 @@
// <http://www.gnu.org/licenses/>.
(
function
(){
var
submit
=
document
.
getElementById
(
'
submit
'
);
const
submit
=
document
.
querySelector
(
'
input[type=
submit
]
'
);
if
(
!
submit
)
return
;
submit
.
disabled
=
true
;
var
maxSize
=
document
.
getElementsByClassName
(
'
max-size
'
);
const
maxSize
=
document
.
querySelector
(
'
.
max-size
'
);
function
checkSize
(
e
)
{
console
.
log
(
e
.
target
.
files
);
...
...
@@ -34,7 +33,8 @@
maxSize
[
0
].
classList
.
add
(
'
error
'
);
}
}
var
filepicker
=
document
.
getElementById
(
'
file
'
);
const
filepicker
=
document
.
querySelector
(
'
input[type=file]
'
);
if
(
filepicker
)
{
filepicker
.
addEventListener
(
'
change
'
,
checkSize
,
false
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment