Skip to content

Commit ea44cf0

Browse files
authored
Fixed broken link in docs (#1014)
1 parent 886c5ad commit ea44cf0

File tree

1 file changed

+89
-89
lines changed

1 file changed

+89
-89
lines changed

docs/home/assets/home.js

+89-89
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
!(function($) {
2-
"use strict";
3-
4-
// Smooth scroll for the navigation menu and links with .scrollto classes
5-
$(document).on('click', '.scrollto', function(e) {
6-
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
7-
e.preventDefault();
8-
var target = $(this.hash);
9-
if (target.length) {
10-
11-
var scrollto = target.offset().top;
12-
scrollto = scrollto
13-
14-
if ($(this).attr("href") == '#header') {
15-
scrollto = 0;
16-
}
17-
18-
$('html, body').animate({
19-
scrollTop: scrollto
20-
}, 1500, 'easeInOutExpo');
21-
22-
return false;
23-
}
24-
}
25-
});
26-
27-
// Activate smooth scroll on page load with hash links in the url
28-
$(document).ready(function() {
29-
if (window.location.hash) {
30-
var initial_nav = window.location.hash;
31-
if ($(initial_nav).length) {
32-
var scrollto = $(initial_nav).offset().top;
33-
scrollto = scrollto
34-
$('html, body').animate({
35-
scrollTop: scrollto
36-
}, 1500, 'easeInOutExpo');
37-
}
38-
}
39-
});
40-
41-
42-
// Feature panels linking
43-
$('div[feature]#filter').on('click', () => navigateTo('usage/reading/filtering.html'));
44-
$('div[feature]#sort').on('click', () => navigateTo('usage/reading/sorting.html'));
45-
$('div[feature]#pagination').on('click', () => navigateTo('usage/reading/pagination.html'));
46-
$('div[feature]#selection').on('click', () => navigateTo('usage/reading/sparse-fieldset-selection.html'));
47-
$('div[feature]#include').on('click', () => navigateTo('usage/reading/including-relationships.html'));
48-
$('div[feature]#security').on('click', () => navigateTo('usage/resources/attributes.html#capabilities'));
49-
$('div[feature]#validation').on('click', () => navigateTo('usage/options.html#enable-modelstate-validation'));
50-
$('div[feature]#customizable').on('click', () => navigateTo('usage/resources/resource-definitions.html'));
51-
52-
53-
const navigateTo = (url) => {
54-
if (!window.getSelection().toString()){
55-
window.location = url;
56-
}
57-
}
58-
59-
60-
hljs.initHighlightingOnLoad()
61-
62-
// Back to top button
63-
$(window).scroll(function() {
64-
if ($(this).scrollTop() > 100) {
65-
$('.back-to-top').fadeIn('slow');
66-
} else {
67-
$('.back-to-top').fadeOut('slow');
68-
}
69-
});
70-
71-
$('.back-to-top').click(function() {
72-
$('html, body').animate({
73-
scrollTop: 0
74-
}, 1500, 'easeInOutExpo');
75-
return false;
76-
});
77-
// Init AOS
78-
function aos_init() {
79-
AOS.init({
80-
duration: 800,
81-
easing: "ease-in-out",
82-
once: true
83-
});
84-
}
85-
$(window).on('load', function() {
86-
aos_init();
87-
});
88-
89-
})(jQuery);
1+
!(function($) {
2+
"use strict";
3+
4+
// Smooth scroll for the navigation menu and links with .scrollto classes
5+
$(document).on('click', '.scrollto', function(e) {
6+
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
7+
e.preventDefault();
8+
var target = $(this.hash);
9+
if (target.length) {
10+
11+
var scrollto = target.offset().top;
12+
scrollto = scrollto
13+
14+
if ($(this).attr("href") == '#header') {
15+
scrollto = 0;
16+
}
17+
18+
$('html, body').animate({
19+
scrollTop: scrollto
20+
}, 1500, 'easeInOutExpo');
21+
22+
return false;
23+
}
24+
}
25+
});
26+
27+
// Activate smooth scroll on page load with hash links in the url
28+
$(document).ready(function() {
29+
if (window.location.hash) {
30+
var initial_nav = window.location.hash;
31+
if ($(initial_nav).length) {
32+
var scrollto = $(initial_nav).offset().top;
33+
scrollto = scrollto
34+
$('html, body').animate({
35+
scrollTop: scrollto
36+
}, 1500, 'easeInOutExpo');
37+
}
38+
}
39+
});
40+
41+
42+
// Feature panels linking
43+
$('div[feature]#filter').on('click', () => navigateTo('usage/reading/filtering.html'));
44+
$('div[feature]#sort').on('click', () => navigateTo('usage/reading/sorting.html'));
45+
$('div[feature]#pagination').on('click', () => navigateTo('usage/reading/pagination.html'));
46+
$('div[feature]#selection').on('click', () => navigateTo('usage/reading/sparse-fieldset-selection.html'));
47+
$('div[feature]#include').on('click', () => navigateTo('usage/reading/including-relationships.html'));
48+
$('div[feature]#security').on('click', () => navigateTo('usage/resources/attributes.html#capabilities'));
49+
$('div[feature]#validation').on('click', () => navigateTo('usage/options.html#enable-modelstate-validation'));
50+
$('div[feature]#customizable').on('click', () => navigateTo('usage/extensibility/resource-definitions.html'));
51+
52+
53+
const navigateTo = (url) => {
54+
if (!window.getSelection().toString()){
55+
window.location = url;
56+
}
57+
}
58+
59+
60+
hljs.initHighlightingOnLoad()
61+
62+
// Back to top button
63+
$(window).scroll(function() {
64+
if ($(this).scrollTop() > 100) {
65+
$('.back-to-top').fadeIn('slow');
66+
} else {
67+
$('.back-to-top').fadeOut('slow');
68+
}
69+
});
70+
71+
$('.back-to-top').click(function() {
72+
$('html, body').animate({
73+
scrollTop: 0
74+
}, 1500, 'easeInOutExpo');
75+
return false;
76+
});
77+
// Init AOS
78+
function aos_init() {
79+
AOS.init({
80+
duration: 800,
81+
easing: "ease-in-out",
82+
once: true
83+
});
84+
}
85+
$(window).on('load', function() {
86+
aos_init();
87+
});
88+
89+
})(jQuery);

0 commit comments

Comments
 (0)