https://www.gettyimages.com/detail/illustration/abstract-painting-star-shape-background-royalty-free-illustration/1039187370
https://www.gettyimages.com/detail/illustration/frosty-morning-in-the-village-royalty-free-illustration/471949925
| ////////////////////// | |
| // QUERIES | |
| ////////////////////// | |
| const Query = (function() { | |
| const receiptsWithCounts = { | |
| name: 'receiptsWithCounts', | |
| query: `{"query":"query | |
| receiptsWithCounts($startDate: String!, $endDate: String!, $documentType: String!, $documentSubType: String!) { | |
| receiptsWithCounts(startDate: $startDate, endDate: $endDate, documentType: $documentType, documentSubType: $documentSubType) { | |
| receipts { |
| // Run in devtools at https://www.bcliquorstores.com/ | |
| await (async function randomBeerSelector() { | |
| const searchBCL = (category) => | |
| fetch(`https://www.bcliquorstores.com/ajax/browse?category=${category}&sort=name.raw:asc&size=10000`) | |
| .then(resp => resp.json()) | |
| .then(json => json.hits.hits.map(hit => hit._source)); | |
| const getInventoryAtSFU = (sku) => | |
| fetch(`https://www.bcliquorstores.com/stores/search?format=json&lat=49.277892&lng=-122.909896&rad=1&sku=${sku}`) |
| https://gist.githubusercontent.com/dlh3/de843ea6346290d4056af2dda70c596b/raw/4f9c5b81ff423a341862c90f9945622efe7f0a6f/Game%2520Tree |
A use-class for passing and accessing request attributes between HTL script and resource includes.
Traditionally, additional parameters couldn't be passed to script (data-sly-include) or resource (data-sly-resource) includes in HTL.
In 6.3, AEM introduced the ability to add requestAttributes, provided by a use-class.
This implementation combines the setting of requestAttributes (with a specified prefix, or default "default_") with a map-interface for retrieving any request attributes.
| <div id="errors" style=" | |
| background: #c00; | |
| color: #fff; | |
| display: none; | |
| margin: -20px -20px 20px; | |
| padding: 20px; | |
| white-space: pre-wrap; | |
| "></div> | |
| <div id="root"></div> | |
| <script> |
| javascript: /* Are we on the starred segments page? If not, redirect to there. */ if (document.location.href.replace(document.location.search, "") != "https://www.strava.com/athlete/segments/starred") { document.location = "https://www.strava.com/athlete/segments/starred"; }; function toSeconds(timestamp) { return timestamp.length == 1 ? timestamp[0].replace('s', '') : parseInt(timestamp[0]) * 60 + parseInt(timestamp[1]); }; var jq = document.createElement('script'); jq.src = '//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'; document.getElementsByTagName('head')[0].appendChild(jq); jq.onload = () => {/* Have we already processed the segments? */ if (window.Strava.segmentsProcessed) { return 0; }; window.Strava.segmentsProcessed = 0; $('.starred-segments tbody tr').each((i, e) => { window.Strava.segmentsProcessed++; var $row = $(e), $name = $row.children('td:nth-child(3)'), men = toSeconds($row.children('td:nth-child(8)').text().split(':')), me = toSeconds($row.children('td:nth-child(10)').text(). |
| <?xml version="1.0"?> | |
| <bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml"> | |
| <binding id="mycode"> | |
| <implementation> | |
| <constructor> | |
| alert("XBL script executed.\n" + document.cookie); | |
| </constructor> | |
| </implementation> | |
| </binding> |
| <PUBLIC:COMPONENT TAGNAME="xss"> | |
| <PUBLIC:ATTACH EVENT="ondocumentready" ONEVENT="main()" LITERALCONTENT="false"/> | |
| </PUBLIC:COMPONENT> | |
| <SCRIPT> | |
| function main() | |
| { | |
| alert("HTC script executed.\n" + document.cookie); | |
| } | |
| </SCRIPT> |
As an AEM Administrative User, I wish to use a dialog to define the options for a select in a different dialog.
The MultiFieldPanel widget, provided by ACS-Commons (since 1.5.0) is used to configure the options. Fields should be text, value, and qtip; value is required.