Skip to content

Javascript to get state machine and return Class, ID and others to element.

Notifications You must be signed in to change notification settings

Nutn0n/Javascript-Force-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Javascript-Force-touch

Javascript to get state machine and return Class, ID and others to element.

THIS IS THE DEMO OF CHANGING CLASS ON HTML ELEMENT YOU CAN USE YOUR OWN VARIABLES TO MAKE CHANGE

THE FORCE SENSOR RECIVED BY : var button = document.querySelector(".force-get"); AND THEN RETURN CHANGE TO : var forcetouch = document.querySelector(".force-push");

TO MAKE CHANGE TO JAVASCRIPT ACTIVITIES : EDIT ON callbacks: { .. }

SOMETHING LIKE THIS : onforcemousedown: function() { .. }

YOU CAN GO TO JAVASCRIPT DOM REFERENCE TO SEE WHAT YOU CAN DO
HERE IS IT : http://www.w3schools.com/js/js_htmldom_events.asp

SORRY, I HAVEN'T MAKE THE JQUERY VERSION YET. BUT, EVENT LISTENER WORK THE SAME WAY :)

                          - BY NUTN0N - WWW.NUTN0N.COM 

About

Javascript to get state machine and return Class, ID and others to element.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published