|
|
1번째 줄: |
1번째 줄: |
| var isMobile = false;
| | body |
| if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ isMobile = true; }
| | { |
| if(isMobile==false) { $('head').append('<script src=\'/index.php?title=사용자:Amasia/as.js&action=raw&ctype=text/javascript\'><\/script>');
| | font-family: "나눔고딕코딩","NanumGothic_Coding"; |
| var Amasia = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQlzDLcgE4o5tJKPyAcSGJrqkFxjFj600BhTV94mCg5TCkOHWMh";
| | } |
| | html ,body |
| | { |
| | background: #77aaff url("이미지 링크 http://") no-repeat fixed right center / contain; |
| | } |
| | | |
| var Amasia_comment =
| | @media (min-width:770px){ |
| [
| | table.float-left{ |
| "혹시 제 이름 아세요?.",
| | float:left; |
| "혹시 힘드시다면 한번 제가 당신을 꼬옥 안아봐도 될까요?",
| | } |
| "혹시 어디 가시나요?",
| | table.float-right{ |
| "이상하게 당신을 보면 마음이 너무 편해져요.이건 무슨 느낌일까요?",
| | float:right; |
| "혹시 저 안아주실 수 있으세요?그러면 너무 행복할 것 같아요.",
| | } |
| "저랑 단둘이서 어디 가지 않으실래요?당신이랑 데이트란 걸 너무 해보고 싶어요.",
| | } |
| "당신이랑 너무너무 키스하고 싶어요."
| | @media (max-width:770px){ |
| ];
| | table.float-right{ |
|
| | width:100%; |
| mascot.AddImage(Amasia);
| | } |
| mascot.ShowMessage(Amasia_comment[randomRange(0,Amasia_comment.length)]);
| | table.float-left{ |
| var temp = function(){
| | width:100%; |
| var param =
| | } |
| {
| | } |
| "action":"query",
| | .libre_left_content,.libre_footer |
| "meta":"notifications",
| | { |
| "notlimit":10,
| | background-color: rgba(255, 255, 255, 1); |
| "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) + "'>길에서 주웠는데<br>혹시 누군지 아세요? </a>");
| |
| }
| |
| else
| |
| {
| |
|
| |
| }
| |
| });
| |
| };
| |
| temp();
| |
| setInterval(temp,1000 * 20); }
| |