참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.
- 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
- 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
- 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
- 오페라: Ctrl-F5를 입력.
/* user:다메즈마 */
function randomRange(n1, n2) {
return Math.floor( (Math.random() * (n2 - n1)) + n1 );
}
if($(document).width() > 1000)
{
var akarin =
{
img:"http://a2.img.mobypicture.com/8622e6c3bff4bdfc59f55a6fd6a92dba_view.jpg",
};
var ayase =
{
img:"http://pds26.egloos.com/pds/201305/12/49/b0012149_518ea3bd93d70.jpg",
};
var mascot_list =
[
akarin,
ayase,
];
var select = mascot_list[randomRange(0,mascot_list.length)];
var comment = select.comment;
var wrap_div = document.createElement("div");
var mascot_img_html = document.createElement("img");
mascot_img_html.src = select.img;
$(wrap_div).css("position","fixed");
$(wrap_div).css("right","16px");
$(wrap_div).css("bottom","16px");
$(mascot_img_html).css("width","500px");
$(wrap_div).append(mascot_img_html);
$(document.body).append(wrap_div);
$(document.body).append(balloon);
}
if($(document).width() <1001)
{
var akarin =
{
img:"http://a2.img.mobypicture.com/8622e6c3bff4bdfc59f55a6fd6a92dba_view.jpg",
};
var ayase =
{
img:"http://pds26.egloos.com/pds/201305/12/49/b0012149_518ea3bd93d70.jpg",
};
var mascot_list =
[
akarin,
ayase,
];
var select = mascot_list[randomRange(0,mascot_list.length)];
var comment = select.comment;
var wrap_div = document.createElement("div");
var mascot_img_html = document.createElement("img");
mascot_img_html.src = select.img;
$(wrap_div).css("position","fixed");
$(wrap_div).css("right","8px");
$(wrap_div).css("bottom","8px");
$(mascot_img_html).css("width","250px");
$(wrap_div).append(mascot_img_html);
$(document.body).append(wrap_div);
$(document.body).append(balloon);
}