"ANNONCE POSTE AND IMAGES PREVIEW"
Bootstrap 3.3.0 Snippet by franckweb

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row destacados">
<div class=" col-md-10">
<div class="box1">
<h4>Poster votre annonce en 2 minutes</h4>
</div>
</div>
</div>
<div class="col-md-5">
<div class="main-login main-center">
<form class="form-horizontal" method="post" action="#">
<div class="row destacados">
<div class=" col-md-10">
<div class="box2">
<h4>Pays & Ville</h4>
</div>
</div>
</div>
<div class="form-group">
<div class="cols-md-7">
<select class="form-control">
<option value="0">votre Pays</option>
<option value="1">Bénin</option>
<option value="2">Burkina faso</option>
<option value="3">Cameroun</option>
<option value="4">Congo</option>
<option value="5">Cote d'Ivoir</option>
<option value="6">Guinée</option>
<option value="7">Gabon</option>
<option value="8">Mali</option>
<option value="9">RDC</option>
<option value="9">Sénégal</option>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
.destacados{
padding: 10px 0;
}
.box1 h4 {
position:relative;
padding: 10px 20px;
margin: 10px 0px;
margin-left: -30px;
font-size: 25px;
line-height:32px;
font-weight:bold;
color:#fff;
background:#cc0000;
/* css3 extras */
text-shadow:0 1px 1px rgba(0,0,0,0.2);
-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.2);
-moz-box-shadow:0 1px 1px rgba(0,0,0,0.2);
box-shadow:0 1px 1px rgba(0,0,0,0.2);
/* See "NOTE 1" */
zoom:1;
}
.box1 h4:before,
.box1 h4:after {
content:"";
position:absolute;
/* See "NOTE 2" */
z-index:-1;
top:100%;
left:0;
border-width:0 10px 10px 0;
border-style:solid;
border-color:transparent maroon;
}
/********************* seconde ******************************/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
$(document).ready(function() {
if (window.File && window.FileList && window.FileReader) {
$("#files").on("change", function(e) {
var files = e.target.files,
filesLength = files.length;
for (var i = 0; i < filesLength; i++) {
var f = files[i]
var fileReader = new FileReader();
fileReader.onload = (function(e) {
var file = e.target;
$("<div class=\"alert alert-success col-xs-2 col-sm-2 col-md-2 nnah\">" +
"<button type=\"button\" class=\"close\" data-dismiss=\"alert\"><span aria-hidden=\"true\" class=\"glyphicon glyphicon-remove\"></span></button>" +
"<img class=\" col-xs-12 col-sm-12 col-md-12 nnahs\" src=\"" + e.target.result + "\" title=\"" + file.name + "\"/>" +
"<br/>" +
"</div>").insertAfter("#files");
$(".remove").click(function(){
$(this).parent(".pip").remove();
});
// Old code here
/*$("<img></img>", {
class: "imageThumb",
src: e.target.result,
title: file.name + " | Click to remove"
}).insertAfter("#files").click(function(){$(this).remove();});*/
});
fileReader.readAsDataURL(f);
}
});
} else {
alert("Your browser doesn't support to File API")
}
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: