This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
class MySelectElement extends HTMLElement { | |
constructor() { | |
super(); | |
const observer = new MutationObserver((records) => { | |
for (let record of records) { | |
this.addItem(record.addedNodes); | |
this.removeItem(record.removedNodes); | |
} | |
}); |
import hify from './create-element'; | |
import React from 'react'; | |
import { render } from 'react-dom'; | |
const h = hify(React.createElement.bind(React)); | |
class Test extends HTMLElement { | |
static observedAttributes = ['attr'] | |
attributeChangedCallback (name, oldValue, newValue) { | |
this.innerHTML = `Hello, ${this.getAttribute('attr')}!`; |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
import scalaz.{ @@, Tag } | |
import org.apache.commons.lang.StringEscapeUtils | |
import org.joda.time.DateTime | |
import play.api.libs.json._ | |
trait DomRenderable | |
def RenderableString(s: String): String @@ DomRenderable = Tag[String, DomRenderable](s) |
'use strict'; | |
class NameCard extends HTMLElement { | |
set name(val) { | |
this._name = val; | |
this.render(); | |
} | |
get name() { | |
return this._name; |
(function () { | |
expose('createMyComponent', register, factory); | |
/** | |
* Exposes your new component to the window or to a module | |
* | |
* @param {string} name - the factory name to expose | |
* @param {function} definition - the definition of your web component. registers to the document | |
* @param {function} factory - method for programmatically creating web component | |
*/ |
/** | |
* ================== angular-ios9-uiwebview.patch.js v1.1.1 ================== | |
* | |
* This patch works around iOS9 UIWebView regression that causes infinite digest | |
* errors in Angular. | |
* | |
* The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular | |
* have the workaround baked in. | |
* | |
* To apply this patch load/bundle this file with your application and add a |