docs/source/_static/presentations/js/reveal.js
/**
	 * Creates an HTML element and returns a reference to it.
	 * If the element already exists the existing instance will
	 * be returned.
	 */
Creates an HTML element and returns a reference to it.
If the element already exists the existing instance will
be returned.
Creates an HTML element and returns a reference to it . If the element already exists the existing instance will be returned .
function createSingletonNode( container, tagname, classname, innerHTML ) {
		var node = container.querySelector( '.' + classname );
		if( !node ) {
			node = document.createElement( tagname );
			node.classList.add( classname );
			if( innerHTML !== null ) {
				node.innerHTML = innerHTML;
			}
			container.appendChild( node );
		}
		return node;
	}
function createSingletonNode ( container , tagname , classname , innerHTML ) { var node = container . querySelector ( '.' + classname ) ; if ( ! node ) { node = document . createElement ( tagname ) ; node . classList . add ( classname ) ; if ( innerHTML !== null ) { node . innerHTML = innerHTML ; } container . appendChild ( node ) ; } return node ; }
Creates an HTML element and returns a reference to it.
Creates an HTML element and returns a reference to it .