メニュー

「メニュー」の編集履歴(バックアップ)一覧に戻る

メニュー - (2013/02/17 (日) 11:43:03) のソース

開設:&update(format=Y/m/d,プラグイン/ニュース)
┣[[探索マップ]]
┃┣[[戦闘]]
┃┗[[時間帯と天気]]
┣マイページ
┃┣ステータス
┃┃┣[[経験値]](探偵レベル)
┃┃┗[[メッセージアイコン]]
┃┣[[電脳アイテム]]
┃┃┣[[電脳メガネ]]
┃┃┣[[電脳ペット]]
┃┃┣[[キーアイテム>電脳アイテム#キーアイテム]]
┃┃┣[[攻撃>電脳アイテム#攻撃]](武器)
┃┃┣[[回避>電脳アイテム#回避]]
┃┃┣[[装備>電脳アイテム#装備]]
┃┃┣[[回復>電脳アイテム#回復]]
┃┃┣[[素材]]
┃┃┗[[レシピ]](合成)
┃┗[[マイメモリー]]
┣メガシ屋
┃┣[[購入]](売却)
┃┗[[依頼]]
----
合計 &counter(total)
今日 &counter(today)
昨日 &counter(yesterday)
&link_editmenu(text=ここを編集)
#javascript(){{{
  var desc = {}; var desc2 = {};
  var f_desc = 0;

  window.onerror = function() {};

  var e = $('<div>').attr('class','loading').css({textAlign:'center',backgroundColor:'#ff9'}).append('読み込んでいます...');
  $('.headerInner').append(e);
  $(function() {
    $('.loading').hide();
  });

  window.$.fn.socialbutton = function(){};
  $('at_social_links2').hide();

console.log('jQuery  '+window.$().jquery);
  function fix() {
    var cols = ' f9aed9 d1beff b0d2ff ffb697 c6bfc5 ffcc4d d6f546 7de6ff fff13c'.split(' ');
    var names = '# 電脳メガネ 電脳ペット キーアイテム 攻撃 回避 装備 回復 素材 レシピ'.split(' ');
    var cols2 = '8ceec5 ffd4b8 abedff ffffa2'.split(' ');
    var i;
console.log('#fix     ',+new Date/1000);

    $('table').each(function() {
      var trs = $(this).children().children('tr');
      var ths = trs.eq(0).children('th');
      var th0 = ths.eq(0).text();
      var th1 = ths.eq(1).text();
      var th6 = ths.eq(6).text();
      if (th0 == 'category_id' && th1 == 'カテゴリ') {
        trs.each(function() {
          var tds = $(this).children('td');
          var td0 = tds.eq(0).text();
          var td1 = tds.eq(1);
          td1.text(names[td0]);
        });
      }
      if (th6 == '電') {
        trs.each(function() {
          var tds = $(this).children('td');
          for (i = 6; i <= 9; i++) {
            tds.eq(i).css({backgroundColor:'#'+cols2[i-6]});
          }
        });
      }
    });

    var tds = $('td');
    tds.each(function() {
      var td = $(this);
      var s = td.text();

      if      (s == '晴れ') { td.css({backgroundColor:'#f1b851'}); }
      else if (s == '曇り') { td.css({backgroundColor:'#dadada'}); }
      else if (s == '雨'  ) { td.css({backgroundColor:'#b0dcf1'}); }
      else if (s == '雪'  ) { td.css({backgroundColor:'#f6f8fa'}); }
      else if (s == '雷'  ) { td.css({backgroundColor:'#fdec87'}); }

      if (s.match(/^-?\d+(?:\(.+\)| メタ| JEWEL| 分)?$/)) { // 数値,金額,時間
        td.addClass('r');
      } else if (s.match(/^\(\d+\)$/)) { // (数値)
        td.addClass('r');
      } else if (s.match(/^(?:-+|\?)$/)) { // 空欄,--,?
        td.addClass('c');
      } else {
        var len = cols.length;
        for (i = 0; i<len; i++) { // カテゴリ
          if (s == names[i]) {
            td.attr({bgcolor:'#'+cols[i]});
            td.addClass('c');
          }
        }
      }
      if (td.text().match(/^x\d+$/)) td.text('');
    });

    $('a,h3,h4,span').each(function() {
      var e = $(this);
      var s = e.text().replace(/^\s*(.+?)\s*$/,'$1');
      var len = cols.length;
      for (i = 0; i<len; i++) {
        if (s == names[i]) {
          e.css({backgroundColor:'#'+cols[i]}).addClass('k');
        }
      }
    });

    $('table').each(function() {
      var tbl = $(this);
      if (tbl.html().match(/<input/)) return; // 高速化のため適当に
      i = 0;
      tbl.children().children('tr').each(function() {
        var tr = $(this);
        var td0 = tr.children('td').eq(0);
        if (td0.attr('colspan')>1 && td0.html() == '') {
          tr.css({backgroundColor:'#ccc'});
          return;
        } else if (tr.children('th').length) {
          return;
        } else if (i%2) {
          tr.addClass('tr_odd');
        }
        i++;
      });
    });

    if (location.href.match(/\/19\.html/)) {
      $('table').eq(0).find('tr').each(function() {
        $(this).find('th,td').eq(0).addClass('w63');
        $(this).find('th,td').eq(1).addClass('w70');
      });
      $('table').eq(0).css({wordBreak:'break-all'});
    }
console.log('finish   ',+new Date/1000);
  }

console.log('init     ',+new Date/1000);
  $(function() {
console.log('ready    ',+new Date/1000);
    var t0 = new Date();
    fix();
    var div = $('div#tm');
    if (!div.length) {
      div = $('<div>').attr({id:'tm'});
      $('body').append(div);
    }
    div.text(new Date-t0+'ms');
  });
}}}
#javascript(){{{
<script type="text/javascript"><!--
amazon_ad_tag = 'dcoil-22'; amazon_ad_width = '160'; amazon_ad_height = '600';
amazon_color_border = '206BA2'; amazon_color_logo = 'FFFFFF'; amazon_color_link = '206BA2';
amazon_ad_link_target = 'new';
amazon_ad_include = '電脳コイル;ゲーム;攻略;アニメ;学校;限定';
amazon_ad_exclude = '愛子';
//amazon_ad_categories = 'abclde';
//--></script>
<script type="text/javascript" src="http://www38.atwiki.jp/d-coil/pub/ads.js"></script>
}}}
#javascript(){{{
<script type="text/javascript"><!--
document.buf = '';
document.write0 = document.write;
document.write = function(x) {
  if (x.match(/<script/)) {
    this.write0(x);
  } else {
    this.buf = (this.buf ? this.buf : '')+x;
  }
}
//amazon_ad_tag = 'dcoil-22'; amazon_ad_width = '600'; amazon_ad_height = '520';
amazon_ad_tag = 'dcoil-22'; amazon_ad_width = '728'; amazon_ad_height = '90';
amazon_color_border = '206BA2'; amazon_color_logo = 'FFFFFF'; amazon_color_link = '206BA2';
amazon_ad_link_target = 'new';
amazon_ad_include = '電脳コイル;ゲーム;攻略;アニメ;学校;限定';
amazon_ad_exclude = '愛子';
//amazon_ad_categories = 'abclde';
amazon_ad_logo = 'hide';
//--></script>
<script type="text/javascript" src="http://www38.atwiki.jp/d-coil/pub/ads.js"></script>
<script type="text/javascript"><!--
document.write = document.write0;
$(function() {
  $('h2').eq(0).before(document.buf);
  $('#body').append('<br/>'+document.buf);
  document.buf = '';
});
//--></script>
}}}
#javascript(){{{
$(function() {
//$('h1').eq(0).before('<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=dcoil-22&o=9&p=48&l=ur1&category=special_deal&f=ifr" width="728" height="90" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe><br/>');
});
}}}
#javascript(){{{
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2296283-5']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
}}}