-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tsukumijima
committed
Aug 29, 2019
1 parent
b7f5cde
commit ecd53ef
Showing
19 changed files
with
354 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.0.0 | ||
v1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,104 @@ | ||
$(function(){ | ||
|
||
// メニュー開閉 | ||
$('#nav-open').click(function(event){ | ||
$('#nav-close').addClass('open'); | ||
$('#nav-content').addClass('open'); | ||
$('html').addClass('open'); | ||
}); | ||
// 個人設定読み込み | ||
$(window).on('load', function(){ | ||
|
||
$('#nav-close').click(function(event){ | ||
$('#nav-close').removeClass('open'); | ||
$('#nav-content').removeClass('open'); | ||
$('#broadcast-stream-box').removeClass('open'); | ||
$('#search-stream-box').removeClass('open'); | ||
$('#chromecast-box').removeClass('open'); | ||
$('html').removeClass('open'); | ||
}); | ||
settings = {twitter_show:true, comment_show:true, onclick_stream:false}; | ||
if (Cookies.get('settings') != undefined){ | ||
settings = JSON.parse(Cookies.get('settings')); | ||
} | ||
|
||
// サブメニューボタン開閉 | ||
$('#menubutton').click(function(event){ | ||
$('#menu-content').animate({height: 'toggle'}, 150); | ||
$('#menu-content').toggleClass('open'); | ||
}); | ||
|
||
// サブメニューとサブメニューボタン以外クリックでサブメニューを引っ込める | ||
$(document).click(function(event) { | ||
if (!$(event.target).closest('#menubutton').length && !$(event.target).closest('#menu-content').length){ | ||
$('#menu-content').animate({height: 'hide'}, 150); | ||
$('#menu-content').removeClass('open'); | ||
} | ||
}); | ||
$(function(){ | ||
|
||
// パスワード開閉 | ||
$('.password-box-input').click(function(){ | ||
$('.password-box-input').toggleClass('fa-eye'); | ||
$('.password-box-input').toggleClass('fa-eye-slash'); | ||
var input = $(this).prev("input"); | ||
// type切替 | ||
if (input.attr("type") == "password") { | ||
input.attr("type", "text"); | ||
} else { | ||
input.attr("type", "password"); | ||
} | ||
}); | ||
// メニュー開閉 | ||
$('#nav-open').click(function(event){ | ||
$('#nav-close').addClass('open'); | ||
$('#nav-content').addClass('open'); | ||
$('html').addClass('open'); | ||
}); | ||
|
||
// 個人設定読み込み | ||
settings = {twitter_show:true, comment_show:true, onclick_stream:false}; | ||
if (Cookies.get('settings') != undefined){ | ||
settings = JSON.parse(Cookies.get('settings')); | ||
} | ||
|
||
// 上までスクロールで戻る | ||
$(window).scroll(function() { | ||
|
||
// スクロール位置を取得 | ||
var topPos = $(this).scrollTop(); | ||
|
||
// 表示・非表示 | ||
if (topPos > 400) { | ||
$('#scroll').css('opacity', '1'); | ||
} else { | ||
$('#scroll').css('opacity', '0'); | ||
} | ||
$('#nav-close').click(function(event){ | ||
$('#nav-close').removeClass('open'); | ||
$('#nav-content').removeClass('open'); | ||
$('#broadcast-stream-box').removeClass('open'); | ||
$('#search-stream-box').removeClass('open'); | ||
$('#chromecast-box').removeClass('open'); | ||
$('html').removeClass('open'); | ||
}); | ||
|
||
}); | ||
// サブメニューボタン開閉 | ||
$('#menubutton').click(function(event){ | ||
$('#menu-content').velocity($('#menu-content').is(':visible') ? 'slideUp' : 'slideDown', 150); | ||
$('#menu-content').toggleClass('open'); | ||
}); | ||
|
||
// 一番上まで戻る | ||
$('#scroll').click(function(){ | ||
|
||
var topPos = $(window).scrollTop(); | ||
|
||
if (topPos > 400) { | ||
$('html, body').animate({ scrollTop: 0 }, 700); | ||
} | ||
// サブメニューとサブメニューボタン以外クリックでサブメニューを引っ込める | ||
$(document).click(function(event) { | ||
if (!$(event.target).closest('#menubutton').length && !$(event.target).closest('#menu-content').length){ | ||
$('#menu-content').velocity('slideUp', 150); | ||
$('#menu-content').removeClass('open'); | ||
} | ||
}); | ||
|
||
}); | ||
// パスワード開閉 | ||
$('.password-box-input').click(function(){ | ||
$('.password-box-input').toggleClass('fa-eye'); | ||
$('.password-box-input').toggleClass('fa-eye-slash'); | ||
var input = $(this).prev("input"); | ||
// type切替 | ||
if (input.attr("type") == "password") { | ||
input.attr("type", "text"); | ||
} else { | ||
input.attr("type", "password"); | ||
} | ||
}); | ||
|
||
// 上までスクロールで戻る | ||
$(window).scroll(function() { | ||
|
||
// スクロール位置を取得 | ||
var topPos = $(this).scrollTop(); | ||
|
||
// 表示・非表示 | ||
if (topPos > 400) { | ||
$('#scroll').css('opacity', '1'); | ||
$('#scroll').css('visibility', 'visible'); | ||
} else { | ||
$('#scroll').css('opacity', '0'); | ||
$('#scroll').css('visibility', 'hidden'); | ||
} | ||
|
||
}); | ||
|
||
// 一番上まで戻る | ||
$('#scroll').click(function(){ | ||
|
||
var topPos = $(window).scrollTop(); | ||
|
||
if (topPos > 400) { | ||
$('html, body').velocity('scroll', { duration: 700, offset: -54 }); | ||
} | ||
|
||
}); | ||
|
||
// トーストのオプション | ||
toastr.options = { | ||
"closeButton": false, | ||
"debug": false, | ||
"newestOnTop": false, | ||
"progressBar": false, | ||
"positionClass": "toast-bottom-left", | ||
"preventDuplicates": false, | ||
"onclick": null, | ||
"showDuration": "200", | ||
"hideDuration": "200", | ||
"timeOut": "5000", | ||
"extendedTimeOut": "1000", | ||
"showEasing": "linear", | ||
"hideEasing": "linear", | ||
"showMethod": "fadeIn", | ||
"hideMethod": "fadeOut" | ||
} | ||
|
||
// トーストのオプション | ||
toastr.options = { | ||
"closeButton": false, | ||
"debug": false, | ||
"newestOnTop": false, | ||
"progressBar": false, | ||
"positionClass": "toast-bottom-left", | ||
"preventDuplicates": false, | ||
"onclick": null, | ||
"showDuration": "200", | ||
"hideDuration": "200", | ||
"timeOut": "5000", | ||
"extendedTimeOut": "1000", | ||
"showEasing": "linear", | ||
"hideEasing": "linear", | ||
"showMethod": "fadeIn", | ||
"hideMethod": "fadeOut" | ||
} | ||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.