diff --git a/nijigen/js/common.js b/nijigen/js/common.js
index 3ae79a9..5271d12 100644
--- a/nijigen/js/common.js
+++ b/nijigen/js/common.js
@@ -36,21 +36,7 @@ var Skin = {
}
})
},
- init: function () {
- Util.initPjax()
-
- $('body').on('click', '.content-reset img', function () {
- window.open(this.src)
- })
-
- this._initCommon($('.icon__up'))
-
- $('.header__nav a, .header__m a').each(function () {
- if (this.href === location.href) {
- this.className = 'current'
- }
- })
-
+ _initAnimation: function () {
if (!('IntersectionObserver' in window)) {
$('.item').addClass('item--active')
return false
@@ -82,6 +68,36 @@ var Skin = {
})
}
},
+ init: function () {
+ Util.initPjax(function () {
+ Skin._initAnimation()
+ if (!Util.isArticlePage(location.href)) {
+ $('.b3-solo-list').closest('.module').remove()
+ }
+ })
+
+ Skin._initAnimation()
+
+ $('body').on('click', '.content-reset img', function () {
+ window.open(this.src)
+ })
+
+ this._initCommon($('.icon__up'))
+
+ $('.header__nav a, .header__m a').each(function () {
+ if (this.href === location.href) {
+ this.className = 'current'
+ }
+ }).click(function () {
+ $('.header__nav a, .header__m a').removeClass('current')
+ this.className = 'current'
+ $('.header__m .module__list').hide()
+ })
+
+ $('.header__logo').click(function () {
+ $('.header__nav a, .header__m a').removeClass('current')
+ })
+ },
_initArticleCommon: function () {
if ($('.b3-solo-list li').length > 0 && $(window).width() > 1000) {
$('.side').
diff --git a/nijigen/js/common.min.js b/nijigen/js/common.min.js
index fa0d74f..4a2a519 100644
--- a/nijigen/js/common.min.js
+++ b/nijigen/js/common.min.js
@@ -15,4 +15,4 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see