mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 23:59:35 +05:30
(refactor): minor comment additions and space formatting
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
//---controls the bottom floating bar behaviour
|
//---controls the bottom floating bar behaviour
|
||||||
|
|
||||||
const floatingBar = document.getElementById("floating-bar");
|
const floatingBar = document.getElementById("floating-bar");
|
||||||
const searchBar = document.getElementById("searchbar");
|
const searchBar = document.getElementById("searchbar");
|
||||||
const shareBtn = document.getElementById("sharebutton");
|
const shareBtn = document.getElementById("sharebutton");
|
||||||
@@ -101,7 +102,6 @@ function perform_search(searchInput, searchDef, searchRes) {
|
|||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: { keyword: searchString },
|
data: { keyword: searchString },
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log(response);
|
|
||||||
if(response.results && response.results === "none") {
|
if(response.results && response.results === "none") {
|
||||||
inject_no_results(response, searchString);
|
inject_no_results(response, searchString);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
//---controls basic keyboard shotcuts
|
||||||
|
//basePath const is defined in floatingbar-config
|
||||||
|
|
||||||
let pressedKeys = {};
|
let pressedKeys = {};
|
||||||
|
|
||||||
document.addEventListener('keydown', function(event) {
|
document.addEventListener('keydown', function(event) {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//---controls the page preloader behaviour
|
//---controls the page preloader behaviour
|
||||||
|
|
||||||
window.addEventListener("load", function(){
|
window.addEventListener("load", function(){
|
||||||
$('#preloader').addClass('hidden');
|
$('#preloader').addClass('hidden');
|
||||||
});
|
});
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
//---controls page routing (url & links)
|
||||||
|
|
||||||
$host = $_SERVER['HTTP_HOST'];
|
$host = $_SERVER['HTTP_HOST'];
|
||||||
$uri = parse_url($_SERVER['REQUEST_URI'])['path'];
|
$uri = parse_url($_SERVER['REQUEST_URI'])['path'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user