adambard / adambard/learnxinyminutes-site
How about anchor navigation in code ?
Abierto
- Lenguaje dominante
- Python
- Estrellas
- 57
- Forks
- 67
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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;
});
});
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.