Skip to content

Commit

Permalink
05-12-24 10:42
Browse files Browse the repository at this point in the history
  • Loading branch information
RyannKim327 committed May 12, 2024
1 parent b3874a8 commit 7bc36d5
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 43 deletions.
File renamed without changes.
File renamed without changes.
34 changes: 16 additions & 18 deletions Challenge 1/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="assets/styles.css" />
</head>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="styles.css">
</head>

<body>
<main>
<div id="slider">
<div id="img"></div>
<div id="points"></div>
</div>
</main>
</body>
<script src="./script.js"></script>

<body>
<main>
<div id="slider">
<div id="img"></div>
<div id="points"></div>
</div>
</main>
</body>
<script src="assets/script.js"></script>
</html>
File renamed without changes.
File renamed without changes.
18 changes: 8 additions & 10 deletions Challenge 2/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="assets/styles.css" />
<script differ src="assets/script.js"></script>
</head>

<head>
<link type="text/css" rel="stylesheet" href="styles.css">
<script differ src="script.js"></script>
</head>

<body>
<div id="sudoku"></div>
</body>

<body>
<div id="sudoku"></div>
</body>
</html>
29 changes: 14 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Web challenges for newbies</title>
<style>
*{
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main{
main {
display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -20,17 +20,17 @@
div {
border-radius: 0.25rem;
box-shadow: 3px 3px 10px #bebec0;
padding: .5rem;
margin: .5rem;
padding: 0.5rem;
margin: 0.5rem;
}
ul > li {
cursor: pointer;
list-style: none;
border-bottom: 2px transparent solid;
transition: ease .5s;
transition: ease 0.5s;
}
ul > li:nth-child(odd){
margin: .25rem 0;
ul > li:nth-child(odd) {
margin: 0.25rem 0;
}
ul > li:hover {
border-bottom: 2px black solid;
Expand All @@ -39,7 +39,6 @@
</head>
<body>
<main>
<!-- center div -->
<div>
<h3>Welcome to Challenges for newbies</h3>
<ul id="items">
Expand All @@ -52,15 +51,15 @@ <h3>Welcome to Challenges for newbies</h3>
</main>
</body>
<script>
const base = document.getElementById("items")
const child = base.children
for(let i = 0; i < child.length; i++){
const c = child[i]
const base = document.getElementById("items");
const child = base.children;
for (let i = 0; i < child.length; i++) {
const c = child[i];
c.addEventListener("click", () => {
if(c.textContent != ""){
location.href = `/Challenge ${i + 1}`
if (c.textContent != "") {
location.href = `/Challenge ${i + 1}`;
}
})
});
}
</script>
</html>

0 comments on commit 7bc36d5

Please sign in to comment.