PHP
- 5 ответов
- 0 вопросов
2
Вклад в тег
php artisan migrate --path="/database/migrations"
function handleClickOnPhoto($photo){
$('.photo').removeClass('active-element');
$photo.addClass('active-element');
$('.point li').removeClass('active-point').
filter((index, item) => $photo.data('id') == $(item).data('id')).addClass('active-point');
$('.about-text p').text($photo.data('text'));
$('.about-site p').text($photo.data('info'));
$('.about-site a').text($photo.data('website')).attr("href", "#");
}
$('.photo').click(function(){
handleClickOnPhoto($(this));
});
$('.point li').click(function(){
$('.point li').removeClass('active-point');
$(this).addClass('active-point');
handleClickOnPhoto($(this));
});