Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
mirojones authored Feb 23, 2025
1 parent b6182b2 commit fe324c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const captchaCtx = document.getElementById("captcha-canvas").getContext("2d"),
captchaSlider = document.getElementById("captcha-slider"),
captchaSliderLabel = document.querySelector(".captcha-slider-label"),
captcha = document.querySelector(".captcha"),
content = document.getElementById(".content");
content = document.querySelector(".content");

var captchaFireX = 10,
failedAttempts = 0;
Expand Down Expand Up @@ -46,12 +46,4 @@ captchaSlider.addEventListener("change", () => {
captchaDraw();
}, 500);
}
});

if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (position) {
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
console.log(`current location: ${latitude}, ${longitude}`);
});
}
});
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ span.email b {
}

.captcha-canvas {
border: 1px solid silver;
border: 1px solid #c0c0c0;
width: 300px;
height: 150px;
border-radius: 5px;
Expand Down

0 comments on commit fe324c7

Please sign in to comment.