Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

library for building virtual desktop environment on the web

License

NotificationsYou must be signed in to change notification settings

Mouradouchane/DesktopJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DesktopJS it's a javascript library for building virtual desktop environment as a web-app .

Preview

demo.mp4


Get Started

if you want to use it directly , just include "min-version" .

// "min-version" not available yet :(

if you want to use "dev-version" , follow instructions below .

1 - clone this repo

git clone https://github.com/Mouradouchane/DesktopJS.git

2 - import "dev-version" to your project

import{desktop}from"...path/Desktop-dev/desktop.js";

3 - start usage and take a look to thedocs .


Snippet

simple example of desktop and window with resize and drag events .

// desktop objectconstdesk=newdesktop(document.body);// new windowletwindow=desktop.new.window( ...pass_args);// make window open or visiblewindow.open();// resize event only if window get resized in leftwindow.on.resize.left(function(WIN,EVENT){console.warn("Hi , resize in left is happening !");// log current window widht and heightconsole.log("Width  :",window.get.width());console.log("Height :",window.get.height());});// when window in drag in eventwindow.on.drag(function(WIN,EVENT){console.warn("Hi , window in drag right now");// log current window x and y positionconsole.log("X :",window.get.x());console.log("y :",window.get.y());});

Documentation

under construction right now but you can using it to get details about everything in the library docs .


Contributions

  • if you found any kind of "bug , error , problems" feel free to open issues and talk about what you found .

  • if you want to contribute here in DesktopJS you welcome , you can "fix bugs" , "add futures" , "improve codes" , "refactor codes" DesktopJS is open for you and everyone else .

  • just before you start working on anything directly , talk to me about it then feel free to do what you want 😃 .

About

library for building virtual desktop environment on the web

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp