]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/static/AdminLTE-2.3.7/documentation/docs.js
2 * Documentation JS script
5 var slideToTop
= $("<div />");
6 slideToTop
.html('<i class="fa fa-chevron-up"></i>');
15 'line-height': '40px',
16 'text-align': 'center',
17 'background-color': '#222d32',
19 'border-radius': '5px',
24 slideToTop
.on('mouseenter', function () {
25 $(this).css('opacity', '1');
27 slideToTop
.on('mouseout', function () {
28 $(this).css('opacity', '.7');
30 $('.wrapper').append(slideToTop
);
31 $(window
).scroll(function () {
32 if ($(window
).scrollTop() >= 150) {
33 if (!$(slideToTop
).is(':visible')) {
34 $(slideToTop
).fadeIn(500);
37 $(slideToTop
).fadeOut(500);
40 $(slideToTop
).click(function () {
45 $(".sidebar-menu li:not(.treeview) a").click(function () {
47 var target
= $this.attr("href");
48 if (typeof target
=== 'string') {
50 scrollTop
: ($(target
).offset().top
) + "px"
55 var current_skin
= "skin-blue";
56 $('#layout-skins-list [data-skin]').click(function(e
) {
58 var skinName
= $(this).data('skin');
59 $('body').removeClass(current_skin
);
60 $('body').addClass(skinName
);
61 current_skin
= skinName
;