Split app.js into individual scripts
parent
304c0d4ba6
commit
42564e085c
@ -0,0 +1,15 @@
|
||||
// Friendly captcha
|
||||
import { WidgetInstance } from 'friendly-challenge';
|
||||
const $ = require('jquery');
|
||||
|
||||
function doneCallback(solution) {
|
||||
$('#registration_form_captcha_solution').val(solution);
|
||||
}
|
||||
|
||||
const element = document.querySelector('#captcha');
|
||||
const options = {
|
||||
doneCallback: doneCallback,
|
||||
sitekey: 'FCMVL79DP1G5K1K0',
|
||||
}
|
||||
const widget = new WidgetInstance(element, options);
|
||||
widget.start()
|
@ -0,0 +1,5 @@
|
||||
const $ = require('jquery');
|
||||
|
||||
$( ".custom-file-input" ).change(function() {
|
||||
$(".custom-file-label").html(($(".custom-file-input").prop("files")[0]["name"]));
|
||||
});
|
Loading…
Reference in New Issue