1var Navi =(function(){ 2 3 var ALL_NUM = 7; 4 var _currentNavi; 5 var _currentNum = 0;//ã©ããå¸¸ã«æ¼ããå ´åã¯-1ã«ã 6 7 var _isInit =false; 8 var _isEnabled =false; 9 10 var lineUpTop; 11 12 /******************************************************* 13 14 @init 15 16 ********************************************************/ 17 function init(){ 18 19 //ã©ãã®ãã¼ã¸ã«ããããåå¾ã 20 var thisContents = Contents.getThisContents(); 21 _currentNum = thisContents; 22 23 if($("#lineup")[0]){ 24 lineUpTop = $("#lineup").offset().top; 25 $(window).resize(function(){ 26 lineUpTop = $("#lineup").offset().top; 27 }) 28 } 29 30 $(".g-navi").children("p").each(function(i){ 31 32 var src; 33 var elem = $(this); 34 35 if(i == 0){ 36 }else{ 37 if(i == _currentNum){ 38 $(this).addClass("no-change").children(".over").css({"opacity":1}); 39 } 40 } 41 42 elem.click(function(){ 43 44 if(_currentNum == i){ 45 return; 46 } 47 48 var url; 49 switch(i){ 50 case 0: 51 //top 52 location.href = BASE_URL; 53 break; 54 case 1: 55 //news 56 location.href = BASE_URL + "news/index.php?page=1"; 57 break; 58 case 2: 59 //about 60 location.href = BASE_URL + "about/"; 61 break; 62 case 3: 63 //character 64 location.href = BASE_URL + "character/"; 65 break; 66 case 4: 67 //lineup 68 if(_currentNum == 0){ 69 var overlay = $("#overlay").css("display"); 70 if(overlay == "block"){ 71 lineUpTop = $("#lineup").offset().top - 66; 72 $('html,body').animate({scrollTop:lineUpTop},500,'easeInOutQuart'); 73 $("#drawer-btn span").removeClass("openNavi"); 74 $("#header-navi").stop().slideUp(500); 75 $("#overlay").fadeOut(200); 76 77 }else{ 78 $('html,body').animate({scrollTop:lineUpTop},500,'easeInOutQuart'); 79 } 80 }else{ 81 82 location.href = BASE_URL + "index.php#lineup"; 83 84 } 85 break; 86 case 5: 87 //movie 88 location.href = BASE_URL + "movie/index.php?page=1"; 89 break; 90 case 6: 91 //discography 92 location.href = BASE_URL + "discography/index.php?a=disco_archive&c=all"; 93 break; 94 case 7: 95 //event 96 location.href = BASE_URL + "event/index.php?page=1"; 97 break; 98 default: 99 break; 100 } 101 }); 102 103 104 }); 105 }; 106 107 /* 108 function onNaviInit(){ 109 WINDOW.trigger(Event.ON_NAVI_INIT); 110 _isInit =true; 111 _isEnabled =true; 112 } 113 114 115 116 function changeNavi(__id){ 117 118 var _obj; 119 var _str; 120 121 _obj =$(_str); 122 123 if(_currentNavi != undefined){ 124 125 if(_obj.attr("id") == _currentNavi.attr("id")){ 126 return; 127 }else{ 128 } 129 130 if(_currentNavi != undefined){ 131 enableBtn(_currentNavi.children('a'),true); 132 } 133 134 }else{ 135 136 } 137 138 enableBtn(_obj.children('a'),false); 139 _currentNavi = _obj; 140 } 141 */ 142 143 144 145 146 /*------------------------- 147 148 enableBtn 149 150 -------------------------*/ 151 /*function enableBtn(__obj,__flg){ 152 153 var img = __obj.children("img"); 154 var src = __obj.children('img').attr('src'); 155 156 if( typeof src=="undefined"){return}; 157 158 if(__flg){ 159 160 img.removeClass("no-change"); 161 __obj.css({"cursor":"pointer"}); 162 off(img); 163 164 }else{ 165 img.addClass("no-change"); 166 $(img).css({"opacity":1,"display":"block"}); 167 __obj.css({"cursor":"auto"}); 168 on(img); 169 } 170 };*/ 171 172 173 /*--------------------------------------------- 174 @isEnabled 175 ---------------------------------------------*/ 176 /*function getIsEnabled(){ 177 178 if(!_isEnabled){ 179 return false; 180 }else{ 181 return true; 182 } 183 } 184 185 186 function setIsEnabled(__flg){ 187 _isEnabled =__flg; 188 } 189 */ 190 191 /*--------------------------------------------- 192 @currentNum 193 ---------------------------------------------*/ 194 /*function getCurrentNum(){ 195 return _currentNum; 196 } 197 198 199 function getIsInit(){ 200 return _isInit; 201 }*/ 202 203 return{ 204 init:init, 205 /*enableBtn:enableBtn, 206 show:show, 207 hide:hide, 208 getCurrentNum:getCurrentNum, 209 getIsInit:getIsInit, 210 setIsEnabled:setIsEnabled*/ 211 }; 212})();
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.