const config = JSON.parse('ваш json');
const ind = config.regions.indexOf('frankfurt');
console.log(config.regions[ind]);
$('[name="awesomeness"]').on('change', function(){
console.log($(this).next('label').text());
});
class ModalSignInSms {
constructor() {
this.$modalBtnSend = $('.js-btn');
}
async sendModal(e) {
e.preventDefault();
console.log('form sent')
// something happening
}
}
class SendReview extends ModalSignInSms {
constructor(el) {
super();
this.$modalBtnSend.on('click', async (e) => {
await this.sendModal(e);
await this.sendReview();
});
}
async sendReview() {
console.log('review sent');
}
}
alias: {
jquery: require.resolve('jquery'),
},
resolve: {
modulesDirectories: ['node_modules'],
extensions: ['.js', ''],
alias: {
jquery: require.resolve('jquery'),
},
},
import 'paroller.js';
$(document).ready(() => {
$('.js-box').paroller({
factor: 0.5,
factorXs: 0.2,
type: 'foreground',
direction: 'horizontal',
});
});
dist
..images/
..js/
index.html
./images/name_page
либо ../images/