1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-19 22:53:03 +05:30

(refactor): minor comment additions and space formatting

This commit is contained in:
2023-11-20 22:28:44 +05:30
parent 38088a39e3
commit f7f30d34f3
4 changed files with 7 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
//---controls the bottom floating bar behaviour
const floatingBar = document.getElementById("floating-bar");
const searchBar = document.getElementById("searchbar");
const shareBtn = document.getElementById("sharebutton");
@@ -101,7 +102,6 @@ function perform_search(searchInput, searchDef, searchRes) {
dataType: 'json',
data: { keyword: searchString },
success: function(response) {
console.log(response);
if(response.results && response.results === "none") {
inject_no_results(response, searchString);
}

View File

@@ -1,3 +1,6 @@
//---controls basic keyboard shotcuts
//basePath const is defined in floatingbar-config
let pressedKeys = {};
document.addEventListener('keydown', function(event) {

View File

@@ -1,4 +1,5 @@
//---controls the page preloader behaviour
window.addEventListener("load", function(){
$('#preloader').addClass('hidden');
});