-
-
Save funkytaco/6614616 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
<html> | |
<head> | |
<title>photobooth</title> | |
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row-fluid"> | |
<span>Step 1</span> | |
<img src='http://placehold.it/125x125&text=lomo' onClick='setFilter("lomo")'> | |
<img src='http://placehold.it/125x125&text=vintage' onClick='setFilter("vintage")'> | |
<img src='http://placehold.it/125x125&text=nashville' onClick='setFilter("nashville")'> | |
<img src='http://placehold.it/125x125&text=kelvin' onClick='setFilter("kelvin")'> | |
<img src='http://placehold.it/125x125&text=gotham' onClick='setFilter("gotham")'> | |
</div> | |
<div class="row"> | |
<input id="filter" type="hidden" value="lomo"> | |
</div> | |
</div> | |
</body> | |
<script src="http://code.jquery.com/jquery.js"></script> | |
<script src="bootstrap/js/bootstrap.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
function setFilter(name){ | |
var filter = $('#filter'); | |
filter.val(name); | |
alert(filter.val()); | |
} | |
window.setFilter = setFilter; | |
}); | |
</script> | |
<html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment