Línea 186: |
Línea 186: |
| }; | | }; |
| })(jQuery); | | })(jQuery); |
− | /*
| |
− | $('#dynamicFont').flowtype({
| |
− | minimum : 200,
| |
− | maximum : 1900,
| |
− | minFont : 10,
| |
− | maxFont : 60,
| |
− | fontRatio : 30
| |
− | });
| |
− | */
| |
− | $('#dynamicFont').splitLines({
| |
− | tag: '<span class="dynamicFontLine">',
| |
− | width: 600,
| |
− | keepHtml: true
| |
− | });
| |
| | | |
− | $('#dynamicFont1').splitLines({ | + | var originalHTML = $('#dynamicFont').html(); |
− | tag: '<span class="dynamicFontLine">', | + | resultHTML = originalHTML |
− | width: 600,
| + | .replace(/<p>/g, '<div class="dynamicFontParagraph">') |
− | keepHtml: true | + | .replace(/<\/p>/g, '</div>'); |
− | }); | + | $('#dynamicFont').html(resultHTML); |
| + | |
| + | |
| + | $('.dynamicFontParagraph').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph1').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph2').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph3').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph4').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph5').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph6').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph7').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph8').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | $('#dynamicFontParagraph9').splitLines({ tag: '<span class="dynamicFontLine">', width: 600, keepHtml: true}); |
| + | |
| | | |
− | $('#dynamicFont2').splitLines({
| |
− | tag: '<span class="dynamicFontLine">',
| |
− | width: 600,
| |
− | keepHtml: true
| |
− | });
| |
| | | |
− | $('#dynamicFont3').splitLines({
| |
− | tag: '<span class="dynamicFontLine">',
| |
− | width: 600,
| |
− | keepHtml: true
| |
− | });
| |
| | | |
| var wordsLength = 0; | | var wordsLength = 0; |