Random JavaScript Snippets

Tobi Obeck
Xpressionist
Published in
1 min readMar 24, 2018

This is kind of an test article to try out different ways of embedding scripts.

Simple REST Web API example (plain JS)

A simple example that uses a xhttp requests and a callback function to display an image on a web page.

Caption 1

Trolling Window jumping around

Open this in jsfiddle for full trolling effect!!

Caption 2

Vibrator api (only works on mobile devices)

Did you know there is a browser API for device vibration…

Change Color on Hover (Vue.js)

Simple Vue.js Example that changes color on hovering.

--

--

Tobi Obeck
Xpressionist

Web developer with affinity to cross platform app development (especially Flutter). Interests in design, UI/UX and any interactive media.