사용자:Zlzleking/common.js: 두 판 사이의 차이

편집 요약 없음
(문서를 비움)
태그: 비우기
(같은 사용자의 중간 판 41개는 보이지 않습니다)
1번째 줄: 1번째 줄:
$('head').append('<script src=\'/index.php?title=사용자:다메즈마/hisyokan.js&action=raw&ctype=text/javascript\'><\/script>');
 
var ikazuchi = "/images/c/c3/StrikeFreedomGundam.png";
var ikazuchi_comment =
[
"시스템 시동합니다. ",
"무제한 네트워크 세대의 강습 모듈. ",
"VPS장갑은 안전합니다. ",
"평화의 달성을 위해 전투합니다. ",
"다수의 적대적 모빌슈트 발견. <br>멀티 락온 개시. ",
"하이맷 풀버스트. 갑니다! "
];
mascot.AddImage(ikazuchi);
mascot.ShowMessage(ikazuchi_comment[randomRange(0,ikazuchi_comment.length)]);
var temp = function(){
var param =
{
"action":"query",
"meta":"notifications",
"notlimit":10,
"format":"json"
};
$.ajax("/api.php",
{
data:param,
dataType:"json"
})
.done(function(res)
{
var list_o = res.query.notifications.list;
var list = [];
for(var key in list_o)
{
list.push(list_o[key]);
}
var unread_message = [];
for(var i = 0 ; i < list.length ; i++)
{
if(list[i].read == null && list[i].type != "page-linked")
{
unread_message.push(list[i]);
}
}
if(unread_message.length != 0)
{
mascot.ShowMessage("<a style='color:#FFF;' href='/wiki/"+ encodeURIComponent(unread_message[unread_message.length - 1].title.full)  + "'>메세지가 와 있습니다. </a>");
}
else
{
}
});
};
temp();
setInterval(temp,1000 * 20);

2019년 7월 21일 (일) 16:02 판