CSS hyphenation polyfill-Hyfenópoly. js
| Autor: | mnater |
|---|---|
| Views Total: | 1,014 |
| Sitio oficial: | Ir a la web |
| Actualizado: | November 12, 2018 |
| Licencia: | MIT |
Vista prévia
Descripción
Hyphenopoly. js es un polyfill de JavaScript para aquellos exploradores/agentes de usuario que no son compatibles con el CSS separación de sílabas .
Admite varios idiomas y es fácil de implementar.
Example use:
Descargue e importe el Hyphenopoly. js en el documento.
<script src="Hyphenopoly_Loader.js"></script>
Cree una nueva instancia y config el Hyphenopoly.
var Hyphenopoly = {
require: {
"la": "honorificabilitudinitas",
"de": "Silbentrennungsalgorithmus",
"en-us": "Supercalifragilisticexpialidocious"
},
setup: {
classnames: {
"container": {}
}
}
}; <div class="container"> <p lang="la">Qua de causa Helvetii quoque reliquos Gallos virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, cum aut suis finibus eos prohibent aut ipsi in eorum finibus bellum gerunt.</p> <p lang="en-us">For which reason the Helvetii also surpass the rest of the Gauls in valor, as they contend with the Germans in almost daily battles, when they either repel them from their own territories, or themselves wage war on their frontiers.</p> <p lang="de">Aus diesem Grund übertreffen auch die Helvetier die übrigen Gallier an Tapferkeit, weil sie sich in fast täglichen Gefechten mit den Germanen messen, wobei sie diese entweder von ihrem Gebiet fernhalten oder selbst in deren Gebiet kämpfen.</p> </div>
Registro de cambios
11/12/2018
- v2.6.0





