Modal s vyberem kdy, kde a v kolik, upraveny modal pro vyber fotky, pridan wysiwyg editor

This commit is contained in:
Michal Kváček
2018-11-20 21:08:34 +01:00
parent 6787b86170
commit 5d7799f7db
16 changed files with 282 additions and 159 deletions
+24
View File
@@ -0,0 +1,24 @@
.title-image {
height: 700px;
width: 100%;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
margin-bottom: 3rem;
}
.image-preview {
max-width: 100%;
border: solid 1px;
margin: 10px 0;
display: none;
}
/*Google Places autocomplete*/
.pac-container {
z-index: 99999;
}
+64
View File
@@ -0,0 +1,64 @@
var editors =new Jodit('.wysiwyg');
function readURL(input, preview) {
// ignore
if (preview == null) {
alert('preview is null');
return;
}
// display preview in given element
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
preview.attr('src', e.target.result).show();
}
reader.readAsDataURL(input.files[0]);
}
}
$(".file-upload").change(function() {
var preview = null;
if ($(this).data('preview')) {
preview = $($(this).data('preview'));
}
readURL(this, preview);
});
$(document).ready(function () {
$('.select-time').datetimepicker({
format: 'LT',
locale: 'cs',
stepping: 10,
});
$('.select-date').datetimepicker({
format: 'D. M. Y',
locale: 'cs',
minDate: new Date()
});
});
$('#mainInfoModal').on('show.bs.modal', function (e) {
$ ('#map').locationpicker ({
location: {latitude: 46.15242437752303, longitude: 2.7470703125},
radius: 10,
enableReverseGeocode: true,
draggable: true,
inputBinding: {
latitudeInput: null,
longitudeInput: null,
radiusInput: null,
locationNameInput: $ ('#map-input')
},
enableAutocomplete: true
});
})
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB