Pridana fotogalerie
This commit is contained in:
Vendored
-20
@@ -1,23 +1,3 @@
|
||||
|
||||
.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;
|
||||
|
||||
Vendored
+36
-51
@@ -1,53 +1,4 @@
|
||||
|
||||
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) {
|
||||
$ ('#mainInfoModal').on ('show.bs.modal', function (e) {
|
||||
$ ('#map').locationpicker ({
|
||||
location: {latitude: 46.15242437752303, longitude: 2.7470703125},
|
||||
radius: 10,
|
||||
@@ -61,4 +12,38 @@ $('#mainInfoModal').on('show.bs.modal', function (e) {
|
||||
},
|
||||
enableAutocomplete: true
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.js-move-button-trigger').click(function () {
|
||||
$('.js-move-button').show();
|
||||
$('.gallery__buttons').show();
|
||||
$(this).attr('hidden', true);
|
||||
$('.js-move-done-button-trigger').attr('hidden', false);
|
||||
});
|
||||
|
||||
$('.js-move-done-button-trigger').click(function () {
|
||||
$('.js-move-button').hide();
|
||||
$('.gallery__buttons').hide();
|
||||
|
||||
$(this).attr('hidden', true);
|
||||
$('.js-move-button-trigger').attr('hidden', false);
|
||||
});
|
||||
|
||||
|
||||
$('.js-delete-button-trigger').click(function () {
|
||||
$('.js-delete-checkbox').show();
|
||||
$('.gallery__buttons').show();
|
||||
|
||||
$(this).attr('hidden', true);
|
||||
$('.js-delete-button-confirmation').attr('hidden', false);
|
||||
});
|
||||
|
||||
$('.js-delete-button-confirmation-trigger').click(function () {
|
||||
$('.js-delete-checkbox:checked').closest('.gallery__item').fadeOut('fast');
|
||||
$('.gallery__buttons').hide();
|
||||
|
||||
$('.js-delete-button-confirmation').attr('hidden', true);
|
||||
$('.js-delete-button-trigger').attr('hidden', false);
|
||||
});
|
||||
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 202 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 247 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 253 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 238 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 265 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 430 KiB |
Reference in New Issue
Block a user