You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
819 B

$(function () {
console.log('jquery loaded');
$.material.init();
$(".select ").dropdown({ "autoinit ": ".select " });
startCoinManagement();
startPeerManagement();
// Event Handlers
// $('.coinMgmtActionButton').click equivelant w/o jQuery
document.body.onclick = function (e) {
e = window.event ? event.srcElement : e.target;
if (e.className && e.className.indexOf('coinMgmtActionButton') != -1) {
deleteCoin(e.getAttribute('data-id'));
}
else if (e.className && e.className.indexOf('addPeerToFav') != -1) {
addPeerToFav(e.getAttribute('data-id'));
}
else if (e.className && e.className.indexOf('removePeerFromFav') != -1) {
removePeerFromFav(e.getAttribute('data-id'));
}
};
});