Módulo: complementos

plugins.js que es

Fuente:
plugins.js que es

Métodos


<interno> complemento (nombre, init)

El método para registrar un complemento video.js. ); $( &quot;.tutorial-section pre, .readme-section pre, pre.prettyprint.source&quot; ).each( function () { var $this = $( this ); var example = $this.find( &quot;code&quot; ) ;textoejemplo = ejemplo.html(); var lang = /{@lang (.*?)}/.exec(textoejemplo); if (lang && lang[1] ) { ejemploTexto = ejemploTexto.reemplazar( idioma[0], &quot;&quot; ); ejemplo.html( textoejemplo ); idioma = idioma[1]; } else { var langClassMatch = ejemplo.parent()[0].className.match(/lang\-(\S+)/); lang = langClassMatch ? langClassMatch[1]: &quot;javascript&quot;; } if ( lang ) { $this .addClass( &quot;sunlight-highlight-&quot; + lang ) .addClass( &quot;linenums&quot; ) .html( ejemplo.html() ); } } ); Sunlight.highlightAll( { lineNumbers : false, showMenu : true, enableDoclinks : true } ); $.catchAnchorLinks({navbarOffset: 10}); $( &quot;#toc&quot; ).toc( { nombre del ancla : función ( i, encabezado, prefijo ) { return $( encabezado ).attr( &quot;id&quot; ) || (prefijo + i ); }, selectores : &quot;#toc- content h1,#toc-content h2,#toc-content h3,#toc-content h4&quot;, showAndHide : false, smoothScrolling: true } ); $( &quot;#intervalo principal[id^=&#39;toc&#39;]&quot; ).addClass( &quot;toc-shim&quot; ); $( &#39;.dropdown-toggle&#39; ).dropdown(); $( &quot;tabla&quot; ).each( función () { var $esto = $( esto ); $esto.addClass(&#39;tabla&#39;); } ); });