('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')
Format :
http://view.officeapps.live.com/op/view.aspx?src=[ONLY_OFFICE_FILE_URL_ENCODED]
let mouseMoved = false; | |
document.addEventListener('mousedown', () => { | |
mouseMoved = false; | |
}, false); | |
document.addEventListener('mousemove', () => { | |
mouseMoved = true; | |
}, false); |
html { | |
height: 100%; | |
} | |
body { | |
background: linear-gradient(90deg, #6bafd2 0%, #a4c8dc 38%, #d6cbca 58%, #eabc96 79%, #db8876 100%); | |
min-height: 100%; | |
height: 100%; | |
position: relative; | |
display: flex; |
html { | |
height: 100%; | |
font-family: 'Source Sans Pro', sans-serif; | |
} | |
body { | |
background: linear-gradient(90deg, #6bafd2 0%, #a4c8dc 38%, #d6cbca 58%, #eabc96 79%, #db8876 100%); | |
min-height: 100%; | |
height: 100%; | |
position: relative; |
sed -i '' "s/\(<tag_to_target [^>]*attribute_to_target=\"\)[^\"]*\"/\1$variable_to_set\"/" file.xml |
document.addEventListener('click', (e) => { | |
const el = e.target; | |
if (el.tagName == 'A' && el.href && el.getAttribute("target") === "_blank") { | |
window.todesktop.contents.openUrlInBrowser(el.href); | |
} | |
}, false); |
import loadImage from "blueimp-load-image"; | |
import { readAndCompressImage } from "browser-image-resizer"; | |
import { captureException } from "../sentry"; | |
const ONE_MB_IN_BYTE = 1048576; | |
interface Options { | |
/** @default Number.POSITIVE_INFINITY */ | |
maxSizeMB?: number; | |
/** @default undefined */ |