Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added Inline JS support to ESlint #529

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"ignorePatterns": ["lib/*","tilt.jquery.js"],
"rules": {
"indent": [
"warn",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"warn",
"double"
],
"semi": [
"error",
"always"
]
}
}
12 changes: 12 additions & 0 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"doctype-first": true,
"tag-pair": true,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"attr-no-duplication": true,
"title-require": true
}
3 changes: 2 additions & 1 deletion DSA.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
<a class="dropdown-item" href="practicedsa.html">DSA Problems</a>

</div>
</li>
<li class="nav-item">
<a class="nav-link font-weight-bold nav-items" href="#footer">Contact</a>
</li>
Expand Down Expand Up @@ -163,7 +164,7 @@ <h5 class="font-weight-bold text-white mb-lg-4 pb-2 margin-top-mobile">Features<
<a class="text-white mb-lg-3" href="https://www.codechef.com/ide" target="_blank">Code Editor</a><br>
<a class="text-white mb-lg-3" href="https://www.geeksforgeeks.org/data-structure-gq/" target="_blank">Quizzes</a><br>
<a class="text-white mb-lg-3" href="https://github.com/Algo-Phantoms/Algo-Tree" target="_blank">DSA Guidance</a><br>
<a class="text-white mb-lg-3" href="https://dare2compete.com/" target="_blank">Opportunities<a><br>
<a class="text-white mb-lg-3" href="https://dare2compete.com/" target="_blank">Opportunities</a><br>
<a class="text-white mb-lg-3" href="https://www.geeksforgeeks.org/computer-science-projects/?ref=shm" target="_blank">Project Ideas</a><br>
<a class="text-white mb-lg-3" href="DSA.html" >RoadMap to your DSA</a><br>
<a class="text-white mb-lg-3" href="practicedsa.html" >DSA Problems</a><br>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ This project follows the [MIT License](https://choosealicense.com/licenses/mit/)
[![forthebadge](https://forthebadge.com/images/badges/uses-html.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/uses-css.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)

5 changes: 3 additions & 2 deletions booklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
</head>

<body>
!-- header starts -->
<!-- header starts -->
<section>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top nav-col top" id='nav'>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top nav-col top" id="nav">
<a class="navbar-brand" href="index.html"><img src="images/icon.png" alt="Algo Phantoms" width="50" height="50"><strong><span class="brand1">Algo</span>Phantoms</strong></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
Expand Down Expand Up @@ -70,6 +70,7 @@
<a class="dropdown-item" href="practicedsa.html">DSA Problems</a>
<a class="dropdown-item" href="#">Suggested Books</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link font-weight-bold nav-items" href="#footer">Contact</a>
<hr class="hr">
Expand Down
4 changes: 2 additions & 2 deletions ide.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
to Project</a>

<a class="dropdown-item" href="practicedsa.html">DSA Problems</a>

</div>
</li>
<li class="nav-item">
<a class="nav-link font-weight-bold nav-items" href="#footer">Contact</a>
</li>
Expand Down Expand Up @@ -182,7 +182,7 @@ <h5 class="font-weight-bold text-white mb-lg-4 pb-2 margin-top-mobile">Features<
<a class="text-white mb-lg-3" href="https://github.com/Algo-Phantoms/Algo-Tree"
target="_blank">DSA Guidance</a><br>
<a class="text-white mb-lg-3" href="https://dare2compete.com/"
target="_blank">Opportunities<a><br>
target="_blank">Opportunities</a><br>
<a class="text-white mb-lg-3"
href="https://www.geeksforgeeks.org/computer-science-projects/?ref=shm"
target="_blank">Project Ideas</a><br>
Expand Down
18 changes: 9 additions & 9 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ backToTopButton.addEventListener("click", () => {

$("#faqaccordion").on("hide.bs.collapse show.bs.collapse", e => {
$(e.target)
.prev()
.find("i:last-child")
.toggleClass("fa-minus fa-plus");
});
.prev()
.find("i:last-child")
.toggleClass("fa-minus fa-plus");
});

//close navbar when clicked on link
const navLinks = document.querySelectorAll('.nav-item')
const menuToggle = document.getElementById('navbarSupportedContent')
const bsCollapse = new bootstrap.Collapse(menuToggle)
const navLinks = document.querySelectorAll(".nav-item");
const menuToggle = document.getElementById("navbarSupportedContent");
const bsCollapse = new bootstrap.Collapse(menuToggle); // eslint-disable-line
subhangi2731 marked this conversation as resolved.
Show resolved Hide resolved
navLinks.forEach((l) => {
l.addEventListener('click', () => { bsCollapse.toggle() })
})
l.addEventListener("click", () => { bsCollapse.toggle(); });
});
2 changes: 1 addition & 1 deletion js/typing.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ function typingEffect(){
count = 0;
document.querySelector("#typed-text").innerHTML = "";
typingEffect();
},2000)
},2000);
}
}