Em Andamento

Javascript/Bootstrap scroll to section only after the page loads

We have a website which uses jquery to scroll to a previously opened section when the user visits a page. It is using the bootstrap code below to get the previous section via a cookie and then scroll to it.

$(".collapse").on('[url removed, login to view]', function(e) {

var scrollToSection = $.cookie('scrollToSection');

if (scrollToSection != null && $("#" + scrollToSection).length) {

$('html, body').animate({

scrollTop: $('#' + scrollToSection).offset().top

}, 1000);

}

}

This works fine, but if the user expands a section after the page loads it will still scroll to the previous section. We want to fix this so that it only scrolls to the active section when the page first loads. If you are interested in the project let me know and I can walk you through the process to replicate this on our development site.

Habilidades: CSS, HTML, HTML5, Javascript, jQuery / Prototype

Ver mais: page scroll bootstrap, page loads popover javascript, scroll auto javascript stop page, animate scroll imagem javascript, relative scroll smooth javascript, image scroll loop javascript, horizontal scroll gallery javascript, scroll iframe javascript outside, scroll box javascript continued, scroll panel javascript, scroll gallery javascript, php progress bar page loads submit, scroll css javascript, scroll box javascript, vertical scroll banner javascript

Acerca do Empregador:
( 366 comentários ) Columbus, United States

ID do Projeto: #11750061

Premiar a:

shailendra041090

HI, i can do this work [url removed, login to view] provide me link. I can start the work now only. I can do this now only.

$10 USD em 1 dia
(50 Avaliações)
4.5

21 freelancers estão ofertando em média $27 para este trabalho

Rapha

I estimate 2 hours to fix your code. Contact me.

$78 USD em 1 dia
(72 Comentários)
6.5
VnBestSolutions

Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Lo Mais

$45 USD em 1 dia
(131 Comentários)
6.6
BaNgan

Hi, Here is my solution: - So we need a flag to check as if the page load first time. The flag is true at initial and will set to false right after the animate method work. - This will make the collapse item can't Mais

$35 USD em 1 dia
(105 Comentários)
6.0
mvladt

Hi elliottbenzle, I can fix it right now. :) Also I have more than 4 years of experience working with CSS, HTML, PHP and Javascript + jQuery, so I'm sure I will finish the task on time, within the budget and exactly Mais

$25 USD in 0 dias
(55 Comentários)
5.0
Appel

Hi If you can give further directions and steps to reproduce on you dev site, I am happy to fix this for you right now. Just let me know. Kind regards, Albert

$25 USD em 1 dia
(45 Comentários)
5.1
webcast

Hello sir/mam, I am good at : 1. WordPress web development 2. PSD to HTML 3. Responsive web development 4. Graphics Designing 5. Photoshop 6. PHP 7. html + CSS Styling 8. js & jQuery. you can check my Mais

$30 USD em 1 dia
(24 Comentários)
4.5
$25 USD em 1 dia
(15 Comentários)
3.6
amoghbhatnagar

I 've 7+years of experience in javascript, jquery, Ajax etc........ i've resolved this types of bugs in .......... i can fix it.............

$30 USD em 1 dia
(1 Comentário)
3.0
irfankhokhar1986

Hi Got it your point and all clear task so please give this job i will do for you with perfect timeline archive I have 7 year experience web development Give me your email id so i will send you my portfolio a Mais

$10 USD in 0 dias
(3 Comentários)
2.7
yogesh5490

Dear Sir, I am a Full time PHP, Wordpress( Woocommerce, themeforest themes etc... ) Developer with Native English Skills. I have 5+ years of experience in web applications and can do all-round development. I hav Mais

$10 USD in 0 dias
(12 Comentários)
3.4
lakhankaushal

Hello, My name is Lakhan, I have a vast working experience in WordPress website development and have developed number of WordPress Themes in my career. I have been using foundation and bootstrap for Making Responsive Mais

$25 USD em 1 dia
(8 Comentários)
2.3
$25 USD em 1 dia
(10 Comentários)
3.0
ramboo895

Hi, I am very interested in your project and I am ready to help you with pleasure. I just checked your job post and understood that what kind of designer and developer you want actually.I am going to provide you the b Mais

$35 USD em 1 dia
(3 Comentários)
1.8
rajesh44944

Hello Sir I have more than 5 year work experience in php web development. I have worked in jquery angular js, react js and bootstrap 3 . I will fixed this issue with in 4 and 5 hour . Pleas Mais

$25 USD em 1 dia
(1 Comentário)
1.8
jasphineinfotech

Hello, Hope your business is doing great! My name is Herryson Narciso. I am represent a Jaspine Infotech Pvt. Ltd. We are providing IT Services like web Development, Web Desgin,woo-commerce developing,SEO and Mo Mais

$30 USD em 1 dia
(2 Comentários)
1.6
andersonstinger

Hello. I know exactly what you need. Please contact me via chat to start to work right now. It is simply to fix.

$25 USD in 10 dias
(2 Comentários)
1.6
MoohHHooM

i will do it for free :) Mais

$10 USD in 0 dias
(0 Comentários)
0.0
sandhurajbir75

I have gone through your job description and the requirements which you are searching, fully matches with my technical skills and I assure to get the work completed with accuracy and within quick time frame. I have Mais

$20 USD em 1 dia
(0 Comentários)
0.0
WebGreenSoft

Dear Employer, I am ready to work on your required task and can also give 100% satisfaction. Looking forward to an opportunity to work with you. Regards: WebGreenSoft

$25 USD em 1 dia
(0 Comentários)
0.0
muhnoorazhari

Hi can I help u

$30 USD em 1 dia
(0 Comentários)
0.0