Skip to content

Commit

Permalink
Merge pull request avinash201199#221 from avinash201199/revert-209-Ha…
Browse files Browse the repository at this point in the history
…rine_Hacktoberfest2022

Revert "Harine hacktoberfest2022"
  • Loading branch information
avinash201199 authored Oct 12, 2022
2 parents 36ee0cc + 291858f commit fc83beb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 45 deletions.
33 changes: 0 additions & 33 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,8 @@ header {
margin-bottom: 5vh;
}

.headerDiv {
width: 100%;
}

.headerDiv .headingText {
text-align: center;
}

header h1 {
font-weight: 800;
margin-top: 20px;
}

header,
Expand Down Expand Up @@ -340,30 +331,6 @@ form button:hover {
color: white;
}

.infoIcon {
position: relative;
display: inline-block;
}

.infoIcon .infoToolTip {
visibility: hidden;
width: 200px;
background-color: white;
color: black;
text-align: center;
padding: 5px 0;
border-radius: 6px;
position: absolute;
z-index: 1;
border: 1px solid black;
margin-left: 10px;
font-style: italic;
}

.infoIcon:hover .infoToolTip {
visibility: visible;
}

.trash-btn:hover {
background: rgb(225, 111, 111);
}
Expand Down
4 changes: 2 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function addTodo(e) {
todoDiv.appendChild(trashButton);
//Create info button
const infoButton = document.createElement("span");
infoButton.innerHTML = `<i class="fas fa-info-circle infoIcon"><span class="infoToolTip">`+`${infoText}`+`</span></i>`;
infoButton.innerHTML = `<i class="fas fa-info-circle"></i>`;
infoButton.classList.add("edit-btn");
todoDiv.appendChild(infoButton);

Expand Down Expand Up @@ -408,7 +408,7 @@ function getTodos() {
if (!todo.infoText)
todo.infoText = "Create time not found.";
const infoButton = document.createElement("span");
infoButton.innerHTML = `<i class="fas fa-info-circle infoIcon"><span class="infoToolTip">`+`${todo.infoText}`+`</span></i>`;
infoButton.innerHTML = `<i class="fas fa-info-circle"></i>`;
infoButton.classList.add("edit-btn");
todoDiv.appendChild(infoButton);
infoButton.addEventListener("click", () => {
Expand Down
19 changes: 9 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">


<link rel="stylesheet" href="assets/css/style.css" />


<body>
<header>
<div class="row headerDiv">
<div class="col-md-1">
<img src="./assets/images/logo.png" alt="logo" style="width: 100px;">
</div>
<div class="col-md-10 headingText">
<h1>To-Do List</h1>
</div>
</div>


</head>

<body>
<header>
<div class="header"><b><h1>To-Do List</h1></b></div>
</header>
<div class="modal red" id="Modal">
<div class="content" id="content">
Expand Down

0 comments on commit fc83beb

Please sign in to comment.