Skip to content

Instantly share code, notes, and snippets.

@gabrielschulhof
Created July 23, 2015 18:04
Show Gist options
  • Save gabrielschulhof/9338eaa4e64640dd3fdd to your computer and use it in GitHub Desktop.
Save gabrielschulhof/9338eaa4e64640dd3fdd to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>RequireJS template</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../css/themes/default/jquery.mobile.css"/>
<script src="../external/requirejs/require.js"></script>
<script src="../js/requirejs.config.js"></script>
<script>
requirejs.config( { baseUrl: "../js" } );
require( [ "widgets/popup" ], function() {
$( function() {
$( "#the-popup" ).popup();
$( "#open-the-popup" ).on( "click", function() {
$( "#the-popup" ).popup( "open" );
} );
} );
} );
</script>
</head>
<body>
<a id="open-the-popup" href="#">Open</a>
<div id="the-popup" data-history="false">
<p>This is a popup</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment