1$(function(){ 2 3 4 //ç»åãªã³ã¯ã¿ã 5 // $.fn.imgTab({defaultSelect:0,cookie:'top-tab',tabs:$("#top-tab .list a"),pages:$("#top-tab .box")}); 6 7 // ããã¹ãã¿ã 8 // $.fn.textTab({defaultSelect:0,cookie:'topTab2',tabs:$("#toptab .list li"),pages:$("#top-tab .box")}); 9 10 // åºåã¯ãªãã¯ãã«ã¦ã³ããã 11 // $('.kokoku-area .list a').bannerClick({}); 12 13 // ã¹ã©ã¤ãã¼è¨å® 14 var bxslidTop1, bxslidTop2; 15 setSlider(); 16 17 $(window).resize(function() { 18 if(bxslidTop1 != null){ bxslidTop1.destroySlider(); } 19 if(bxslidTop2 != null){ bxslidTop2.destroySlider(); } 20 setSlider(); 21 }); 22 23 function setSlider() { 24 if (window.innerWidth > 768) { 25 // PC 26 // ã¡ã¤ã³ãã¸ã¥ã¢ã«1 27 if ($('.bxslider-top-side01 > li').length > 0) { 28 bxslidTop1 = $('.bxslider-top-side01').bxSlider({ 29 auto: true 30 ,autoControls: true 31 ,speed:1000 32 ,pause:5000 33 ,maxSlides: 1 34 ,minSlides: 1 35 ,moveSlides: 1 36 ,slideMargin:0 37 ,autoControlsCombine: true 38 ,captions: false 39 ,controls: false 40 ,pager: false 41 ,mode: 'fade' 42 ,onSliderLoad:function(currentIndex){ 43 } 44 }); 45 } 46 47 // ã¡ã¤ã³ãã¸ã¥ã¢ã«2 48 if ($('.bxslider-top-side02 > li').length > 0) { 49 bxslidTop2 = $('.bxslider-top-side02').bxSlider({ 50 auto: true 51 ,autoControls: true 52 ,speed:1000 53 ,pause:5000 54 ,maxSlides: 1 55 ,minSlides: 1 56 ,moveSlides: 1 57 ,slideMargin:0 58 ,autoControlsCombine: true 59 ,captions: false 60 ,controls: false 61 ,pager: false 62 ,mode: 'fade' 63 ,onSliderLoad:function(currentIndex){ 64 } 65 }); 66 } 67 68 $('.top-slider-start').hide(); 69 $('.top-slider-stop').css('display', 'inline-block'); 70 71 // ã³ã³ãã³ãé«ãè¨å® 72 $('.contents-wrap').height($(window).height() - $('#footer').height() - $('.kinkyu-box').height()); 73 } 74 } 75 76 // START 77 $('.top-slider-start').on('click', function() { 78 $(this).hide(); 79 $('.top-slider-stop').css('display', 'inline-block'); 80 $('.bx-start').trigger('click'); 81 return false; 82 }); 83 84 // STOP 85 $('.top-slider-stop').on('click', function() { 86 $(this).hide(); 87 $('.top-slider-start').css('display', 'inline-block'); 88 $('.bx-stop').trigger('click'); 89 return false; 90 }); 91 92 //ãããã¹ã©ã¤ãã¼ã®ãã£ãã·ã§ã³ 36æå以ä¸ã¯...ã«ãªã 93 // var $setElm = $('.bx-caption span'); 94 // var cutFigure = '36'; // ã«ããããæåæ° 95 // var afterTxt = ' â¦'; // æåã«ããå¾ã«è¡¨ç¤ºããããã¹ã 96 97 // $setElm.each(function(){ 98 // var textLength = $(this).text().length; 99 // var textTrim = $(this).text().substr(0,(cutFigure)) 100 101 // if(cutFigure < textLength) { 102 // $(this).html(textTrim + afterTxt).css({visibility:'visible'}); 103 // } else if(cutFigure >= textLength) { 104 // $(this).css({visibility:'visible'}); 105 // } 106 // }); 107 108 var renkei_no = 1 //飿ºè¨å®No 109 var external_rss_path = externalRssPath(renkei_no); 110 $('#smart-alert-area').smartAlertListView({ 111 rssPath: external_rss_path, 112 historyPath: site_domain + '/cgi-bin/smart_alert.php/' + renkei_no +'/list', 113 historyClass: '.more', 114 ulClass: '.list', 115 textClass: '.txt', 116 dateClass: '.date', 117 limit: 10, //æå¤§è¡¨ç¤ºæ° 118 dateformat: 'YYYYå¹´MæDæ¥ hhæmmå', //YYYYå¹´MMæDDæ¥(WW) hhæmmåssç§ 119 noDataView: 0, //ã¢ã©ã¼ããç¡ãå ´å 0:ã¨ãªã¢ãã¨é表示 1:ã¨ãªã¢ã¯è¡¨ç¤º 120 noDataClass: '.no-data', //ã¢ã©ã¼ããç¡ãå ´åã®æè¨ã¯ã©ã¹ 121 }); 122 123 124 function externalRssPath (renkei_no) { 125 if (site_domain.includes('http://www45.dev.smartcms.smart-lgov.jp/')) { 126 return site_domain + '/smartalert.json'; // 確èªç¨ 127 } else { 128 var _sd = site_domain.replace(/^https?:/g, document.location.protocol); 129 return _sd + '/cgi-bin/smart_alert.php/' + renkei_no; 130 } 131 } 132 133 /* ã½ã¼ã·ã£ã«ãã¿ã³çæ */ 134 (function(){ 135 136 var $social = $('.top-sns .sns-box .list'); 137 var encodeUrl = encodeURI(document.URL); 138 var pageTitle = encodeURI($('title').html()); 139 140 //twiter 141 var $twitter = $social.find('.twitter'); 142 var $twImage = $twitter.find('.btn'); 143 144 //https://twitter.com/intent/tweet?url=<URL>&text=<ããã¹ã>&via=<ã¦ã¼ã¶ã¼ID>&hashtags=<ã¿ã°å>&related=<ã¦ã¼ã¶ã¼ID> 145 var twShareLink = 'https://twitter.com/intent/tweet?url=' + encodeUrl + '&text=' + pageTitle; 146 if ($twitter.size() > 0) { 147 // $twImage.wrap('<a />'); 148 $twitter.find('a').attr('href',twShareLink).attr('target','_blank'); 149 } 150 151 //facebook 152 var $facebook = $social.find('.facebook'); 153 var $fbImage = $facebook.find('.btn'); 154 155 // "http://www.facebook.com/sharer.php?u="+ <URL> +"&t=" + <TITLE> 156 var fbShareLink = 'http://www.facebook.com/sharer.php?u=' + encodeUrl + "&t=" + pageTitle; 157 if ($facebook.size() > 0) { 158 // $fbImage.wrap('<a />'); 159 $facebook.find('a').attr('href',fbShareLink).attr('target','_blank'); 160 } 161 162 })();
163 164 165 // åé¢ç 166 //PCã»ã¹ããåãæ¿ã 167 // MutualSwitching.config.setPathSettings({ 168 // "/": { 169 // "pc_width": 1024, 170 // "sp_width": 720, 171 // "layout_type": 1 172 // } 173 // }).setViewPcBySp().setExistsSpPage(is_smartphone); 174 // MutualSwitching.run.ready(); 175 176 // //sp.htmlãè¦ã¦ããæã«ãpcãã©ã°ããã£ã¦ããããã¹ãããã©ã°ã«å¤ãã 177 // if(typeof isPcPage != "undefined"){ 178 179 // if(isPcPage){ 180 181 // var linkPath; 182 // var replacePath; 183 184 // var link_top = $("LINK[href$='/top.css']"); 185 // var regex_top = new RegExp('(^.*)\/(top\.css)'); 186 187 // if (link_top.length) { 188 // var sp_style = link_top.attr('href'); 189 // replaceClass = sp_style.replace(regex_top,'$1'+'/sp_'+'$2'); 190 // link_top.attr("href", replaceClass); 191 // } 192 // } 193 // } 194 195 196 197}); 198 199// åé¢ç 200//PCã»ã¹ããåãæ¿ã 201// $(window).on('load', function(){ 202// //sp.htmlãè¦ã¦ããæã«ãpcãã©ã°ããã£ã¦ããããã¹ãããã©ã°ã«å¤ãã 203// if(typeof isPcPage != "undefined"){ 204 205// if(isPcPage){ 206 207// var linkPath; 208// var replacePath; 209 210// var link_top = $("LINK[href$='/top.css']"); 211// var regex_top = new RegExp('(^.*)\/(top\.css)'); 212 213// if (link_top.length) { 214// var sp_style = link_top.attr('href'); 215// replaceClass = sp_style.replace(regex_top,'$1'+'/sp_'+'$2'); 216// link_top.attr("href", replaceClass); 217// } 218// } 219// } 220 221// });
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.