NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

// 스크립트 활성화 플래그
var scriptEnabled = false;
var cursorEnabled = true; // 커서 스크립트 활성화 플래그

// 중력과 화면 경계 처리를 포함한 커서 이동
var vel = { x: 0.7, y: -0.3 };
var pos = { x: 0, y: 0 };
var gravity = 0.1; // 초기 중력 값

// 커서 이동을 처리하는 함수
function moveCursor() {
if (scriptEnabled && cursorEnabled) {
// 커서 스크립트가 활성화되어 있을 때만 실행
// 중력 고려하여 Y 방향 속도 조절
vel.y += gravity;

// 커서의 위치 업데이트
pos.x += vel.x;
pos.y += vel.y;

// 바닥에 닿으면 Y 방향 속도 반전
if (pos.y > 100) {
pos.y = 100;
vel.y = -vel.y;
}

// 화면 경계에 도달했는지 확인하고 속도 반대 방향으로 변경
if (pos.x > 100 || pos.x < 0) {
vel.x = -vel.x;
}

// 커서의 위치 업데이트를 서버로 전송
MPP.client.sendArray([{ m: "m", x: pos.x, y: pos.y }]);
}
}

//COMMANDS
// 사용자 정의 명령을 처리하는 함수
MPP.client.on("a", function (msg) {
var asgr = msg.a.split(" ");
var cmd = asgr[0].toLowerCase();

// 스크립트를 활성화하는 명령
if (cmd == "h_on-bounce") {
MPP.chat.send(PRE + "Cursor animation changed to: Bounce");
scriptEnabled = true;
cursorEnabled = true; // 커서 이동 활성화

scriptEnabled2 = false;
scriptEnabled3 = false;
}
// 스크립트를 비활성화하는 명령
if (cmd == "h_off-bounce") {
MPP.chat.send(PRE + "Bounce cursor animation is turned off");
scriptEnabled = false;
cursorEnabled = true; // 커서 이동 활성화
}
setInterval(moveCursor, 50);
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.