Skip to content

Instantly share code, notes, and snippets.

@vorporeal
Created October 7, 2015 20:53
Show Gist options
  • Save vorporeal/0775e57edf0a5eb991b4 to your computer and use it in GitHub Desktop.
Save vorporeal/0775e57edf0a5eb991b4 to your computer and use it in GitHub Desktop.
<html>
<head>
<base href="//polygit.org/polymer+v1.1.3/components/">
<link href="polymer/polymer.html" rel="import">
<link href="paper-dialog/paper-dialog.html" rel="import">
<script>
function openDialog() {
document.getElementById('dialog').open();
}
</script>
</head>
<body>
<paper-dialog id="dialog" with-backdrop>
<div>Some content.</div>
</paper-dialog>
<button onclick="openDialog()">Open dialog!</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment