Tag: JavaScript
-
How to Integrate JavaScript Libraries in WordPress
JavaScript libraries can add cool animations or parallax effects to a traditional webpage in HTML, CSS and JavaScript. Here you can learn how to do the same thing in the WordPress editor.
-
Calculate Age
A JavaScript age calculator – when you need to know the exact age of a person. If you want to use the age calculator as a web app then use this URI. The code is based on this turotial from Tutorials Tonight.
-
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…
-
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…