mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 11:43:16 +02:00
🎨 Cleaning and improvements
This commit is contained in:
@@ -115,7 +115,7 @@ function realTimeDisplay() {
|
||||
suggestions.innerHTML = ""
|
||||
if (!results.data.length) {
|
||||
hideSuggestions()
|
||||
} else {
|
||||
} else if (document.activeElement === searchBar) {
|
||||
showSuggestions()
|
||||
}
|
||||
results.data.forEach(elem => {
|
||||
|
||||
@@ -8,9 +8,6 @@ require_once("conf.php");
|
||||
class dump {
|
||||
private these $these;
|
||||
|
||||
/**
|
||||
* @param these $these
|
||||
*/
|
||||
public function __construct(these $these) {
|
||||
$this->these = $these;
|
||||
}
|
||||
@@ -51,16 +48,14 @@ class dump {
|
||||
$pdo_obj = new conf();
|
||||
$pdo = $pdo_obj->getPDO();
|
||||
|
||||
$stmt = $pdo->prepare("SELECT author FROM theses WHERE author LIKE :author_name LIMIT 10;");
|
||||
$stmt = $pdo->prepare("SELECT DISTINCT author FROM theses WHERE author LIKE :author_name LIMIT 10;");
|
||||
$stmt->bindParam(':author_name', $author_name, PDO::PARAM_STR, 100);
|
||||
$stmt->execute();
|
||||
|
||||
$i = 0;
|
||||
while ($obj = $stmt->fetchObject()) {
|
||||
foreach ($obj as $elem) {
|
||||
array_push($array, $elem);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
return $array;
|
||||
|
||||
@@ -143,6 +143,7 @@ header {
|
||||
}
|
||||
|
||||
#hamburger {
|
||||
user-select: none;
|
||||
fill: white;
|
||||
min-width: 30px;
|
||||
min-height: 30px;
|
||||
|
||||
Reference in New Issue
Block a user