Implémentation d'un Cv en Javascript 100%
Bonjour j'aimerais avoir un peu d'aide pour implementer mon cv en javascript oriente object a 100%
voici mon modele
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/*dans cv_info je mettrais les informations de base comme le nom, l'adresse,le numero ,email */
function PersonnalInformation(prenom, nom, dateNaissance, lieuNaissance, nationalite, statut, adresse, ville, pays, telephone, email, photo) {
this.prenom = prenom;
this.nom = nom;
this.dateNaissance = dateNaissance;
this.lieuNaissance = lieuNaissance;
this.nationalite = nationalite;
this.statut = statut;
this.adresse = adresse;
this.ville = ville;
this.pays = pays;
this.telephone = telephone;
this.email = email;
this.photo = photo;
}
function CoursesDiplomas(anne, description) {
this.anne = anne;
this.description = description;
}
function WorkExperience(anne, structure, description) {
this.anne = anne;
this.structure = structure;
this.description = description;
}
function Skills(libelle, description) {
this.libelle = libelle;
this.description = description;
}
function Langues(libelle, description) {
this.libelle = libelle;
this.description = description;
} |
puis dans le fichier index.html
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
<script type="text/javascript">
function addPersonalInformation()
{
var prenom =document.getElementById("prenom").value;
var nom =document.getElementById("nom").value;
var dateNaissance =document.getElementById("dateNaissance").value;
var lieuNaissance =document.getElementById("lieuNaissance").value;
var nationalite =document.getElementById("nationalite").value;
var statut=document.getElementById("statut").value;
var adresse=document.getElementById("adresse").value;
var ville=document.getElementById("ville").value;
var pays=document.getElementById("pays").value;
var telephone=document.getElementById("telephone").value;
var email=document.getElementById("email").value;
var photo=document.getElementById("photo").value;
}
function addCoursesDiplomas() {
var anne=parseInt(document.getElementById("anne").value);
var description=document.getElementById("description").value;
}
function addWorkExperience() {
var anne=parseInt(document.getElementById("anne").value);
var structure=document.getElementById("structure").value;
var description=document.getElementById("description").value;
}
function addSkills() {
var libelle=document.getElementById("libelle").value;
var description=document.getElementById("description").value;
}
function addLangues() {
var libelle=document.getElementById("libelle").value;
var description=document.getElementById("description").value;
}
</script> |
Merci cordialement suis encore un gros debutant
merci de votre aide:?:?