1function convertDate(stamp) { 2 if (!stamp) { 3 return ''; 4 } 5 date = new Date(stamp * 1000); 6 var year = date.getFullYear(); 7 var day = pad(date.getDate()); 8 var months = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']; 9 10 var lang = checkPageLanguage(); 11 12 if (lang === "/es"|| lang === '/es/sub/quotations' ) { 13 months = ['ENE', 'FEB', 'MAR', 'ABR', 'MAY', 'JUN', 'JUL', 'AGO', 'SEP', 'OCT', 'NOV', 'DIC']; 14 var month = months[date.getMonth()]; 15 return month + ' ' + day + ' ' + year; 16 } 17 18 if (lang === '/cht' || lang === '/chs' || lang === '/cht/sub/quotations' || lang === '/chs/sub/quotations'ã) { 19 months = date.getMonth(); 20 var month = pad(months + 1) ; 21 return year + '/' + month + '/' + day; 22 } 23 24 var month = months[date.getMonth()]; 25 return month + ' ' + day + ' ' + year; 26} 27 28function checkPageLanguage() { 29 var loc = window.location.pathname; 30 return loc.substring(0, loc.lastIndexOf('/')); 31} 32 33function pad(d) { 34 return (d < 10) ? '0' + d.toString() : d.toString(); 35} 36 37function printFocus(focus, index) { 38 39 $("#focuswindow").append('<div class="newsblock"> \ 40 <a href="' + focus.link + '" class="newsblock_img"><img src="' + focus.image + '" alt="" /></a> \ 41 <p class="news01"><a href="' + focus.link + '">' + convertDate(focus.stamp) + '</a></p> \ 42 <p class="news02"><a href="' + focus.link + '">' + focus.title + '</a></p> \ 43 <a href="' + focus.link + '"><div class="morenews"> </div></a></div>' 44 ); 45} 46 47function printAdwindow(adwindow, index) { 48 $(".flashcycle").append('<div class="banner"> \ 49 <a href="' + adwindow.link + '"> \ 50 <img src="' + adwindow.image + '" alt="' + adwindow.title + '" width="325" height="100" /> \ 51 </a> \ 52 </div>' 53 ); 54} 55 56$.ajax({ 57 url: "https://events.daisakuikeda.org/json/chs_callback.js", 58 timeout: 2000, 59 type: 'GET', 60 dataType: "jsonp", 61 jsonpCallback: 'callback', 62 success: function (data) { 63 data.events.forEach(printFocus); 64 data.ad_window.forEach(printAdwindow); 65// $('#contents').html(data.contents); 66 }, 67 error: function (xhr, status, error) { 68 lang = checkPageLanguage(); 69 switch (lang) { 70 case '/es': 71// $('#contents').html('<p>En construcción. Inténtelo de nuevo más tarde. Gracias.</p>'); 72 $('.flashcycle').html('<p>En construcción. Inténtelo de nuevo más tarde. Gracias.</p>'); 73 $('#focuswindow').html('<p>En construcción. Inténtelo de nuevo más tarde. Gracias.</p>'); 74 break; 75 76 case '/chs': 77// $('#contents').html('<p>ç½é¡µæ´æ°ä¸ï¼è¯·ç¨ååè¯ã谢谢ã</p>'); 78 $('.flashcycle').html('<p>ç½é¡µæ´æ°ä¸ï¼è¯·ç¨ååè¯ã谢谢ã</p>'); 79 $('#focuswindow').html('<p>ç½é¡µæ´æ°ä¸ï¼è¯·ç¨ååè¯ã谢谢ã</p>'); 80 break; 81 82 case '/cht': 83// $('#contents').html('<p>ç¶²é æ´æ°ä¸ï¼è«ç¨å¾å試ãè¬è¬ã</p>'); 84 $('.flashcycle').html('<p>ç¶²é æ´æ°ä¸ï¼è«ç¨å¾å試ãè¬è¬ã</p>'); 85 $('#focuswindow').html('<p>ç¶²é æ´æ°ä¸ï¼è«ç¨å¾å試ãè¬è¬ã</p>'); 86 break; 87 88 default: 89// $('#contents').html('<p>Under construction. Please try again later. Thank you</p>'); 90 $('.flashcycle').html('<p>Under construction. Please try again later. Thank you</p>'); 91 $('#focuswindow').html('<p>Under construction. Please try again later. Thank you</p>'); 92 break; 93 } 94 }, 95}); 96 97$(window).on("load", function () { 98 $('.flashcycle').cycle({ 99 fx: 'fade', 100 speed: 3000, 101 timeout: 7000, 102 sync: 0, 103 pager: '#nav' 104 });
105 $('.flashcycle').mouseover(function () { 106 $('.flashcycle').cycle('pause'); 107 }); 108 $('.flashcycle').mouseout(function () { 109 $('.flashcycle').cycle('resume'); 110 }); 111 $('#prev').mouseover(function () { 112 $('.flashcycle').cycle('pause'); 113 }); 114 $('#prev').mouseout(function () { 115 $('.flashcycle').cycle('resume'); 116 }); 117 $('#next').mouseover(function () { 118 $('.flashcycle').cycle('pause'); 119 }); 120 $('#next').mouseout(function () { 121 $('.flashcycle').cycle('resume'); 122 }); 123 bnrModal(); 124}); 125 126function bnrModal() { 127 $('.openBoxButton').magnificPopup({ 128 type: 'image', 129 image: { 130 markup: '<div class="mfp-figure">' + 131 '<div class="mfp-close"></div>' + 132 '<div class="mfp-img"></div>' + 133 '<div class="mfp-bottom-bar">' + 134 '<p class="mfp-title"></p>' + 135 '</div>' + 136 '</div>', 137 138 cursor: 'isOpenPopup', // ãããã¢ããã表示ããã¨ãã®bodyã¿ã°ã«è¿½å ãããã¯ã©ã¹ãæå® 139 // titleSrc: function(item) { 140 // return item.el.attr('title'); 141 // } 142 } 143 }); 144}
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.