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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; |
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
alert('Hello World'); |
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
/* | |
* Copyright 2011 eBay Software Foundation | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
<!-- Clicking on this button will open the modal dialog --> | |
<button on="click:ebay-modal">Open</button> | |
<div id="ebay-modal" modal width="400" height="300" controls> | |
<!-- Modal markup goes here--> | |
</div> |
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
async function asyncFun () { | |
const value = await Promise | |
.resolve(1); | |
console.log(typeof value); // number | |
return value; | |
} | |
const value = asyncFun(); | |
console.log(typeof value); // object |
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 is not recommended --> | |
<my-carousel | |
data-config='{"controls": true, "index": 2, "autoplay": true, "labelNext": "next", "labelPrevious": "previous"}' | |
data-items='[{"title":"Item 1", ..}, {"title": "Item 2", ...}]'> | |
</my-carousel> |
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
<carousel index="2" controls aria-label-next="next" aria-label-previous="previous" autoplay> | |
<div>Markup for Item 1</div> | |
<div>Markup for Item 2</div> | |
... | |
</carousel> |
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
<dropdown list="options" index="0"> | |
<datalist id="options"> | |
<option value="--Select--"> | |
<option value="Option 1"> | |
<option value="Option 2"> | |
<option value="Option 3"> | |
<option value="Option 4"> | |
<option value="Option 5"> | |
</datalist> | |
</dropdown> |
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
<analytics> | |
<script type="application/json"> | |
{ | |
"requests": { | |
"pageview": "https://example.com/analytics?pid=", | |
"event": "https://example.com/analytics?eid=" | |
}, | |
"vars": { | |
"account": "ABC123" | |
}, |
OlderNewer