-
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.
docs: adding content to the README.md file
- Loading branch information
Robiul H
committed
Apr 1, 2023
1 parent
4de69af
commit a185b36
Showing
2 changed files
with
42 additions
and
3 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 |
---|---|---|
@@ -1,2 +1,41 @@ | ||
# baby-query | ||
Baby Query is the custom implementation of the popular JavaScript library jQuery. | ||
# Baby Query | ||
|
||
Baby Query is a custom implementation of the popular JavaScript library jQuery. | ||
|
||
## Features | ||
|
||
- Simple and minimal: Just call the function with selector `$()` you are ready to do changes. | ||
|
||
- Chainable methods: `$("div").css("width","200px").text("Hello world")` | ||
|
||
- Better performance: Runs much faster and more efficiently. | ||
|
||
## Methods | ||
|
||
- Core: | ||
|
||
- `.ready()`: Specify a function to execute when the DOM is fully loaded. | ||
|
||
- CSS: | ||
|
||
- `.css()`: Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element. | ||
|
||
- Dom Manipulation: | ||
|
||
- `.after()`: Insert content, specified by the parameter, after each element in the set of matched elements. | ||
|
||
- `.append()`: Insert content, specified by the parameter, to the end of each element in the set of matched elements. | ||
|
||
- `.attr()`: Get the value of an attribute for the first element in the set of matched elements also, Set one or more attributes for the set of matched elements. | ||
|
||
- `.html()`: Get the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element. | ||
|
||
- `.text()`: Get the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements. | ||
|
||
- Events | ||
|
||
- `.on()`: Attach an event handler function for one or more events to the selected elements. | ||
|
||
- `.trigger()`: Execute all handlers and behaviors attached to the matched elements for the given event type. | ||
|
||
## Read the Documentation [here](robiulhr.github.io/baby-query/) |
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