Skip to content

Instantly share code, notes, and snippets.

@ggoodman
Forked from ggoodman/index.html
Last active October 1, 2015 14:17
Show Gist options
  • Save ggoodman/2006604 to your computer and use it in GitHub Desktop.
Save ggoodman/2006604 to your computer and use it in GitHub Desktop.
Basic jQuery + jQuery UI
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><!-- Title here --></title>
<link data-require="jqueryui" data-semver="1.10.0" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/css/smoothness/jquery-ui-1.10.0.custom.min.css" />
<link rel="stylesheet" href="style.css" />
<script data-require="jquery" data-semver="2.0.1" src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script data-require="jqueryui" data-semver="1.10.0" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/jquery-ui.js"></script>
<script src="script.js"></script>
</head>
<body>
<h1>jQuery + jQuery UI Template</h1>
<p>Click the button; I dare you.</p>
<p>
<button id="clickme">Click me</button>
</p>
<!-- Put your html here! -->
</body>
</html>
// Add your javascript here
$(function(){
$("button").button().click(function(e){
alert("Anticlimactic result.");
});
});
/* Put your css in here */
h1 {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment