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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
| <!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Mon cv en jquery</title>
<style>
.titreBleu {
color:blue;
text-decoration:underline;
}
.titreCV {
font-size:30px;
color:#555555;
margin-top:60px;
margin-left:190px;
}
.titreSection {
font-weight:bold;
color:#555555;
margin-top:10;
}
.dateCV {
float:left;
margin-right:15px;
}
.divImage { position:absolute; right:20px; }
.divImage img {border:0; height:200px; }
</style>
</head>
<body>
<div>
<!-- image dans le coin superieur droit -->
<div class="divImage">
<img src="img/smiley.png"/>
</div>
<div class="enteteCV">
<p>Gerald Balayer</p>
<div id="divAge">06/06/1978</div>
<p>E-mail : <a href="mailto:gerald_balayer@hotmail.com">gerald_balayer@hotmail.com</a></p>
</div>
<div id="titreCV" class="titreCV">
<p>Developpeur Web</p>
</div>
<!-- SECTION 1 -->
<div class="titreSection">EXPERIENCES :</div>
<div class="dateCV">2010</div>
<p>Freelance developpement Web</p>
<div class="dateCV">2007</div>
<p>Amélioration des sites web de la société facesoft</p>
<!-- SECTION 2 -->
<div class="titreSection">FORMATION :</div>
<div class="dateCV">2007</div>
<p>Diplôme de Technitien (?) Supérieur en jQuery (sic)</p>
<div class="dateCV">2005</div>
<p>Baccalauréat Scientifique</p>
<!-- SECTION 3 -->
<div class="titreSection">DIVERS :</div>
<p>- Brevet de secourisme</p>
<p>- Photoshop</p>
<p>- Pratique du tennis</p>
</div>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script>
$(function(){
$('.titreSection')
.addClass('titreBleu')
.css({
"border":"1px solid black",
"color":"white",
"background-color":"grey"
});
var maintenant = new Date(),
maDateNaissance = new Date(1978,5,6),
monAge = maintenant.getFullYear() - maDateNaissance.getFullYear();
if (maDateNaissance.getMonth() > maintenant.getMonth()){
monAge += 1;
} else if (maintenant.getMonth() == maDateNaissance.getMonth() && maDateNaissance.getDate() >= maintenant.getDate()){
monAge += 1;
}
$('#divAge').html(monAge + ' ans');
if (maintenant.getDay() == 0 || maintenant.getDay() == 6){
$('#divers').after('- Horaire souples (weekend... )<br>');
}
});
</script>
</body>
</html> |
Partager