-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/pb-login-multiple-groups' of github.com:dalibor…
…is/tei-publisher-components into feature/pb-login-multiple-groups
- Loading branch information
Showing
19 changed files
with
542 additions
and
132 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" /> | ||
|
||
<title>pb-toggle-feature Demo</title> | ||
<link rel="stylesheet" href="demo.css"> | ||
<!--scripts--> | ||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js" defer></script> | ||
<script type="module" src="../node_modules/@polymer/iron-icons/iron-icons.js"></script> | ||
<script type="module" src="../node_modules/@polymer/paper-icon-button/paper-icon-button.js"></script> | ||
<script type="module" src="../src/docs/pb-demo-snippet.js"></script> | ||
<script type="module" src="../src/pb-page.js"></script> | ||
<script type="module" src="../src/pb-document.js"></script> | ||
<script type="module" src="../src/pb-popover.js"></script> | ||
<script type="module" src="../src/pb-highlight.js"></script> | ||
<script type="module" src="../src/pb-toggle-feature.js"></script> | ||
<script type="module" src="../src/pb-select-feature.js"></script> | ||
<script type="module" src="../src/pb-view.js"></script> | ||
<script type="module" src="../src/pb-load.js"></script> | ||
<script type="module" src="../src/pb-navigation.js"></script> | ||
<!--/scripts--> | ||
</head> | ||
|
||
<body> | ||
<pb-demo-snippet> | ||
<template> | ||
<style> | ||
.toolbar { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 10px; | ||
background-color: #E0E0E0; | ||
} | ||
h1.toggle { | ||
color:chocolate; | ||
} | ||
.switch:not(.toggle), .select:not(.toggle) { | ||
display: none; | ||
} | ||
</style> | ||
<pb-page endpoint="http://localhost:8080/exist/apps/tei-publisher" url-path="query" version="1.0"> | ||
<pb-document id="document2" path="test/cortes_to_dantiscus.xml" odd="dantiscus"></pb-document> | ||
<div class="toolbar"> | ||
<pb-toggle-feature name="mode" selector="main h1, .switch" | ||
default="off" global="">Toggle </pb-toggle-feature> | ||
<pb-select-feature name="select" label="Select" items='[ | ||
{"name": "Feature enabled", "selectors": [{"selector": ".select", "state": true, "global": true}]}, | ||
{"name": "Feature disabled", "selectors": [{"selector": ".select", "state": false, "global": true}]} | ||
]' | ||
></pb-select-feature> | ||
</div> | ||
<main> | ||
<p class="switch">Feature 1 is enabled by pb-toggle-feature!</p> | ||
<p class="select">Feature 2 is enabled by pb-select-feature!</p> | ||
<h1>Toggle features outside pb-view/pb-load</h1> | ||
<p>By specifying the "global" attribute, one can toggle features on any element | ||
selected by the selector below the surrounding pb-page. | ||
</p> | ||
</main> | ||
</pb-page> | ||
</template> | ||
</pb-demo-snippet> | ||
</body> | ||
|
||
</html> |
This file contains 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
This file contains 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
Oops, something went wrong.