-
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.
Merge pull request #12 from JeelDobariya38/Dev
updated website with some more information and Api's
- Loading branch information
Showing
26 changed files
with
84 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
var typed = new Typed('#domains', { | ||
strings: [' ', 'Software Engineer.', 'Web Developer.', 'Student.'], | ||
strings: [' ', 'Software Engineer.', 'Web Developer.', 'Python Developer.', 'Learner.'], | ||
typeSpeed: 50, | ||
backspeed: 30, | ||
loop: true | ||
}); | ||
}) | ||
|
||
function promptnumber() | ||
{ | ||
alert("You Can Whatapp me on 7016958781") | ||
} | ||
}) |
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,45 @@ | ||
async function getLeetCodeStats(username) { | ||
const apiUrl = `https://leetcodestats.cyclic.app/${username}`; | ||
|
||
try { | ||
const response = await fetch(apiUrl); | ||
const data = await response.json(); | ||
|
||
if (data.status === 'success') { | ||
const rank = data.ranking; | ||
const problemsSolved = data.totalSolved; | ||
|
||
return { rank, problemsSolved }; | ||
} else { | ||
throw new Error('Failed to fetch data from LeetCode API.'); | ||
} | ||
} catch (error) { | ||
console.error('Error:', error.message); | ||
return null; | ||
} | ||
} | ||
|
||
// Replace 'Jeel_Dobariya' with your actual LeetCode username | ||
const leetCodeUsername = 'Jeel_Dobariya'; | ||
var rank = ""; | ||
var solved = ""; | ||
|
||
function updatecontent(rank) { | ||
document.querySelector("#rank").innerHTML = rank | ||
} | ||
|
||
// Call the function and log the result | ||
getLeetCodeStats(leetCodeUsername) | ||
.then((result) => { | ||
if (result) { | ||
rank =result.rank; | ||
solved = result.problemsSolved; | ||
console.log("rank: " + rank); | ||
console.log("question-solved: " + solved); | ||
updatecontent(rank); | ||
} | ||
}) | ||
.catch((error) => { | ||
console.error('Error:', error.message); | ||
}); | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.