A html/css material design action button to provide more options to a user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Helper function to provide Array's indexOf method to DOM elements | |
function indexOf(arr, target) { | |
return Array.prototype.indexOf.call(arr, target); | |
} | |
// Get the path of the target node from Root A | |
function getPath(root, target) { | |
let current = target; | |
let path = []; | |
while(current !== root) { |