Hi,
I use onepage navigation in my main page but I also use subpages. I want to link to a section of main page from a subpage.
I used this script from this topic but my link not working: http://support.semicolonweb.com/forums/topic/link-to-home-onepage-section-from-subpage/
<script>
jQuery(document).ready( function(){
setTimeout(function() {
if (location.hash) {
window.scrollTo(0, 0);
}
}, 1);
});
jQuery(window).on('load', function(){
var divScrollToAnchor = window.location.hash;
if( typeof divScrollToAnchor !== 'undefined' ) {
var t = setTimeout( function(){
$('html,body').stop(true).animate({
'scrollTop': $( divScrollToAnchor ).offset().top - 100
}, 700, 'easeOutQuad');
}, 1000);
}
});
</script>
My subpage is: https://678.hu/isec/documents.html
The main page is: https://678.hu/isec
Thanks,
Janos
