1jQuery(document).ready(function($){ 2 if(('sessionStorage' in window) && (window.sessionStorage !== null)) { 3 4 var pageTitle = $('h1').text(); // ãã¼ã¸ã¿ã¤ãã« 5 if($('.top_index')[0]){ 6 pageTitle = 'ããããã¼ã¸'; // ããããã¼ã¸ã®å ´å 7 } 8 else if($('.front_index')[0]){ 9 pageTitle = 'ããã³ããã¼ã¸'; // ããã³ããã¼ã¸ã®å ´å 10 } 11 else if($('h1 img')[0]){ 12 pageTitle = $('h1 img').attr('alt'); 13 } 14 15 var pageUrl = htmlspecialchars_URL(location.href); 16 17 // ãããã¨ãªã¹ã 18 function footstepList() { 19 var footstep_rireki_buf = ''; // å±¥æ´ä¸è¦§ç¨ 20 21 footstep_rireki_buf = JSON.parse(sessionStorage.getItem('footstep_rireki')); 22 if(footstep_rireki_buf === null){ 23 footstep_rireki_buf = ''; 24 } 25 26 // ãããã¨ã®è¦ªè¦ç´ è¨ç½® 27 if($('#pankuzu_wrap')[0]){ 28 $('#pankuzu_wrap').append($('<div id="footstep_wrap" />')); 29 }else{ 30 $('#mymainback').prepend($('<div id="footstep_wrap" />')); 31 } 32 $('#footstep_wrap').append('<div id="footstep"><div id="footstep_ttl">è¶³ãã¨</div><div id="footstep_detail"></div></div>'); 33 // ä»ã¾ã§ã®ãããã¨ã®å±é 34 $('#footstep_detail').append(footstep_rireki_buf); 35 if($('#footstep_detail span:last-child a').attr('href') != pageUrl){ 36 $('#footstep_detail').append('<span class="fs_rireki"><a href="' + pageUrl + '">' + pageTitle + '</a></span>'); 37 } 38 39 // æ«å°¾ï¼ç¾å¨ã®ãã¼ã¸ï¼ã¯ãªã³ã¯ãããªã 40 $('#footstep_detail span:last-child a').on('click keypress',function(){ 41 return false; 42 }); 43 // ãããã¨ã¯ãªã¢ 44 $('#footstep').append('<button type="button" value="åé¤" id="clear_footstep">åé¤</button>'); 45 $('#clear_footstep').on('click',function(){ 46 $('#footstep_detail').html(''); 47 footstep_rireki_buf = $('#footstep_detail').html(); 48 sessionStorage.setItem('footstep_rireki',JSON.stringify(footstep_rireki_buf)); 49 $(this).hide(); 50 $('#footstep_ttl').hide(); 51 }); 52 53 // æå¤§10ä»¶ã®å±¥æ´ãä¿æ 54 if($('#footstep_detail > span').length > 10){ 55 $('#footstep_detail > span:first-child').remove(); 56 } 57 58 footstep_rireki_buf = $('#footstep_detail').html(); 59 if(footstep_rireki_buf === undefined){footstep_rireki_buf = ''} 60 sessionStorage.setItem('footstep_rireki',JSON.stringify(footstep_rireki_buf)); 61 } 62 63 64 // æå¾ã«è¦ããã¼ã¸ã表示 65 function lastViewPage(){ 66 var fs_lastItemHtml = $('#footstep span:last-child').html(); 67 var fs_lastItemLS = JSON.parse(localStorage.getItem('footstep_lasturi')); 68 if(fs_lastItemLS === null){ 69 fs_lastItemLS = ''; 70 } 71 72 $('#header_nav2').prepend('<div id="link_lastviewpage" />'); 73 $('#link_lastviewpage').prepend(fs_lastItemLS); 74 75 localStorage.setItem('footstep_lasturi',JSON.stringify(fs_lastItemHtml)); 76 } 77 78 79 // ãã¼ã¸è¨æ¶ï¼åé¤ãã¿ã³ã¤ãã³ãå²å½ 80 function kTPsetDelButton(ktp_buf){ 81 $('#ktp_item_list .ktp_item_del').on('click keypress',function(){ 82 $(this).closest('.ktp_item').remove(); 83 ktp_buf = $('#ktp_item_list').html(); 84 localStorage.setItem('keep_page_uri',JSON.stringify(ktp_buf)); 85 }); 86 return ktp_buf; 87 } 88 // ãã¼ã¸è¨æ¶ 89 function keepThisPage() { 90 $('#container').after('<div id="keep_page"><div id="ktp_list_wrap"><div id="ktp_list_wrap2"><button type="button" id="ktp_save" class="btn_func"><span>ãã®ãã¼ã¸ã䏿ä¿åãã</span></button><button type="button" id="ktp_del_all" class="btn_func"><span>ä¿åãããã¼ã¸ããã¹ã¦åé¤ãã</span></button><ul id="ktp_item_list"></ul></div></div></div>'); 91 $('#ktp_list_wrap').hide(); 92 var ktp_buf = JSON.parse(localStorage.getItem('keep_page_uri')); 93 if(ktp_buf === null || ktp_buf === undefined){ 94 ktp_buf = ''; 95 } 96 $('#ktp_item_list').html(ktp_buf); 97 $('#keep_page').prepend('<div id="kpt_viewsw_wrap"><a href="javascript:void(0)" onclick="javascript:return false;" onkeypress="javascript:return false;" id="ktp_viewsw"><span>ãã®ãã¼ã¸ã䏿ä¿åãã</span></a></div>'); 98 99 // var ktp_area_width = $('#keep_page').width(); 100 // $('#keep_page').css('right','-'+ktp_area_width+'px'); 101 102 ktp_buf = kTPsetDelButton(ktp_buf) 103 $('#ktp_save').on('click keypress',function(){ 104 // $('#keep_page').css('right','0px'); 105 if($('#ktp_item_list li:first-child a').attr('href') != pageUrl){ 106 $('#ktp_item_list').prepend('<li class="ktp_item"><a href="'+pageUrl+'">'+pageTitle+'</a><button type="button" value="åé¤" class="ktp_item_del">åé¤</button></li>'); 107 ktp_buf = $('#ktp_item_list').html(); 108 localStorage.setItem('keep_page_uri',JSON.stringify(ktp_buf));
109 // ktp_area_width = $('#keep_page').width(); 110 // $('#keep_page').css('right','-'+ktp_area_width+'px'); 111 ktp_buf = kTPsetDelButton(ktp_buf) 112 } 113 }); 114 $('#ktp_del_all').on('click keypress',function(){ 115 $('#ktp_item_list').empty(); 116 ktp_buf = $('#ktp_item_list').html(); 117 localStorage.setItem('keep_page_uri',JSON.stringify(ktp_buf)); 118 }); 119 120 $('#ktp_viewsw,#ktp_list_wrap').on('click keypress',function(event){ 121 event.stopPropagation(); 122 }) 123 $('#ktp_viewsw').on('click keypress',function(){ 124 $(this).toggleClass('open'); 125 $('#ktp_list_wrap').toggle(); 126 }); 127 $(document).on('click keypress',function(){ 128 $('#ktp_viewsw').removeClass('open'); 129 $('#ktp_list_wrap').hide(); 130 }); 131 } 132 133 // keepThisPage(); 134 footstepList(); 135 // lastViewPage(); 136 137 } 138});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.