Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
hackathon2019/main.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10 lines (10 sloc)
530 Bytes
This file contains 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
window.onload = function() { | |
bootstrap_alert = function() {} | |
bootstrap_alert.warning = function(message) { | |
$('#yikes').html('<div class="alert alert-primary alert-dismissible fade show"><a class="close"\ | |
data-dismiss="alert">×</a><span>'+message+'</span></div>') | |
} | |
$('#yeet').on('click', function() { | |
bootstrap_alert.warning('27% of males age 20-26 with this diagnosis experience more positive outcomes with a different medication. Use Amoxicillin instead? Click submit again to override this.'); | |
}); | |
} |