@teipublisher/pb-components
Version:
Collection of webcomponents underlying TEI Publisher
35 lines (30 loc) • 1.66 kB
HTML
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"/>
<title>pb-clipboard Demo</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oswald">
<link rel="Stylesheet" href="demo.css">
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
</head>
<body>
<pb-demo-snippet>
<template>
<style type="text/css">
pb-page {
position: relative;
}
pb-clipboard {
margin-bottom: 20px;
}
</style>
<pb-page locales="../i18n/{{ns}}/{{lng}}.json" endpoint="https://teipublisher.com/exist/apps/tei-publisher" api-version="1.0.0">
<pb-clipboard data-i18n="[label]clipboard.copy">John Doe: "The miracles of foobar", Paradise Publishers, Little Village, Stardate 46254.7</pb-clipboard>
<pb-clipboard data-i18n="[label]clipboard.copy">Coffey, Frank. The Complete Idiot's Guide to Elvis. Alpha Books, 1997. eBooks on EBSCOhost.11 May 2000.</pb-clipboard>
<label for="test-clipboard"><pb-i18n key="clipboard.paste"></pb-i18n></label>
<input type="text" name="test-clipboard" value="" size="60">
</pb-page>
</template>
</pb-demo-snippet>
</body>
</html>