├── img └── bg.jpg ├── css ├── demo.css └── modal.css ├── README.md ├── index.html └── js ├── modal.js └── draggabilly.pkgd.js /img/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marcelodolza/draggable-google-modal/HEAD/img/bg.jpg -------------------------------------------------------------------------------- /css/demo.css: -------------------------------------------------------------------------------- 1 | /* GENERAL */ 2 | *{ box-sizing: border-box;} 3 | 4 | html{ 5 | height: 100%; 6 | } 7 | body{ 8 | background: #f9f9f9 url("../img/bg.jpg") no-repeat left top; 9 | font-family: 'Lato', arial; 10 | } 11 | 12 | .btn-fixed{ 13 | position: fixed; 14 | left: 20px; 15 | bottom: 20px; 16 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # draggable-google-modal 2 | Simple draggable modal with pure Javascript, inspired by *Google* Modal. 3 | 4 | ___ 5 | 6 | ### Features 7 | 8 | * Without external dependencies. 9 | * Drag and Drop 10 | * When is fixed, the drag is disabled. 11 | * Responsive 12 | * Shortcuts 13 | * Ctrl + **Up** Arrow: Fill the entire screen; 14 | * Ctrl + **Down** Arrow: Exit full screen; 15 | * Ctrl + **Left** Arrow: Align the left, filling half the screen*; 16 | * Ctrl + **Right** Arrow: Align the right, filling half the screen*; 17 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |