Skip to content

Commit

Permalink
Refatoração
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Rodrigues committed Apr 30, 2017
1 parent 1e6b8f6 commit 74dccb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/js/gainTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ function makeA(a) {
a.addEventListener("click", function(e) {
var d = a.href.split("/");
var file = d[d.length - 1];
file.split("#");
var f = d[d.length - 1];
if (f[1] != undefined) {
f = file.split("#")[1];

if (f != undefined) {
e.preventDefault();
f = f.replace(/\#/g,"");
var target = document.getElementById(f);
Expand Down

0 comments on commit 74dccb1

Please sign in to comment.