Category: Jquery
-
How to use jQuery in a Page or Post
In order to use jQuery you must get the library. Here we’ll use a CDN. You can import the jQuery CDN in a custom HTML block, like this: That’s it. Now you can use jQuery. Just for the Hell of it, let’s try and create a button that will hide/show all <p> tags. Select the…
-
Jquery first fiddle
Here is a very, very short Jquery introduction on Jsfiddle. After a while the document ready function becomes boring. However there is a shorthand version: $(function() { // … your code … });
-
The image registration point
On at JavaScript canvas the registration point is the top left corner. So in hit detection you have to calculate the x-position, the image width and height. In layout you should be able to figure out where to plage the images, and illustrations. Y = “up / down” X = “left / right” ( I…