Commit efa150ca authored by Luca Silly's avatar Luca Silly
Browse files

page recherche début

parent 9da21fff
Pipeline #21276 failed with stages
in 30 seconds
......@@ -33,8 +33,6 @@
<span id="test">t</span>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<script src="test.js"></script>
<script defer src=""></script>
<script src=""></script>
<title>CUI Portfolio</title>
<div class="header-right">
<img src="images/profil.png" alt="profil" id="profil_user">
<div id="chercher">
<input type="text" placeholder="Cherchez un projet..." id="search">
<button type="submit" class="searchButton" id="submit" onclick="rechercher()">
<i class= "fas fa-search" ></i>
<div class="header-left">
<img src="images/logo.png" alt="logo" id="logo">
<div id="logo_couleur">
<p id="title">Portfolio CUI</p>
<div id="projet">bonjour</div>
\ No newline at end of file
......@@ -17,13 +17,19 @@ function rechercher(){
var motRecherche = document.getElementById("search").value;
axios.get('', { params: { motClef : motRecherche } })
.then(response => {
var listeTitresProjets = "";
for(var i=0; i<;i++){
/*var listeTitresProjets = "";
for(var i = 0; i <; i++){
listeTitresProjets = listeTitresProjets +[i].titre_projet;
if (i <
listeTitresProjets = listeTitresProjets + ", ";
document.getElementById("test").innerHTML= listeTitresProjets;
document.getElementById("test").innerHTML= listeTitresProjets;*/
.catch(error => {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment