PageSourceSearch

https://cosmofoods-ss.co.jp/common/tools/blk_articleCalendar.js

js cosmofoods-ss.co.jp collected 2026-10-07 10:46:28 UTC 1,225 bytes, 47 lines download raw bytes

1if(typeof axios === 'undefined'){
2	var jsurl = 'https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js' ;
3
4	var request = new XMLHttpRequest();
5	request.open('GET', jsurl, false);
6	request.send(null);
7
8	if (request.status === 200) {
9	  var script = document.createElement('script');
10	  script.text = request.responseText;
11	  document.body.appendChild(script);
12	}
13}
14
15var articleCalendar = function(blogid,dy,dm){
16	var retd = '';
17	var me = this;
18	var url = '/api/public/articlecalendar/' + blogid ;
19
20	if (typeof dy !== 'undefined') {
21		url += '/' + dy ;
22	}
23	if (typeof dm !== 'undefined') {
24		url += '/' + dm ;
25	}
26
27	axios.get(url )
28	.then(function(response) {
29		if(typeof response.data.data === 'undefined'){
30			me.retd = response.data.message;
31		} else {
32			me.retd = response.data.data.allRet;
33		}
34		
35	    var trgObj = document.querySelectorAll("[data-rds='bacal']");
36	    for (var i = 0, len = trgObj.length; i < len; ++i) {
37			if( trgObj[i].innerHTML.trim() == blogid || trgObj[i].getAttribute('data-bid') == blogid ){
38				trgObj[i].innerHTML = me.retd;
39				trgObj[i].setAttribute('data-bid',blogid);
40			}
41	    }
42	})
43	.catch(function(error) {
44	    //console.log(error);
45	});
46
47}

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.