Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ariele Luciano Sgheiza
Portfolio CUI
Commits
fa1db47d
Commit
fa1db47d
authored
Dec 05, 2020
by
Luca Silly
Browse files
recherche avancement css
parent
6f60b327
Pipeline
#21293
failed with stages
in 31 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
images/noresult.png
0 → 100644
View file @
fa1db47d
12.2 KB
index.html
View file @
fa1db47d
...
...
@@ -4,7 +4,6 @@
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"index.css"
>
<link
rel=
"stylesheet"
href=
"recherche.css"
>
<script
src=
"test.js"
></script>
<script
defer
src=
"https://use.fontawesome.com/releases/v5.14.0/js/all.js"
></script>
<script
src=
"https://unpkg.com/axios/dist/axios.min.js"
></script>
...
...
@@ -32,7 +31,7 @@
</div>
</header>
<img
src=
"images/noresult.png"
alt=
"noresult"
class=
"noresult"
>
</body>
</html>
\ No newline at end of file
recherche.css
View file @
fa1db47d
#projet
{
#projet
s
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
justify-content
:
space-around
;
}
.recherche
{
flex-basis
:
auto
;
height
:
200px
;
width
:
200px
;
background
:
rgb
(
31
,
216
,
6
);
height
:
190px
;
width
:
190px
;
background
:
#d80669
ff
;
margin-left
:
20px
;
margin-top
:
10px
;
border
:
3px
solid
#d80669
ff
;
}
.noresult
{
height
:
150px
;
width
:
190px
;
}
.searchResultButton
{
flex-basis
:
auto
;
.nomProjet
{
text-align
:
center
;
color
:
white
;
font-family
:
Arial
,
Helvetica
,
sans-serif
;
font-size
:
large
;
font-weight
:
bolder
;
}
.recherche
:hover
{
height
:
200px
;
margin-top
:
13px
;
margin-bottom
:
13px
;
margin-right
:
13px
;
width
:
200px
;
cursor
:
pointer
;
}
\ No newline at end of file
recherche.html
View file @
fa1db47d
...
...
@@ -4,6 +4,7 @@
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"index.css"
>
<link
rel=
"stylesheet"
href=
"recherche.css"
>
<script
src=
"test.js"
></script>
<script
defer
src=
"https://use.fontawesome.com/releases/v5.14.0/js/all.js"
></script>
<script
src=
"https://unpkg.com/axios/dist/axios.min.js"
></script>
...
...
@@ -34,7 +35,7 @@
<script>
rechercher
(
localStorage
.
recherche
)
</script>
<div
id=
"
div1
"
></div>
<div
id=
"
projets
"
></div>
</body>
...
...
test.js
View file @
fa1db47d
...
...
@@ -23,7 +23,7 @@ function chargerPageProjet(idProjet){
function
addRechercheResultat
(
nomProjet
,
idProjet
)
{
document
.
getElementById
(
'
div1
'
).
innerHTML
+=
"
<div class='recherche'
>
"
+
nom
Projet
+
"
<button type='submit' class='searchResultButton' onclick='chargerPage
Projet
(
"
+
id
Projet
+
"
)'>
</div>
"
;
document
.
getElementById
(
'
projets
'
).
innerHTML
+=
"
<div class='recherche'
onclick='chargerPageProjet(
"
+
id
Projet
+
"
)'>
"
+
"
<img src='images/noresult.png' alt='noresult' class='noresult'>
"
+
"
<p class='nom
Projet
'>nom
Projet
</p>
"
+
"
</div>
"
;
//changer adElement() par la méthode qui permettra de charger la page d'un projet
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment