This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ^((8|\+7)[\- ]?)?(\(?\d{3,4}\)?[\- ]?)?[\d\- ]{5,10}$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo OFF | |
| @REM OSPanel_backup.cmd (2021-10-17) | |
| @REM ------------- | |
| @REM --- PATHS --- | |
| @REM ------------- | |
| set NAME=OSPanel | |
| set DIST=C:\portable | |
| set APP=C:\portable\OSPanel | |
| set BACKUP=%APP%\!backup | |
| set ARC="C:\Program Files\7-Zip\7z.exe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Outline all classes. | |
| */ | |
| [class] { | |
| outline: 5px solid lightgrey; | |
| } | |
| /** | |
| * Outline all BEM Elements. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var file = document.querySelector('[type=file]'); | |
| var dropzone = document.querySelector('.wrapper'); | |
| file.addEventListener('change', function() { | |
| previewImages(this.files); | |
| this.value = ''; | |
| }, false); | |
| dropzone.addEventListener('dragover', function(event) { | |
| event.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var data = new FormData(form); | |
| queue.forEach(function(element) { | |
| data.append('image', element.file); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.querySelector('[type=file]').addEventListener('change', function() { | |
| [].forEach.call(this.files, function(file) { | |
| if (file.type.match(/image.*/)) { | |
| var reader = new FileReader(); | |
| reader.onload = function(event) { | |
| var img = document.createElement('img'); | |
| img.src = event.target.result; | |
| div.appendChild(img); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var xhr = new XMLHttpRequest(); | |
| xhr.upload.addEventListener('progress', function(event) { | |
| if (event.lengthComputable) { | |
| progress.value = Math.round((event.loaded * 100) / event.total); | |
| } | |
| }, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| submit.disabled = !form.checkValidity(); |
NewerOlder