I chose front-end development because you see the result of my work and know how it works inside. Having studied a little information has become more interesting and I want to know more and more. There is still a huge amount of information to be studied, but I really want to do my best and will be an excellent specialist.
funSlSh(document.querySelectorAll("#slt_blc")[0], 1);
function funSlSh(container, AllImgCount, imgsURL)
{
var timerID = null,
containerImg = container.children[1],
buttonLeft = container.children[2],
buttonRight = container.children[3],
containerImgLeft = -400,
containerImgStyle = containerImg.style,
numVisImg = 1,
activeButton;
var animationComplete = true;
var _imgHtml = '';
for (var i = 1; i < 8; ++i) {
_imgHtml += '<img src="img/for_slt_'+i+'.jpg" class="image-'+i+'" >\r\n';
}
document.querySelector('#slt_blc #ssh').innerHTML = _imgHtml;
var sliderBlock = document.querySelector('#slt_blc');
var imagesBlockContainer = sliderBlock.querySelector('#ssh');
imagesBlockContainer.style.width = '280px';
imagesBlockContainer.style.height = '210px';
imagesBlockContainer.style.margin = '35% auto 0';
// получим все картинки
var images = imagesBlockContainer.querySelectorAll('img');
// пройдемся по всем картинкам и проставим зиндекс=20, (все-таки 30!!! исправила, еще думать!!!)
//так же попутно определим первый и предыдущий слайд, наверно и след тоже не помешает
images.forEach(function(e, i){
e.style.position = 'absolute';
e.style.zIndex = 20;
if( images.length == i+1 ){
e.classList.add('previous');
e.style.zIndex = 21;
}
if( i == 0 ){
e.classList.add('current');
e.style.zIndex = 30;
}
});
...
}
A2. I read various articles and watch videos in order to improve my English. I took lessons from a tutor and use BBC Learning English.