Category: JavaScript
-
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…
-
WordPress: wrap columns so that the right one gets on top on mobile devices
Normally WP will wrap the columns after a manner where the right one goes to the bottom om mobile devices. Here is a recipe: Add a class to your column block In additional classes add your class. In this case I added: petjReverse as my class. style.css Then add the this to your style.css: Save…
-
Adobe Animate and the OpenWeatherMap API
Part One: Adobe Animate and API Do you want to fetch data from an API and use the data in your Adobe Animate CC creative work? Animate CC productions are made by JavaScript and HTML canvas. In theory getting data should work. Let’s try! OpenWeatherMap The data from OpenWeatherMap is only available when you have…