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
<myCheckbox | |
sling:resourceType="granite/ui/components/foundation/form/checkbox" | |
jcr:primaryType="nt:unstructured" | |
text="My label" | |
fieldDescription="This will appear as helpful text on the info icon." | |
name="./myCheckbox" | |
value="{Boolean}true" | |
uncheckedValue="{Boolean}false" | |
defaultChecked="{Boolean}true" | |
/> |
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
accessible | |
adaptTo | |
analyzable | |
cellName | |
childEditConfig | |
class | |
componentGroup | |
container | |
declaredChildEditConfig | |
declaredEditConfig |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root | |
xmlns:sling="http://sling.apache.org/jcr/sling/1.0" | |
xmlns:cq="http://www.day.com/jcr/cq/1.0" | |
xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
xmlns:nt="http://www.jcp.org/jcr/nt/1.0" | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="cq/gui/components/authoring/dialog" | |
// Title of the dialog |
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
{ | |
"api": { | |
"CredentialUserData": { | |
"__compat": { | |
"mdn_url": "https://developer.mozilla.org/docs/Web/API/CredentialUserData", | |
"support": { | |
"chrome": { | |
"version_added": "60" | |
}, | |
"chrome_android": { |
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
/* Purple */ | |
#4b6bc6,#2f3e4e,#F0f0f0,#0081f8,#2F3E4E,#ffffff,#39da51,#ff6058 | |
/* DevLdn (Green) */ | |
#a0b530,#F8F8FA,#64711b,#FFFFFF,#FFFFFF,#000000,#334d2f,#FF8669 | |
/* DevLdn alt */ | |
#334d2f,#2c4a2d,#388038,#FFFFFF,#4a634b,#FFFFFF,#94E864,#78AF8F | |
/* A11y (yellow) */ |
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
// Download a PDF | |
var fileName = 'My file'; | |
var fileURL = 'http://localhost/my-file.pdf'; | |
// Non-IE | |
if (!window.ActiveXObject) { | |
var save = document.createElement('a'); | |
save.href = fileURL; | |
save.target = '_blank'; | |
save.download = fileName || 'unknown'; |
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
Show hidden characters
[ | |
{ "keys" : ["super+\\"], "command" : "toggle_side_bar" }, | |
{ "keys" : ["ctrl+alt+left"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys" : ["ctrl+alt+right"], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
{ "keys": ["super+up"], "command": "noop" }, | |
{ "keys": ["super+down"], "command": "noop" } | |
] |
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
// Really quick way to dump <img> tags and alt text into the console | |
// Useful for checking a11y | |
let imgs = document.getElementsByTagName('img'); | |
for(var i = 0; i < imgs.length; i++) { | |
console.log('--------------------------------\n', imgs[i], '\nAlt text: '+imgs[i].getAttribute('alt')+'\n'); | |
} |
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
.break-text { | |
white-space: pre-wrap; /* css-3 */ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
word-wrap: break-word; /* Internet Explorer 5.5+ */ | |
} |
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
<svg width="96" height="96"> | |
<image xlink:href="svg.svg" src="svg.png" width="96" height="96"/> | |
</svg> |
NewerOlder