Created
March 4, 2017 16:07
-
-
Save 7fe/f71d33c6153faa41c79f64f53a55fe1f to your computer and use it in GitHub Desktop.
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
<!doctype html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
<meta name="viewport" content="width=device-width;"></head> | |
<a href="javascript:location.reload()">reload</a> | |
<ul id=playlist> | |
<li>Call To Arms</li> | |
</ul> | |
<script src=https://code.jquery.com/jquery-3.1.1.js></script> | |
<script> | |
$("#playlist li").append('<a class=del href="#del" onclick="del(this);return false">X</a>') | |
function del(a){ | |
if (window.confirm("Delete?")) { | |
$(a).parent().remove(); | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment