All Projects → ineventapp → Musjs

ineventapp / Musjs

Licence: mit
🐁 Mouse tracking javascript library - Follow me on Twitter @mauriciogior

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Projects that are alternatives of or similar to Musjs

Iroha Javascript
JavaScript library for Iroha, a Distributed Ledger Technology (blockchain) platform.
Stars: ✭ 77 (-29.36%)
Mutual labels:  javascript-library
Gdrivesync.js
Javascript wrapper library for Google Drive API v3
Stars: ✭ 94 (-13.76%)
Mutual labels:  javascript-library
Selection
✨ Selection - A simple and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies. Full mobile and scroll support.
Stars: ✭ 1,371 (+1157.8%)
Mutual labels:  javascript-library
Aws S3
S3Client - A Javascript Library for AWS S3 File Upload
Stars: ✭ 79 (-27.52%)
Mutual labels:  javascript-library
Password Leak
A library to check for compromised passwords
Stars: ✭ 92 (-15.6%)
Mutual labels:  javascript-library
Easy Scroll
A lightweight native javascript library to perform smooth scrolling with animation
Stars: ✭ 96 (-11.93%)
Mutual labels:  javascript-library
Tag Handler
Tag Handler is a jQuery plugin used for managing tag-type metadata.
Stars: ✭ 76 (-30.28%)
Mutual labels:  javascript-library
Reimg
reimg - A javascript library for converting image formats
Stars: ✭ 106 (-2.75%)
Mutual labels:  javascript-library
Accordion
Accordion module created in pure javascript & CSS. Very useful to create FAQ lists on your website.
Stars: ✭ 94 (-13.76%)
Mutual labels:  javascript-library
Nodeppt
This is probably the best web presentation tool so far!
Stars: ✭ 9,589 (+8697.25%)
Mutual labels:  javascript-library
Jquery Mosaic
A jQuery plugin to build responsive mosaics of images or any other content fitted to match heights in multiple rows while maintaining aspect ratios. http://jquery-mosaic.tin.cat
Stars: ✭ 80 (-26.61%)
Mutual labels:  javascript-library
Zifi
zifi - Make Stories everywhere using React 😍
Stars: ✭ 87 (-20.18%)
Mutual labels:  javascript-library
Capivarajs
✌️ Um novo jeito de criar componentes híbridos.
Stars: ✭ 97 (-11.01%)
Mutual labels:  javascript-library
Ditherjs
A javascript library which dithers an <img> using a fixed palette
Stars: ✭ 76 (-30.28%)
Mutual labels:  javascript-library
Consolemock
A tool for testing console logs
Stars: ✭ 103 (-5.5%)
Mutual labels:  javascript-library
Easygrid
EasyGrid - VanillaJS Responsive Grid
Stars: ✭ 77 (-29.36%)
Mutual labels:  javascript-library
Date Picker
Duet Date Picker is an open source version of Duet Design System’s accessible date picker. Try live example at https://duetds.github.io/date-picker/
Stars: ✭ 1,325 (+1115.6%)
Mutual labels:  javascript-library
Anime
JavaScript animation engine
Stars: ✭ 41,064 (+37573.39%)
Mutual labels:  javascript-library
Stanchion
Add priorities to your web app's network requests
Stars: ✭ 103 (-5.5%)
Mutual labels:  javascript-library
Mobilebone
Single Page Switching bone(include page manage, events manage) for mobile web APP, Hybrid APP, Phonegap, PPT, Single-Screen PC page...
Stars: ✭ 1,357 (+1144.95%)
Mutual labels:  javascript-library

GitHub license Coverage

mus.js

A simple mouse tracking library to provide insights on how your users are handling your layout / user experience.

This library was created so you don't need an external service to "record" your users mouse events and "play" them in a later moment.

mus works with any AMD you wish and its setup is extremely simple - 5.6kb

Recording

// Instantiate a mus object
var mus = new Mus();

// Start recording
mus.record();

// After a while, stops
setTimeout(function() {
  mus.stop();
}, 5000);

Playing

// Sets playback speed (optional, default NORMAL)
mus.setPlaybackSpeed(mus.speed.SLOW);

// Starts playing and enjoy
mus.play();

Example

Public methods

Controls

record()

Starts a recording session for current screen. If there is already a session recorded, it appends to it.

stop()

Stops a recording or a playback.

play(onfinish)

Plays current recording session.

pause()

Pauses current playback.

release()

Releases all data recorded or set.

Getters and setters

getData()

Returns all data collected during recording.

setData(data)

Sets custom data for playback. It must be a JSON object collected from getData.

setFrames(frames)

Same as setData, but allows only to set the frames array.

setWindowSize(width, height)

During recording, all data collected contains window dimensions as well, so if your recorded data comes from a different window dimension, mus automatically adapts to current window size. This function allows you to set a custom playback window size if you decide to use setFrames instead of setData (that already sets windows dimensions).

setPlaybackSpeed(speed)

Allows playback to be faster or slower. Default constants: mus.speed.SLOW (35), mus.speed.NORMAL (15), mus.speed.FAST (5) You may decide to use custom values as you wish.

setTimePoint(bool)

Records time elapsed for each point for a precise data recording. Default: disabled

isRecording()

Informs if mus is currently recording something.

isPlaying()

Informs if mus is currently playing something.

isTimePoint()

Informs if mus is recording time for each data point.

Roadmap

  • Detect touch movements and clicks;
  • Get form inputs;
  • Allows real clicks during setup (default false);
  • Suggestions are greatly appreciated!

Version history

v1.1.0

  • Added time point recording for precise data;

v1.0.1

  • Added minified file for distribution;

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].