Skip to content

Instantly share code, notes, and snippets.

View nickatnight's full-sized avatar

Nick nickatnight

View GitHub Profile
@nickatnight
nickatnight / con.js
Last active December 28, 2015 23:19
function getInput(e){
// only run if the user presses the enter key
if(e.keyCode == 13){
// validate input
var userIn = document.getElementById("userInput").value;
var soul = document.getElementById("sel");
var vally = soul.options[soul.selectedIndex].value;