adambard / adambard/learnxinyminutes-site
How about anchor navigation in code ?
Aperta
- Lingua principale
- Python
- Stelle
- 57
- Fork
- 67
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I suggest something like:
``` javascript
$(function() {
if (location.hash.indexOf('code-') == 0) {
$(document).scrollTop($(location.hash).offset().top);
}
$(".highlight > span").each(function(i) {
this.id = "code-"+i;
}).click(function() {
location.hash = this.id;
});
});
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.