Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
P
pima2018_25
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de conteneurs
Registre de modèles
Opération
Environnements
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Clément VEYSSIÈRE
pima2018_25
Validations
bbfb63f0
Valider
bbfb63f0
rédigé
Il y a 6 ans
par
Kevin XU
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Suggestions directement cliquable pour accéder aux profils et Ajouts de CSS
parent
d7bab8f1
Branches
upgradeSearchField
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
page_profile/profil.php
+3
-0
3 ajouts, 0 suppression
page_profile/profil.php
page_welcome/css/style.css
+61
-0
61 ajouts, 0 suppression
page_welcome/css/style.css
page_welcome/index.php
+22
-15
22 ajouts, 15 suppressions
page_welcome/index.php
avec
86 ajouts
et
15 suppressions
page_profile/profil.php
+
3
−
0
Voir le fichier @
bbfb63f0
...
...
@@ -7,6 +7,9 @@ if (isset($_POST['username'])) {
elseif
(
isset
(
$_POST
[
'id'
]))
{
$id
=
$_POST
[
'id'
];
}
elseif
(
isset
(
$_GET
[
'username'
]))
{
$id
=
getUserId
(
$_GET
[
'username'
]);
}
else
{
echo
(
'ERREUR'
);
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
page_welcome/css/style.css
+
61
−
0
Voir le fichier @
bbfb63f0
...
...
@@ -268,6 +268,7 @@ button.submit:hover {
.bg1
,
.bg2
{
min-height
:
50vw
;
height
:
700px
;
}
/*-- text Slider --*/
...
...
@@ -1434,4 +1435,64 @@ input.img:checked + label {
}
/* AJOUT DE KEVIN : PAGE ACCUEIL */
#suggestionButtons
{
width
:
400px
;
margin
:
auto
;
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-start
;
flex-direction
:
column
;
}
.suggestionButton
{
width
:
400px
;
text-align
:
left
;
height
:
60px
;
position
:
relative
;
background-color
:
white
;
border
:
none
;
font-size
:
20px
;
color
:
black
;
-webkit-transition-duration
:
0.4s
;
/* Safari */
transition-duration
:
0.4s
;
text-decoration
:
none
;
overflow
:
hidden
;
cursor
:
pointer
;
}
.suggestionButton
:after
{
content
:
""
;
background
:
grey
;
display
:
block
;
position
:
absolute
;
padding-top
:
300%
;
padding-left
:
350%
;
margin-left
:
-20px
!important
;
margin-top
:
-120%
;
opacity
:
0
;
transition
:
all
0.8s
}
.suggestionButton
:active:after
{
padding
:
0
;
margin
:
0
;
opacity
:
1
;
transition
:
0s
}
.suggestionButton
:hover
{
background-color
:
#DCDCDC
}
/* -- //Responsive code -- */
\ No newline at end of file
Ce diff est replié.
Cliquez pour l'agrandir.
page_welcome/index.php
+
22
−
15
Voir le fichier @
bbfb63f0
...
...
@@ -4,6 +4,7 @@ session_start();
?>
<script>
// function for suggestions of the research
function
showSuggestions
(){
var
field
=
document
.
getElementById
(
"
searchField
"
);
var
keyword
=
field
.
value
;
...
...
@@ -29,7 +30,11 @@ session_start();
//console.log(tab[0].username);
for
(
var
i
=
0
;
i
<
tab
.
length
;
i
++
)
{
options
+=
'
<button id="monBtn" style="width: 266px; text-align: left;"><img src="
'
+
tab
[
i
].
profile_image
+
'
" alt="icone" style="vertical-align:middle; position:relative; width:50px; height: 50px;" /><span style="margin-left:10px;">
'
+
tab
[
i
].
username
+
'
</span></button><br/>
'
;
options
+=
'
<button id="userSuggesBtn" class="suggestionButton" onclick="window.location.href=
\'
../page_profile/profil.php?username=
'
+
tab
[
i
].
username
+
'
\'
"><img src="
'
+
tab
[
i
].
profile_image
+
'
" alt="icone" style="vertical-align:middle; position:relative; width:50px; height: 50px;" /><span style="margin-left:10px;">
'
+
tab
[
i
].
username
+
'
</span></button>
'
;
}
document
.
getElementById
(
'
suggestionButtons
'
).
innerHTML
=
options
;
...
...
@@ -242,14 +247,7 @@ session_start();
<span>
FIND YOUR INFLUENCER
</span>
</h3>
<div
class=
"search-agile"
>
<form
action=
"../page_profile/profil.php"
method=
"post"
>
<input
id=
"searchField"
list=
"usernames"
name=
"username"
type=
"text"
size=
"40"
maxlength=
"100"
autocomplete=
"off"
placeholder=
"Search here..."
onkeyup=
"showSuggestions()"
>
<datalist
id=
"usernames"
>
</datalist>
<div>
<!-- <input type="submit" value="Search"> -->
<div
style=
"display: inline-flex;"
>
...
...
@@ -265,20 +263,29 @@ session_start();
<input
class=
"img"
type=
"radio"
id=
"radio_4"
name=
"radio[]"
value=
"4"
/>
<label
for=
"radio_4"
><img
src=
"images/facebook.png"
width=
"50"
height=
"50"
/></label>
</div>
<input
id=
"searchField"
style=
"height: 50px; font-size: 20px;"
list=
"usernames"
name=
"username"
type=
"text"
size=
"40"
maxlength=
"100"
autocomplete=
"off"
placeholder=
"Search here..."
onkeyup=
"
if (this.value === '') {
document.getElementById('suggestionButtons').innerHTML = '';
} else {
showSuggestions();
}"
>
<datalist
id=
"usernames"
>
</datalist>
<div
class=
"clearfix"
>
</div>
</form>
</div>
<div
id=
"suggestionButtons"
style=
"text-align: left; width: 200px; margin-left: 310px"
>
</div>
</div>
<div
id=
"suggestionButtons"
>
</div>
</div>
</div>
</li>
</ul>
</div>
<!-- //banner -->
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter