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
| <!doctype html>
<html lang="fr">
<head>
<title>test pop up</title>
<meta charset="utf-8">
<meta name="robots" content="noindex"/>
<script src="<a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js" target="_blank">https://cdnjs.cloudflare.com/ajax/li.../jquery.min.js</a>"></script>
<script src="main.js"></script>
<style type="text/css">
body {
background-color: #CCC;
font-family: 'Oswald', sans-serif;
color: #000;
}
#advert-once {
position: fixed;
width: 700px;
bottom: 20px;
right: 20px;
left: 20px;
top: 20px;
display: none;
margin: auto;
background-color:#FFF;
-webkit-background-size: cover;
background-size: cover;
padding: 20px;
z-index: 99999;
}
#advert-once .advert-button {
position: absolute;
width: 10px;
height: 10px;
font-size: 14px;
line-height: 12px;
right: -6px;
top: -7px;
background-color: red;
color: white;
border-radius: 50%;
padding: 5px;
cursor: pointer;
}
#reset-session, #refresh-page {
display: block;
width: 250px;
text-align: center;
font-family: 'Oswald', sans-serif;
border-radius: 5px;
border: none;
padding: 2px 5px;
cursor: pointer;
background-color: #ddd;
margin: 5px 0;
}
#reset-session:hover, #refresh-page:hover {
background-color: #f96e5b;
}
@media only screen and (max-width: 600px) {
#advert-once {
width: 90%;
height: 400px;
-webkit-background-size: 215%;
background-size: 215%;
}
}
</style>
</head>
<!--POP UP 1 °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°-->
<div>
<a style="background-color: white;color: black;padding: 10px 15px;display: inline-block;" href="javascript:void(0)" id="click">Lire son mail</a>
<div id="advert-once">
Cette pop-up marche, elle s'affiche.
<div class="advert-button">X</div>
</div>
</div>
<!--FIN POP UP °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°--><br><br><br><br>
<!--POP UP 2 °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°-->
<div>
<a style="background-color: white;color: black;padding: 10px 15px;display: inline-block;" href="javascript:void(0)" id="click">Compte rendu</a>
<div id="advert-once">
Celle-ci non !
<div class="advert-button">X</div>
</div>
</div><br /><br />
</body>
</html><br><br> |
Partager