Created
July 23, 2015 18:04
-
-
Save gabrielschulhof/9338eaa4e64640dd3fdd 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
<!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