Javascript/Bootstrap scroll to section only after the page loads

Cerrado

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 más: 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

ID de proyecto: #11750061

Adjudicado a:

shailendra041090

HI, i can do this work easily.Please provide me link. I can start the work now only. I can do this now only.

$10 USD en 1 día
(50 comentarios)
4.5

21 los freelancers están ofertando un promedio de $27 para este trabajo.

Rapha

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

$78 USD en 1 día
(72 comentarios)
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 Más

$45 USD en 1 día
(131 comentarios)
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 Más

$35 USD en 1 día
(105 comentarios)
6.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 en 1 día
(45 comentarios)
5.1
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 Más

$25 USD en 0 días
(55 comentarios)
5.0
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 Más

$30 USD en 1 día
(24 comentarios)
4.5
$25 USD en 1 día
(15 comentarios)
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 en 1 día
(1 comentario)
3.0
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 Más

$10 USD en 0 días
(12 comentarios)
3.4
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 Más

$10 USD en 0 días
(3 comentarios)
2.7
$25 USD en 1 día
(10 comentarios)
3.0
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 Más

$25 USD en 1 día
(8 comentarios)
2.3
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 Más

$35 USD en 1 día
(3 comentarios)
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 Más

$25 USD en 1 día
(1 comentario)
1.8
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 en 10 días
(2 comentarios)
1.6
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 Más

$30 USD en 1 día
(2 comentarios)
1.6
muhnoorazhari

Hi can I help u

$30 USD en 1 día
(0 comentarios)
0.0
$25 USD en 1 día
(0 comentarios)
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 Más

$20 USD en 1 día
(0 comentarios)
0.0
MoohHHooM

i will do it for free :) Más

$10 USD en 0 días
(0 comentarios)
0.0