Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarkov authored Jun 3, 2018
1 parent 317c62b commit 0947e07
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions index.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.22/webcomponents-lite.js"></script>
<script type="text/javascript" src="source/smart.element.js"></script>
<script>
Smart('smart-test', class TestElement extends Smart.BaseElement {
// properties.
static get properties() {
return {
'content': {
type: 'string'
}
};
}

/** Element's template. */
template() {
return '<div inner-h-t-m-l=\'[[content]]\'></div>';
}

ready() {
super.ready();
}

propertyChangedHandler(propertyName, oldValue, newValue) {
super.propertyChangedHandler(propertyName, oldValue, newValue);
}
});
</script>
<style>
.smart-container {
box-sizing: border-box;
font-family: inherit;
font-size: inherit;
display: block;
width: 100%;
height: 100%;
outline: none;
margin: 0;
padding: 0;
}

.smart-container * {
box-sizing: border-box;
}
smart-test {
background: #ddd;
color: #333;
display: inline-block;
border-radius: 5px;
border: 1px solid #aaa;
width: 100px;
text-align: center;
}
</style>
</head>
<body>
<smart-test content="Test Element"></smart-test>
</body>
</html>

0 comments on commit 0947e07

Please sign in to comment.