forked from Sulagna-Dutta-Roy/GGExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added code chef coding problem extension
- Loading branch information
1 parent
2062589
commit c3bee75
Showing
7 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
chrome.runtime.onInstalled.addListener(() => { | ||
console.log('CodeChef Coding Problem Navigator Extension Installed'); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "CodeChef Coding Problem Navigator", | ||
"description": "Navigate to CodeChef coding problems", | ||
"version": "1.0", | ||
"permissions": ["activeTab"], | ||
"action": { | ||
"default_popup": "popup.html", | ||
"default_icon": { | ||
"16": "icon.png", | ||
"48": "icon.png", | ||
"128": "icon.png" | ||
} | ||
}, | ||
"background": { | ||
"service_worker": "background.js" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>CodeChef Navigator</title> | ||
<link rel="stylesheet" href="typewriter.css"> | ||
</head> | ||
<body> | ||
<h1>Welcome to CodeChef Coding Problems</h1> | ||
<button id="navigate-button">Go to CodeChef</button> | ||
<script src="popup.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
document.getElementById('navigate-button').addEventListener('click', function() { | ||
chrome.tabs.create({ url: 'https://www.codechef.com/' }); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.typewriter h1 { | ||
overflow: hidden; | ||
border-right: .15em solid orange; | ||
white-space: nowrap; | ||
margin: 0 auto; | ||
letter-spacing: .15em; | ||
animation: | ||
typing 3.5s steps(40, end), | ||
blink-caret .75s step-end infinite; | ||
} | ||
|
||
@keyframes typing { | ||
from { width: 0 } | ||
to { width: 100% } | ||
} | ||
|
||
@keyframes blink-caret { | ||
from, to { border-color: transparent } | ||
50% { border-color: orange } | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Welcome to CodeChef</title> | ||
<link rel="stylesheet" href="typewriter.css"> | ||
<style> | ||
body { | ||
background: linear-gradient(45deg, yellow, orange); | ||
color: white; | ||
text-align: center; | ||
padding: 50px; | ||
} | ||
.typewriter h1 { | ||
overflow: hidden; | ||
border-right: .15em solid orange; | ||
white-space: nowrap; | ||
margin: 0 auto; | ||
letter-spacing: .15em; | ||
animation: | ||
typing 3.5s steps(40, end), | ||
blink-caret .75s step-end infinite; | ||
} | ||
|
||
@keyframes typing { | ||
from { width: 0 } | ||
to { width: 100% } | ||
} | ||
|
||
@keyframes blink-caret { | ||
from, to { border-color: transparent } | ||
50% { border-color: orange } | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="typewriter"> | ||
<h1>Welcome to CodeChef Coding Problems</h1> | ||
</div> | ||
<p>Enhance your coding skills with CodeChef's challenging problems!</p> | ||
<button onclick="navigateToCodeChef()">Start Coding</button> | ||
<script> | ||
function navigateToCodeChef() { | ||
window.location.href = "https://www.codechef.com/"; | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
document.addEventListener('DOMContentLoaded', function() { | ||
setTimeout(function() { | ||
window.location.href = 'https://www.codechef.com/'; | ||
}, 5000); // Redirect after 5 seconds | ||
}); | ||
|