Passolution
This commit is contained in:
parent
0fbc50a168
commit
50d7004652
10 changed files with 54 additions and 108 deletions
|
|
@ -6786,4 +6786,12 @@ hr.primary {
|
|||
}
|
||||
.text-success {
|
||||
color:#648859;
|
||||
}
|
||||
.stooltip {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: #e4e4e4;
|
||||
border-radius: 6px;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid #648859;
|
||||
}
|
||||
|
|
@ -136,8 +136,8 @@ $(document).ready(function () {
|
|||
}).get();
|
||||
var url = $('#booking_form').data('url') + 'api/passolution/de';
|
||||
var data = {nationality_id: ele.val(), country_ids: values, travel_date_start: $('#booking_form').data('travel_date_start'), travel_program_id: $('#booking_form').data('travel_program_id')};
|
||||
//console.log(data);
|
||||
//console.log(url);
|
||||
// console.log(data);
|
||||
// console.log(url);
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "POST",
|
||||
|
|
@ -146,6 +146,13 @@ $(document).ready(function () {
|
|||
//console.log(r);
|
||||
if(r.response){
|
||||
$(obj).find('.set_nationality_country_text').html(r.response);
|
||||
if(r.pdf){
|
||||
var dtext = "Ihre Einreisebestimmungen für "
|
||||
if(r.additionalContent){
|
||||
dtext += " " + r.additionalContent;
|
||||
}
|
||||
$(obj).find('.set_nationality_country_url').html(dtext +' : <a href="'+r.pdf['url']+'" target="_blank">'+r.pdf['filename']+'</a>');
|
||||
}
|
||||
$(obj).show('slow');
|
||||
if (!toggle_first[obj] && !toggle_sec[ele.val()]) {
|
||||
$(obj).find('.accordion-toggle').click();
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ jQuery(document).ready(function($) {
|
|||
},
|
||||
"position": "bottom",
|
||||
"content": {
|
||||
"message": "Diese Webseite verwendet Cookies, über die personenbezogene Daten erhoben werden können. Nähere Informationen zu den verwendeten Cookies finden Sie hier:",
|
||||
"message": "Diese Webseite verwendet systemrelevante Cookies, über die personenbezogene Daten erhoben werden können. Nähere Informationen zu den verwendeten Cookies finden Sie hier:",
|
||||
"dismiss": "Einverstanden!",
|
||||
"link": "Datenschutzerklärung",
|
||||
"href": "https://www.sterntours.de/datenschutz"
|
||||
|
|
@ -300,105 +300,7 @@ jQuery(document).ready(function($) {
|
|||
});
|
||||
|
||||
|
||||
/* ==============================================
|
||||
nav-tabs -->
|
||||
=============================================== */
|
||||
|
||||
/*
|
||||
var scrollBarWidths = 40;
|
||||
var windowW = $(window).width();
|
||||
|
||||
|
||||
var widthOfList = function(){
|
||||
var itemsWidth = 0;
|
||||
$('.list-nav-tabs li').each(function(){
|
||||
var itemWidth = $(this).outerWidth();
|
||||
itemsWidth+=itemWidth;
|
||||
});
|
||||
return itemsWidth;
|
||||
};
|
||||
|
||||
var widthOfHidden = function(){
|
||||
return (($('.wrapper-nav-tabs').outerWidth())-widthOfList()-getLeftPosi())-scrollBarWidths;
|
||||
};
|
||||
|
||||
var getLeftPosi = function(){
|
||||
if($('.list-nav-tabs').length){
|
||||
return $('.list-nav-tabs').position().left;
|
||||
}else{
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
var reAdjust = function(){
|
||||
if (($('.wrapper-nav-tabs').outerWidth()) < widthOfList()) {
|
||||
$('.scroller-right-nav-tabs').show();
|
||||
}
|
||||
else {
|
||||
$('.scroller-right-nav-tabs').hide();
|
||||
}
|
||||
|
||||
if (getLeftPosi()<0) {
|
||||
$('.scroller-left-nav-tabs').show();
|
||||
}
|
||||
else {
|
||||
$('.item').animate({left:"-="+getLeftPosi()+"px"},'slow');
|
||||
$('.scroller-left-nav-tabs').hide();
|
||||
}
|
||||
}
|
||||
|
||||
if(windowW <= 992){
|
||||
reAdjust();
|
||||
}
|
||||
$(window).on('resize',function(e){
|
||||
var windowW = $(window).width();
|
||||
if(windowW <= 992){
|
||||
reAdjust();
|
||||
}else{
|
||||
$('.scroller-right-nav-tabs').hide();
|
||||
$('.scroller-left-nav-tabs').hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('.scroller-right-nav-tabs').click(function() {
|
||||
|
||||
if(((getLeftPosi()*-1) + $('.wrapper-nav-tabs').outerWidth()) < (widthOfHidden()*-1)){
|
||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
||||
$('.list-nav-tabs').animate({left:"+="+($('.wrapper-nav-tabs').outerWidth()*-1)+"px"},'slow',function(){
|
||||
|
||||
});
|
||||
}else{
|
||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
||||
$('.scroller-right-nav-tabs').fadeOut('slow');
|
||||
$('.list-nav-tabs').animate({left:"+="+widthOfHidden()+"px"},'slow',function(){
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('.scroller-left-nav-tabs').click(function() {
|
||||
|
||||
|
||||
|
||||
if(((getLeftPosi()) + $('.wrapper-nav-tabs').outerWidth()) < 0){
|
||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
||||
$('.list-nav-tabs').animate({left:"-="+($('.wrapper-nav-tabs').outerWidth()*-1)+"px"},'slow',function(){
|
||||
|
||||
});
|
||||
}else{
|
||||
$('.scroller-right-nav-tabs').fadeIn('slow');
|
||||
$('.scroller-left-nav-tabs').fadeOut('slow');
|
||||
$('.list-nav-tabs').animate({left:"-="+getLeftPosi()+"px"},'slow',function(){
|
||||
$('.list-nav-tabs').css({'left': 0});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
*/
|
||||
|
||||
/* ==============================================
|
||||
MENU HOVER -->
|
||||
|
|
@ -466,6 +368,32 @@ jQuery(document).ready(function($) {
|
|||
$('[data-toggle="tooltip"]').tooltip()
|
||||
});
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
$('article img.img-responsive').each(function( index ) {
|
||||
|
||||
$(this).hover(function () {
|
||||
// Hover over code
|
||||
var title = $(this).attr('title');
|
||||
$(this).data('tipText', title);
|
||||
$('<p class="stooltip"></p>').text(title).appendTo('body').fadeIn('slow');
|
||||
}, function () {
|
||||
// Hover out code
|
||||
$(this).attr('alt', $(this).data('tipText'));
|
||||
$('.stooltip').remove();
|
||||
}).mousemove(function (e) {
|
||||
var mousex = e.pageX + 20;
|
||||
//Get X coordinates
|
||||
var mousey = e.pageY + 10;
|
||||
//Get Y coordinates
|
||||
$('.stooltip').css({
|
||||
top: mousey,
|
||||
left: mousex
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/* ==============================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue