我一直在努力解决整页问题。当专注于输入整页时,键盘不会排列。选择输入时,页面不会调整高度。
在IOS上运作完美。 fullpage.js调整然后当你点击每个输入时,pge向下移动一点以显示下一个输入字段。
有这个决心吗?
http://www.ahimsainvestments.com/#home/register
只有输入字段才会出现在黄金签证页面上。
$(document).ready(function() {
// Initializing fullpage.js
initialize(false);
function initialize(hasScrollBar){
$('#fullPage').fullpage({
anchors: ['home', 'investment-platform', 'golden-visa', 'ahimsa-investments'],
controlArrows: true,
menu: '#menu',
animateAnchor: false,
slidesNavigation: false,
navigation: false,
fadingEffect: false,
fadingEffectKey: 'xxx=',
parallax: 'sections',
parallaxKey: 'xxx==',
parallaxOptions: {
type: 'reveal',
percentage: 50,
property: 'translate',
},
css3:true,
easingcss3: 'cubic-bezier(0.420, 0.000, 1.000, 1.000)',
scrollingSpeed: 600,
autoScrolling: true,
/*responsiveWidth: 1,*/
scrollBar: hasScrollBar,
fitToSection: true,
fitToSectionDelay: 1000,
lazyLoading: true,
scrollOverflow: true,
verticalCentered: true,
afterSlideLoad: function( anchorLink, index, slideAnchor, slideIndex){
var loadedSlide = $(this);
//second slide of the second section (supposing #secondSlide is the
//anchor for the second slide
if(index == 1 && slideAnchor == 'homepage'){
$.fn.fullpage.setAllowScrolling(false, 'left, right');
}
if(index == 1 && slideAnchor == 'about-us'){
$.fn.fullpage.setAllowScrolling(false, 'left, right');
}
if(index == 1 && slideAnchor == 'our-team'){
$.fn.fullpage.setAllowScrolling(false, 'left, right');
}
if(index == 1 && slideAnchor == 'contact-us'){
$.fn.fullpage.setAllowScrolling(false, 'left, right');
}
if(index == 1 && slideAnchor == 'register'){
$.fn.fullpage.setAllowScrolling(false, 'left, right');
} }
});
//Silentmove links
$(document).on('click', '#silentp1', function(){
$.fn.fullpage.silentMoveTo('1', 0);
});
$(document).on('click', '#silentp1-2', function(){
$.fn.fullpage.silentMoveTo('1', 1);
});
$(document).on('click', '#silentp1-3', function(){
$.fn.fullpage.silentMoveTo('1', 2);
});
$(document).on('click', '#silentp1-4', function(){
$.fn.fullpage.silentMoveTo('1', 3);
});
$(document).on('click', '#silentp1-5', function(){
$.fn.fullpage.silentMoveTo('1', 4);
});
//fadeout bckgrnd on scroll
// $(window).scroll(function() {
// $(".parallax-mirror img").css({
// 'opacity': 1 - (($(this).scrollTop()) / 250)
// }); });
}
});