Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions Shaik Ayaz/Meduim-1/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
function addTask() {
const taskInput = document.getElementById('new-task');
const taskText = taskInput.value.trim();

if (taskText) {
const taskList = document.getElementById('task-list');
const li = document.createElement('li');

const span = document.createElement('span');
span.textContent = taskText;
li.appendChild(span);

const buttons = document.createElement('div');
buttons.classList.add('task-buttons');

const completeButton = document.createElement('button');
completeButton.textContent = 'Complete';
completeButton.classList.add('complete');
completeButton.onclick = () => completeTask(li);
buttons.appendChild(completeButton);

const editButton = document.createElement('button');
editButton.textContent = 'Edit';
editButton.onclick = () => editTask(li);
buttons.appendChild(editButton);

const deleteButton = document.createElement('button');
deleteButton.textContent = 'Delete';
deleteButton.classList.add('delete');
deleteButton.onclick = () => deleteTask(li);
buttons.appendChild(deleteButton);

li.appendChild(buttons);
taskList.appendChild(li);

taskInput.value = '';
taskInput.focus();
}
}

function completeTask(taskItem) {
taskItem.classList.toggle('completed');
}

function editTask(taskItem) {
const taskText = taskItem.querySelector('span').textContent;
const newTaskText = prompt('Edit your task:', taskText);
if (newTaskText !== null && newTaskText.trim()) {
taskItem.querySelector('span').textContent = newTaskText.trim();
}
}

function deleteTask(taskItem) {
taskItem.remove();
}
21 changes: 21 additions & 0 deletions Shaik Ayaz/Meduim-1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>To-Do List</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="todo-container">
<h1>To-Do List</h1>
<div class="input-container">
<input type="text" id="new-task" placeholder="Add a new task...">
<button onclick="addTask()">Add</button>
</div>
<ul id="task-list"></ul>
</div>
<script src="app.js"></script>
<footer>&copy;make by ayaz shaik</footer>
</body>
</html>
122 changes: 122 additions & 0 deletions Shaik Ayaz/Meduim-1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
flex-direction:column;
background-color: #eee;
}

.todo-container {
background: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
width: 300px;
text-align: center;
}

.input-container {
display: flex;
margin-bottom: 20px;
}

input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
input:hover{
color:#fff;
background-color: black;
border:1px solid #fff;
}
button {
padding: 10px;
border: none;
background-color:yellow;
border:2px solid black;
color: black;
cursor: pointer;
border-radius: 5px;
margin-left: 10px;
}

button:hover {
background-color: black;
color:yellow;
border:yellow 2px solid;
}

ul {
list-style: none;
padding: 0;
}

li {
background: #f9f9f9;
margin: 5px 0;
padding: 10px;
border-radius: 3px;
display: flex;
justify-content: space-between;
align-items: center;
}

li.completed {
text-decoration: line-through;
color: #999;
}

.task-buttons {
display: flex;
gap: 5px;
}

.task-buttons button {
background: #007bff;
border: none;
color: #fff;
padding: 5px;
border-radius: 5px;
cursor: pointer;
border: 2px solid black;
}

.task-buttons button:hover{
color:#007bff;
border:2px solid #007bff;
background-color: black;
}

footer{
margin-top:20px;
}

.task-buttons button.delete {
background: #dc3545;
border-radius: 5px;
border: 2px solid black;
}

.task-buttons button.delete:hover {
background: black;
color:#dc3545;
border:2px solid #dc3545;
}

.task-buttons button.complete {
background: #28a745;
border-radius: 5px;
border: 2px solid black;
}

.task-buttons button.complete:hover{
color: #28a745;
background-color:black;
border: 2px solid #28a745;

}
41 changes: 41 additions & 0 deletions Shaik Ayaz/task 2 calculater/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>task 2 Calculater</title>
<link href="style.css" rel="stylesheet">
</head>
<body>

<h1>Task 2 | CSEdge</h1>
<div class="Container">
<div class="input">
<input type="text" id="text-val" class="screen">
<button class="clear" onclick="del()">Delete</button>
</div>

<div class="btn">
<button onclick="display('7')">7</button>
<button onclick="display('8')">8</button>
<button onclick="display('9')">9</button>
<button onclick="display('+')">+</button>
<button onclick="display('4')">4</button>
<button onclick="display('5')">5</button>
<button onclick="display('6')">6</button>
<button onclick="display('-')">-</button>
<button onclick="display('1')">1</button>
<button onclick="display('2')">2</button>
<button onclick="display('3')">3</button>
<button onclick="display('*')">*</button>
<button onclick="display('/')">/</button>
<button onclick="display('0')">0</button>
<button onclick="display('.')">.</button>
<button onclick="Calculate('=')">=</button>
</div>

</div>

<script src="java.js"></script>
</body>
</html>
12 changes: 12 additions & 0 deletions Shaik Ayaz/task 2 calculater/java.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function display(val) {
document.getElementById('text-val').value = document.getElementById('text-val').value + val;
}
function del() {
document.getElementById('text-val').value = "";
}

function Calculate() {
let x = document.getElementById('text-val').value;
let y = eval(x);
document.getElementById('text-val').value = y;
}
75 changes: 75 additions & 0 deletions Shaik Ayaz/task 2 calculater/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
body {
display: flex;
margin: 0;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
background-color:black;
color:white;

}

.Container {
border: 2px solid white;
margin: 20px 15px;
padding: 10px;
background-color:gray;
border-radius:10px;
}

#text-val {
height: 60px;
width: 240px;
font-size: 20px;
padding-right: 10px;
border-radius:10px;
background-color:powderblue;
border: 2px solid black;
}

.input {
display: flex;
flex-direction:row;
margin: 0px 0px 5px 0px;

}

.clear {

font-size: 15px;
margin: 0px 0px 0px 5px;
color: black;
padding:8px;
cursor: pointer;
border-radius:10px;
background-color:gary;
border: 2px solid black;
}

.btn {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
}

.btn button {
text-align: center;
margin: 1px;
height: 50px;
font-size: 20px;
cursor: pointer;
color:red;
font-size:28px;
border-radius:10px;
border: 1px solid black;
}

.btn button:hover {
color: black;
background-color: red;
}

.clear:hover {
color: white;
background-color: black;
}
28 changes: 28 additions & 0 deletions Shaik Ayaz/task 3 quiz web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz Web App</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="app">
<div id="quiz-container">
<div id="question-container">
<h2 id="question"></h2>
<div id="options"></div>
<div id="feedback"></div>
<div id="timer">Time remaining: <span id="time">30</span> seconds</div>
</div>
<button id="next-btn" onclick="nextQuestion()">Next</button>
</div>
<div id="result-container" style="display: none;">
<h2>Your Score: <span id="score"></span></h2>
<button onclick="startQuiz()">Restart Quiz</button>
</div>
</div>
<script src="index.js"></script>
<footer>make by &copy; ayaz shaik </footer>
</body>
</html>
Loading