02/01/2022

10 Jours de JavaScript - HackerRank (3/3)

Day 8: Create a Button (02.01.2022)

Dans css/button.css, on a:

#btn {
    width: 96px;
    height: 48px;
    font-size: 24px;
}

Dans js/button.js, on a:

var btn = document.createElement("button");
btn.id = "btn";
btn.innerHTML = 0;
document.body.appendChild(btn);

btn.onclick = function() {
    var nbr = Number(this.innerHTML);
    nbr += 1;
    this.innerHTML = nbr.toString();
    document.body.appendChild(this);
    
}

Dans index.html, on a:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" href="css/button.css" type="text/css">
        <title>Button</title>
    </head>
    <body>
        
        <script src="js/button.js" type="text/javascript"></script>
    </body>
</html>

01/01/2022

2022: a new year of hope

Dear fellows,  

2021 has ended. Today is the first day of 2022. I wish a happy new year to everybody. A new year means new hopes in the future. May this year brings good health, good opportunities and good luck. 

Personnally, 2021 was an unconventional year. I started it at Casablanca (Morocco) and finished it at Bohicon (Benin). I hope 2022 will be a better one. 

During this year, I will blog more often on software engineering, books and the "what's happening" in the Java world. Also I will be present/active on Twitter and LinkedIn.

Here are the first six songs I've listened today:

  1. Capable God (Judikay, 2019, Nigeria) [Link]
  2. More than Gold (Judikay ft Mercy Chinwo, 2019, Nigeria) [Link]
  3. Nigerian Praise (Agatha Moses, 2004, Nigeria) [Link]
  4. Yissé Non (Anna Teko, Benin) [Link]
  5. A toi la gloire (Yvan Pour Yesue, 2020, Benin) [Link]
  6. Il est bon de louer Dieu (Dorcas Kaja) [Link]

Let's hope and believe in the next 365 days.

See you !