(Página substituída por ' ==TESTE ==') |
(→TESTE) |
||
Linha 1: | Linha 1: | ||
+ | .ol{counter-reset:item;padding-left:10px;}LI{display:block}LI:before{content:counters(item,".") " ";counter-increment:item} | ||
+ | |||
+ | $wgResourceModules['ext.Example.styles'] = array( | ||
+ | 'position' => 'top', | ||
+ | 'styles' => array( | ||
+ | {{ | ||
+ | var $doc = $('html, body'); | ||
+ | $('a').click(function() { | ||
+ | $doc.animate({ | ||
+ | scrollTop: $( $.attr(this, 'href') ).offset().top | ||
+ | }, 500); | ||
+ | return false; | ||
+ | }); | ||
+ | }} | ||
==TESTE == | ==TESTE == | ||
+ | |||
+ | <ol> | ||
+ | <li>one</li> | ||
+ | <li>two | ||
+ | <ol> | ||
+ | <li class="toclevel-2 tocsection-2"><span class="tocnumber">12.5.1</span>two.one</li> | ||
+ | <li>two.two</li> | ||
+ | <li>two.three</li> | ||
+ | </ol> | ||
+ | </li> | ||
+ | <li>three | ||
+ | <ol> | ||
+ | <li>three.one</li> | ||
+ | <li>three.two | ||
+ | <ol> | ||
+ | <li>three.two.one</li> | ||
+ | |||
+ | ---- |
.ol{counter-reset:item;padding-left:10px;}LI{display:block}LI:before{content:counters(item,".") " ";counter-increment:item}
$wgResourceModules['ext.Example.styles'] = array( 'position' => 'top', 'styles' => array( {{ var $doc = $('html, body'); $('a').click(function() {
$doc.animate({ scrollTop: $( $.attr(this, 'href') ).offset().top }, 500); return false;
}); }}