From 54b7b0d118968d4ecd40afff4571aeb17f4de1f2 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sat, 20 Nov 2021 15:45:01 -0500 Subject: [PATCH] Update for 20-11-21 15:45 --- lang/Javascript.wiki | 4 +++- lang/Node.js.wiki | 6 ++++++ lang/jQuery.wiki | 13 +++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lang/jQuery.wiki diff --git a/lang/Javascript.wiki b/lang/Javascript.wiki index 9f1f4e6..4c90e65 100644 --- a/lang/Javascript.wiki +++ b/lang/Javascript.wiki @@ -3,12 +3,14 @@ Javascript is probably the most popular language in existance. It is an interpreted, typeless language -== Backend == +== Backend, frameworks, and more == See [[Node.js.wiki]] for the core runtime of backend js (node) See [[../tech/express.js.wiki]] +See [[jQuery]] + == Logging == To log several objects as a single command, run diff --git a/lang/Node.js.wiki b/lang/Node.js.wiki index 78c13c3..c205193 100644 --- a/lang/Node.js.wiki +++ b/lang/Node.js.wiki @@ -13,6 +13,12 @@ is `node`. console.log("hello world") }}} +== Modules Available == + +All modules are included by using the `require('MODULE')` syntax + +| + == Events == Events are times when certain things happen. We can do things on those events diff --git a/lang/jQuery.wiki b/lang/jQuery.wiki new file mode 100644 index 0000000..8b8fc70 --- /dev/null +++ b/lang/jQuery.wiki @@ -0,0 +1,13 @@ += jQuery = + +jQuery is the most popular and powerful javascript library around. To include +it, just include it via a script tag. + +== Access elements in the DOM == + +To access something with the a class, ie the first element in the page with the +class 'food', this code would suffice + +{{{ +$('.food').first() + }}}