profile-photo

Maksim
Navumovich

About myself

My name is Maksim. I'm 15 years old. I'm from Belarus, but now I live in Poland. I want to improve yourself and became a nice coder. That's why I'm here.

Skills

Code example

                    
const ACTIVE_COLOR = "#6F6F6F";
const INACTIVE_COLOR = "#CDCDCD";
const SLIDESHOW_TIME = 5000;
let activeImageIndex = 0;
let shouldPauseAnimation = false;

function setColorForButton(imageIndex, color) {
  document.getElementById("button" + imageIndex).style.background = color;
}

function disableAllButtons() {
  for (let imageIndex of [0, 1, 2]) {
    setColorForButton(imageIndex, INACTIVE_COLOR);
     }
}

function selectImage(imageIndex) {
  // Updating image src
  let newSrcForImage = "img/bicycle-" + imageIndex + ".png";
  document.getElementById("myImage").src = newSrcForImage;

  // Updating buttons
  disableAllButtons();
  setColorForButton(imageIndex, ACTIVE_COLOR);

  activeImageIndex = imageIndex;
                    
                

Work-experience

Nothing yet

Education

Languages