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');
}
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active)
.histories-container
display: flex;
flex-wrap: wrap;
.event
width: 100%;
min-height: 1px;
flex: 0 0 8.333333333333332%;
max-width: 8.333333333333332%;
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',
});
});