Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal jQuery

A minimal implementation of jQuery in TypeScript.

A learning exercise with a limited feature set, and support only for modern browsers. Tested only in Chrome (v92).

Implements:

  • $() (element collection selector)
  • .ready()
  • $.each() (operates over element collection in args)
  • :eq() Selector
  • .on()
  • .click()
  • .hover()
  • .append()
  • .html()
  • .css()
  • .attr()
  • .addClass()
  • .removeClass()
  • .width()

Uses code borrowed from a popular image slider written by André Cortellini to test the implementation.

Compiling

Install TypeScript (npm i -g typescript) and run tsc to compile. Open ./demo/index.html to check it works.

About

A minimal implementation of jQuery in TypeScript.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages