Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* JavaScript Document */
- (function() {
- var user = navigator.userAgent;
- if ((user.indexOf('iPhone') || user.indexOf('iPad') || user.indexOf('iPod') || user.indexOf('Android')) > 0) {
- location.href = './pass';
- } else {
- void(0);
- }
- }());
- $(document).ready(function() {
- $('#top').particleground({
- dotColor: 'rgba(0, 120, 255, 0.5)',
- lineColor: 'rgb(0, 255, 0)',
- });
- });
- function current() {
- var now = new Date();
- var time = [now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds()];
- var day_of_the_week = ['日', '月', '火', '水', '木', '金', '土'];
- time[1] += 1;
- for (var i=1; i<=5; i++) {
- if (time[i] < 10) time[i] = '0' + time[i];
- }
- var set_year = time[0] + '/' + time[1] + '/' + time[2] + ' (' + day_of_the_week[now.getDay()] + ')';
- var set_time = time[3] + '時' + time[4] + '分' + time[5] + '秒';
- return [ set_year, set_time ];
- };
- setInterval(function() {
- $('div.list_td_ym').html(current()[0]);
- $('div.list_td_time').html(current()[1]);
- }, 1000);
- $(function() {
- var count = 0;
- $('#month_design, #login_design').mouseover(function() {
- $(this).css('border-left', 'solid 25px rgba(0, 0, 200, 0.8)');
- $(this).mouseout(function() { $(this).css('border', 'none') });
- });
- $('#month_design').click(function() {
- if (count % 2 == 0) {
- $('#md').slideDown(450);
- } else {
- $('#md').slideUp(400);
- };
- count ++;
- });
- });
- $(function() {
- var h = $(window).height();
- $('#now_loading ,#loader').height(h).css('display', 'block');
- });
- $(window).load(function () {
- $('#now_loading').delay(700).fadeOut(600);
- $('#loader').delay(600).fadeOut(300);
- });
- $(function(){
- setTimeout('stopload()',5000);
- });
- function stopload(){
- $('#now_loading').delay(700).fadeOut(600);
- $('#loader').delay(500).fadeOut(300);
- };
- $(function() {
- $(window).scroll(function() {
- var now_place = $(window).scrollTop();
- var under_place = $('body').height() - (now_place + $(window).height());
- if (now_place > 1500 && under_place > 200)
- $('#page_top').fadeIn(300);
- else
- $('#page_top').fadeOut(280);
- });
- $('#move_page_top').click(function() {
- $('html, body').animate( { scrollTop: 0 }, 400 );
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement