修复了一些问题
This commit is contained in:
1 parent
c484ee6ef3
commit
e877ceb560
28 files changed
+565
-535
No files matched your search
@@ -12,8 +12,8 @@ function section_navs(selector) {
|
||||
|
||||
function autoScrollToTop() {
|
||||
var hash = window.location.hash;
|
||||
if (hash && $(hash).length) {
|
||||
$('a[href="' + hash + '"]').click();
|
||||
if (hash && jQuery(hash).length) {
|
||||
jQuery('a[href="' + hash + '"]').click();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ function section_navs(selector) {
|
||||
var navs_lists = GetnavsLists();
|
||||
if (!navs_lists) return;
|
||||
|
||||
$(navbox_selector).each(function () {
|
||||
var _this = $(this);
|
||||
jQuery(navbox_selector).each(function () {
|
||||
var _this = jQuery(this);
|
||||
var name = _this.attr('data-title') || '';
|
||||
name = name && '<div class="box-body notop"><div class="title-theme">' + name + '</div></div>';
|
||||
_this.append(name + '<div class="aksrt-panel"><div class="' + nav_class + ' scroll-y mini-scrollbar list-unstyled"></div></div>');
|
||||
@@ -40,8 +40,8 @@ function section_navs(selector) {
|
||||
|
||||
function GetnavsLists() {
|
||||
var navs_lists = '';
|
||||
$(selector_s).each(function (indexInArray) {
|
||||
var _this = $(this);
|
||||
jQuery(selector_s).each(function (indexInArray) {
|
||||
var _this = jQuery(this);
|
||||
if (!isExcludedElement(_this)) {
|
||||
var tag = _this.prop('tagName');
|
||||
var text = _this.text();
|
||||
@@ -56,17 +56,17 @@ function section_navs(selector) {
|
||||
}
|
||||
|
||||
var add_lists = function (navs_lists) {
|
||||
$(nav_selector).html('<ul class="bl relative nav">' + navs_lists + '</ul>');
|
||||
jQuery(nav_selector).html('<ul class="bl relative nav">' + navs_lists + '</ul>');
|
||||
_body.on('click', nav_selector + ' a', function () {
|
||||
var _href = $($(this).attr('href'));
|
||||
var _href = jQuery(jQuery(this).attr('href'));
|
||||
_href.parents('.panel').each(function () {
|
||||
var _collapse = $(this).find('.collapse');
|
||||
var _collapse = jQuery(this).find('.collapse');
|
||||
if (_collapse.length) {
|
||||
_collapse.collapse('show');
|
||||
}
|
||||
});
|
||||
|
||||
$('.read-more-open').click();
|
||||
jQuery('.read-more-open').click();
|
||||
scrollTopTo(_href);
|
||||
return false;
|
||||
});
|
||||
@@ -81,11 +81,11 @@ function section_navs(selector) {
|
||||
//显示折叠内容
|
||||
var collapse = function () {
|
||||
var find_selector = '.n-H1,.n-H2';
|
||||
$(nav_selector + ' .bl').each(function () {
|
||||
var _this = $(this);
|
||||
jQuery(nav_selector + ' .bl').each(function () {
|
||||
var _this = jQuery(this);
|
||||
if (_this.innerHeight() > 380) {
|
||||
_this.find(find_selector).each(function () {
|
||||
var _this = $(this);
|
||||
var _this = jQuery(this);
|
||||
var _n_h2 = _this.nextUntil(find_selector);
|
||||
if (_n_h2.length) {
|
||||
_n_h2.addClass('yc');
|
||||
@@ -96,11 +96,11 @@ function section_navs(selector) {
|
||||
});
|
||||
|
||||
_body.on('click', nav_selector + ' .nav-toggle-collapse', function () {
|
||||
$(this).toggleClass('fa-rotate-90').parent().nextUntil(find_selector).toggleClass('yc');
|
||||
jQuery(this).toggleClass('fa-rotate-90').parent().nextUntil(find_selector).toggleClass('yc');
|
||||
});
|
||||
};
|
||||
|
||||
if ($(selector_s).length > 2) {
|
||||
if (jQuery(selector_s).length > 2) {
|
||||
add_box();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user