compose
This commit is contained in:
parent
df21c3f664
commit
6bdedda993
|
|
@ -31,7 +31,7 @@ var $collapse = $('.navbar .collapse');
|
|||
var $html = $('html');
|
||||
var $tagsinput = $('.tagsinput');
|
||||
|
||||
(function() {
|
||||
(function () {
|
||||
var isWindows = navigator.platform.indexOf('Win') > -1 ? true : false;
|
||||
|
||||
if (isWindows) {
|
||||
|
|
@ -40,24 +40,23 @@ var $tagsinput = $('.tagsinput');
|
|||
|
||||
if ($('.tab-content .table-responsive').length != 0) {
|
||||
|
||||
$('.table-responsive').each(function() {
|
||||
$('.table-responsive').each(function () {
|
||||
var ps2 = new PerfectScrollbar($(this)[0]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
$html.addClass('perfect-scrollbar-on');
|
||||
} else {
|
||||
$html.addClass('perfect-scrollbar-off');
|
||||
}
|
||||
})();
|
||||
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
|
||||
// Multilevel Dropdown menu
|
||||
|
||||
$('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
|
||||
$('.dropdown-menu a.dropdown-toggle').on('click', function (e) {
|
||||
var $el = $(this);
|
||||
var $parent = $(this).offsetParent(".dropdown-menu");
|
||||
if (!$(this).next().hasClass('show')) {
|
||||
|
|
@ -68,7 +67,7 @@ $(document).ready(function() {
|
|||
|
||||
$(this).closest("a").toggleClass('open');
|
||||
|
||||
$(this).parents('a.dropdown-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
|
||||
$(this).parents('a.dropdown-item.dropdown.show').on('hidden.bs.dropdown', function (e) {
|
||||
$('.dropdown-menu .show').removeClass("show");
|
||||
});
|
||||
|
||||
|
|
@ -100,7 +99,8 @@ $(document).ready(function() {
|
|||
iconBase: "tim-icons",
|
||||
tickIcon: "icon-check-2"
|
||||
});
|
||||
};
|
||||
}
|
||||
;
|
||||
|
||||
if ($(window).width() >= 768) {
|
||||
big_image = $('.header[data-parallax="true"]');
|
||||
|
|
@ -111,7 +111,7 @@ $(document).ready(function() {
|
|||
|
||||
|
||||
// Activate Popovers and set color for popovers
|
||||
$('[data-toggle="popover"]').each(function() {
|
||||
$('[data-toggle="popover"]').each(function () {
|
||||
color_class = $(this).data('color');
|
||||
$(this).popover({
|
||||
template: '<div class="popover popover-' + color_class + '" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
|
||||
|
|
@ -130,7 +130,7 @@ $(document).ready(function() {
|
|||
if (!(/^((?!chrome|android).)*safari/i.test(navigator.userAgent))) {
|
||||
if ($('.square').length != 0) {
|
||||
|
||||
$(document).mousemove(function(e) {
|
||||
$(document).mousemove(function (e) {
|
||||
posX = event.clientX - window.innerWidth / 2;
|
||||
posY = event.clientY - window.innerWidth / 6;
|
||||
|
||||
|
|
@ -159,14 +159,14 @@ $(document).ready(function() {
|
|||
$(window).on('scroll', blackKit.checkScrollForTransparentNavbar)
|
||||
}
|
||||
|
||||
$('.form-control').on("focus", function() {
|
||||
$('.form-control').on("focus", function () {
|
||||
$(this).parent('.input-group').addClass("input-group-focus");
|
||||
}).on("blur", function() {
|
||||
}).on("blur", function () {
|
||||
$(this).parent(".input-group").removeClass("input-group-focus");
|
||||
});
|
||||
|
||||
// Activate bootstrapSwitch
|
||||
$('.bootstrap-switch').each(function() {
|
||||
$('.bootstrap-switch').each(function () {
|
||||
$this = $(this);
|
||||
data_on_label = $this.data('on-label') || '';
|
||||
data_off_label = $this.data('off-label') || '';
|
||||
|
|
@ -245,10 +245,38 @@ $(document).ready(function() {
|
|||
|
||||
function up(max) {
|
||||
let input_id = this.id.replace("up_", "inputqty_");
|
||||
console.log(input_id)
|
||||
document.getElementById(input_id).value = parseInt(document.getElementById(input_id).value) + 1;
|
||||
if (document.getElementById(input_id).value >= parseInt(max)) {
|
||||
document.getElementById(input_id).value = max;
|
||||
}
|
||||
|
||||
let uuid = this.id.replace("up_", "");
|
||||
document.getElementById('name_ticket').insertAdjacentHTML('beforeend', `
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-lg-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i
|
||||
class="tim-icons icon-email-85"></i></span>
|
||||
</div>
|
||||
<input type="email" class="form-control"
|
||||
placeholder="Votre email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-lg-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i
|
||||
class="tim-icons icon-email-85"></i></span>
|
||||
</div>
|
||||
<input type="email" class="form-control"
|
||||
placeholder="Vérifiez votre email">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`);
|
||||
|
||||
}
|
||||
|
||||
function down(min) {
|
||||
|
|
@ -260,8 +288,6 @@ function down(min) {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Returns a function, that, as long as it continues to be invoked, will not
|
||||
// be triggered. The function will be called after it stops being called for
|
||||
// N milliseconds. If `immediate` is passed, trigger the function on the
|
||||
|
|
@ -293,7 +319,7 @@ function hasScrolled() {
|
|||
lastScrollTop = st;
|
||||
};
|
||||
|
||||
$(window).on('resize', function() {
|
||||
$(window).on('resize', function () {
|
||||
blackKit.initNavbarImage();
|
||||
});
|
||||
|
||||
|
|
@ -303,7 +329,7 @@ blackKit = {
|
|||
navbar_menu_visible: 0
|
||||
},
|
||||
|
||||
checkScrollForTransparentNavbar: debounce(function() {
|
||||
checkScrollForTransparentNavbar: debounce(function () {
|
||||
if ($(document).scrollTop() > scroll_distance) {
|
||||
if (transparent) {
|
||||
transparent = false;
|
||||
|
|
@ -317,7 +343,7 @@ blackKit = {
|
|||
}
|
||||
}, 17),
|
||||
|
||||
initDatePicker: function() {
|
||||
initDatePicker: function () {
|
||||
if ($datepicker.length != 0) {
|
||||
$datepicker.datetimepicker({
|
||||
icons: {
|
||||
|
|
@ -335,7 +361,7 @@ blackKit = {
|
|||
}
|
||||
},
|
||||
|
||||
initNavbarImage: function() {
|
||||
initNavbarImage: function () {
|
||||
var $navbar = $('.navbar').find('.navbar-translate').siblings('.navbar-collapse');
|
||||
var background_image = $navbar.data('nav-image');
|
||||
|
||||
|
|
@ -354,7 +380,7 @@ blackKit = {
|
|||
}
|
||||
},
|
||||
|
||||
initSliders: function() {
|
||||
initSliders: function () {
|
||||
// Sliders for demo purpose in refine cards section
|
||||
var slider = document.getElementById('sliderRegular');
|
||||
|
||||
|
|
@ -379,16 +405,16 @@ blackKit = {
|
|||
});
|
||||
},
|
||||
|
||||
checkScrollForMovingNavbar: function() {
|
||||
checkScrollForMovingNavbar: function () {
|
||||
|
||||
// Hide Header on on scroll down
|
||||
navbarHeight = $('.navbar').outerHeight();
|
||||
|
||||
$(window).scroll(function(event) {
|
||||
$(window).scroll(function (event) {
|
||||
didScroll = true;
|
||||
});
|
||||
|
||||
setInterval(function() {
|
||||
setInterval(function () {
|
||||
if (didScroll) {
|
||||
hasScrolled();
|
||||
didScroll = false;
|
||||
|
|
@ -398,7 +424,7 @@ blackKit = {
|
|||
|
||||
},
|
||||
|
||||
checkScrollForParallax: debounce(function() {
|
||||
checkScrollForParallax: debounce(function () {
|
||||
|
||||
oVal = ($(window).scrollTop() / 3);
|
||||
big_image.css({
|
||||
|
|
@ -410,8 +436,8 @@ blackKit = {
|
|||
|
||||
}, 6),
|
||||
|
||||
initVideoBackground: function() {
|
||||
$('[data-toggle="video"]').click(function() {
|
||||
initVideoBackground: function () {
|
||||
$('[data-toggle="video"]').click(function () {
|
||||
id_video = $(this).data('video');
|
||||
video = $('#' + id_video).get(0);
|
||||
|
||||
|
|
@ -429,7 +455,7 @@ blackKit = {
|
|||
});
|
||||
},
|
||||
|
||||
initContactUsMap: function() {
|
||||
initContactUsMap: function () {
|
||||
var myLatlng = new google.maps.LatLng(40.748817, -73.985428);
|
||||
var mapOptions = {
|
||||
zoom: 13,
|
||||
|
|
@ -636,7 +662,7 @@ blackKit = {
|
|||
},
|
||||
|
||||
|
||||
initContactUs2Map: function() {
|
||||
initContactUs2Map: function () {
|
||||
var myLatlng = new google.maps.LatLng(40.748817, -73.985428);
|
||||
var mapOptions = {
|
||||
zoom: 13,
|
||||
|
|
@ -850,11 +876,11 @@ blackKit = {
|
|||
|
||||
function debounce(func, wait, immediate) {
|
||||
var timeout;
|
||||
return function() {
|
||||
return function () {
|
||||
var context = this,
|
||||
args = arguments;
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(function() {
|
||||
timeout = setTimeout(function () {
|
||||
timeout = null;
|
||||
if (!immediate) func.apply(context, args);
|
||||
}, wait);
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@
|
|||
placeholder="Votre email">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12 col-lg-6">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
|
|
@ -85,7 +84,9 @@
|
|||
|
||||
<input type="text" id="inputqty_{{ price.pk }}"
|
||||
class="form-control input-number"
|
||||
value="0"/>
|
||||
value="0" readonly
|
||||
/>
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button id="up_{{ price.pk }}"
|
||||
class="btn btn-warning btn-round btn-simple"
|
||||
|
|
@ -96,13 +97,19 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
{#remise à zero en cas de rechargement de page #}
|
||||
document.getElementById('inputqty_{{ price.pk }}').value = 0
|
||||
</script>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
<div class="space-50"></div>
|
||||
<div id="name_ticket"></div>
|
||||
<div class="space-50"></div>
|
||||
|
||||
<div class="row justify-content-start">
|
||||
<button class="btn btn-warning ml-3">Reserver <i class="tim-icons icon-cart"></i>
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -1,51 +1,78 @@
|
|||
version: '3.7'
|
||||
services:
|
||||
tibillet_postgres:
|
||||
container_name: tibillet_postgres
|
||||
image: postgres:11.5-alpine
|
||||
restart: always
|
||||
billetterie_postgres_demo:
|
||||
extends:
|
||||
file: ../compose/docker-compose-base.yml
|
||||
service: billetterie_postgres
|
||||
env_file: .env
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- "../../Postgres/dbdata:/var/lib/postgresql/data"
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
networks:
|
||||
- backend-billeterie
|
||||
|
||||
redis:
|
||||
image: redis:6-alpine
|
||||
restart: always
|
||||
container_name: redis
|
||||
hostname: redis
|
||||
billetterie_redis_demo:
|
||||
extends:
|
||||
file: ../compose/docker-compose-base.yml
|
||||
service: billetterie_redis
|
||||
networks:
|
||||
- backend-billeterie
|
||||
|
||||
tibillet_django:
|
||||
container_name: tibillet_django
|
||||
build: ../Dockerfile/
|
||||
restart: always
|
||||
billetterie_django_demo:
|
||||
extends:
|
||||
file: ../compose/docker-compose-base.yml
|
||||
service: billetterie_django
|
||||
command: "bash /DjangoFiles/launch.sh"
|
||||
env_file: .env
|
||||
ports:
|
||||
- 8002:8002
|
||||
volumes:
|
||||
- "../../DjangoFiles:/DjangoFiles"
|
||||
- "../../Backup:/Backup"
|
||||
- "../../Docker/bashrc:/root/.bashrc"
|
||||
working_dir: /DjangoFiles
|
||||
command: "bash /DjangoFiles/launch.sh"
|
||||
depends_on:
|
||||
- tibillet_postgres
|
||||
- redis
|
||||
- billetterie_postgres_demo
|
||||
links:
|
||||
- billetterie_postgres_demo:billetterie_postgres
|
||||
- billetterie_redis_demo:redis
|
||||
networks:
|
||||
- frontend
|
||||
- backend-billeterie
|
||||
|
||||
tibillet_celery:
|
||||
container_name: tibillet_celery
|
||||
build: ../Dockerfile/
|
||||
restart: always
|
||||
billetterie_celery_demo:
|
||||
extends:
|
||||
file: ../compose/docker-compose-base.yml
|
||||
service: billetterie_celery
|
||||
command: "bash /DjangoFiles/launch_celery.sh"
|
||||
env_file: .env
|
||||
volumes:
|
||||
- "../../DjangoFiles:/DjangoFiles"
|
||||
- "../../Docker/bashrc:/root/.bashrc"
|
||||
working_dir: /DjangoFiles
|
||||
command: "bash /DjangoFiles/launch.sh"
|
||||
depends_on:
|
||||
- tibillet_django
|
||||
- billetterie_django_demo
|
||||
links:
|
||||
- billetterie_postgres_demo:billetterie_postgres
|
||||
- billetterie_redis_demo:redis
|
||||
networks:
|
||||
- frontend
|
||||
- backend-billeterie
|
||||
|
||||
|
||||
billetterie_nginx_demo:
|
||||
extends:
|
||||
file: ../compose/docker-compose-base.yml
|
||||
service: billetterie_nginx
|
||||
|
||||
env_file: .env
|
||||
depends_on:
|
||||
- billetterie_django_demo
|
||||
links:
|
||||
- billetterie_django_demo:billetterie_django
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=frontend
|
||||
- traefik.http.routers.billeterie_nginx.tls.certresolver=myresolver
|
||||
- traefik.http.routers.billeterie_nginx.rule=Host(`m.${DOMAIN}`) || Host(`www.${DOMAIN}`) || Host(`raffinerie.${DOMAIN}`) || Host(`bisik.${DOMAIN}`) || Host(`vavangart.${DOMAIN}`) || Host(`manapany.${DOMAIN}`) || Host(`demo.${DOMAIN}`) || Host(`${DOMAIN}`)
|
||||
networks:
|
||||
- frontend
|
||||
|
||||
# pour demo : jturbeaux@pm.me / eiXom5mo
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
external: true
|
||||
backend-billeterie:
|
||||
name: "backend-billeterie"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ services:
|
|||
file: ../compose/docker-compose-base.yml
|
||||
service: billetterie_postgres
|
||||
env_file: .env
|
||||
# ports:
|
||||
# - 5432:5432
|
||||
networks:
|
||||
- backend-billeterie
|
||||
|
||||
|
|
@ -51,8 +53,8 @@ services:
|
|||
extends:
|
||||
file: ../compose/docker-compose-base.yml
|
||||
service: billetterie_nginx
|
||||
ports:
|
||||
- 8002:80
|
||||
# ports:
|
||||
# - 8002:80
|
||||
env_file: .env
|
||||
depends_on:
|
||||
- billetterie_django_demo
|
||||
|
|
|
|||
Loading…
Reference in New Issue