Skip to content

Commit

Permalink
Remove unused JS
Browse files Browse the repository at this point in the history
  • Loading branch information
dnrce authored and jjcarstens committed May 11, 2022
1 parent 73c39cc commit 6bdf469
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 28 deletions.
14 changes: 0 additions & 14 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import '../css/app.scss'

import 'bootstrap'
import '@popperjs/core'
import $ from 'jquery'
import Josh from 'joshjs'

new Josh()

$(function () {
$('.custom-upload-input').on('change', function () {
let fileName = $(this).val().split('\\').pop()
$(this)
.siblings('.custom-upload-label')
.removeClass('not-selected')
.addClass('selected')
.html("Selected File: <div class='file-name'>" + fileName + '</div>')
})
})
13 changes: 1 addition & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"dependencies": {
"@popperjs/core": "^2.11.4",
"bootstrap": "^5.1.3",
"joshjs": "^1.0.7",
"jquery": "^3.6.0"
"joshjs": "^1.0.7"
},
"devDependencies": {
"@babel/core": "^7.14.8",
Expand Down

0 comments on commit 6bdf469

Please sign in to comment.