* change url to hide app behind a relative path
* pass some of ther server configuration through to the client
* serve static files and connect to socket.io correctly when a URL Prefix is set
* Revert the changes to opengraph meta tags
opengraph meta tags need to be absolute URLs
* Remove unused commented-out code
* fix background.png url
* use prefix path for open graph metadata
* Revert changes using server side url modifications
* get open graph and socket.io url from request url / window.location
* remove debug console.log
* Fix favicon when not running under "/"
* Add proxying instructions to the README
Co-authored-by: Laurent Mazet <mazet@softndesign.org>
Co-authored-by: ophir <pere.jobs@gmail.com>
* fix color picker on safari
* do not block space above and below opened tooltip from passing pointer events through to the svg
* don't automatically retract tooltip when hovering
* use focus instead of hover on mobile and blur focus on first touchmove
* stop UA sniffing and assert that activeElement exists before attempting to blur
* Disable dragging of menu icons
* Remove unused CSS property
Property is ignored due to the display. With 'display: block', vertical-align should not be used.
* Better image dragging prevention
Co-authored-by: Ophir LOJKINE <ophir.lojkine@auto-grid.com>
Make the text field of the text tool appear at the position where the text will be written.
* improved Text tool
* ignore layers for now
* only assert value is not null or undefined / allow 0 as value
* remove unused layer code
* Reformat text.js
Co-authored-by: Robert Beach <rdbeach@gmail.com>
Co-authored-by: @finnboeger
* Initial Changes (#1)
* Move socket event handlers and initial connection to connect function
* Converted await statements to .then()
* Toggle tool if clicked again and toggling option exists
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
Co-authored-by: Robert Beach <rdbeach@gmail.com>
* Updated client styles
- disable selecting text in tool menu
- change design of tool boxes to be square and smaller
- reduce text size in sliders
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
* Changed Apple Touch Icon
* Update size and opacity icon, include fontawesome for future use
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
* Changed favicon svg
* replace font-family with valid value
* Added icons and icomoon font
* change eraser and zoom icon
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
* Revert icon change for now
* Revert "Converted await statements to .then()"
This reverts commit b35e0207df.
* Revert "Revert icon change for now"
This reverts commit 34e354f00f.
* Restored new Icons
* Restored favicon
* Remove fontawesome
* Increase icon sizes
* Update the zoom icon
See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098
* set display inline block for tool names, otherwise firefox doesn't respect margin-bottom
* Rework tool icons
* fix color presets position
Co-authored-by: finnboeger <finnboeger@users.noreply.github.com>
Co-authored-by: Robert Beach <rdbeach@gmail.com>
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
Color presets (#25)
* Add color presets with keys 0..9
Also, initialize size/thickness with 7.
* Add click-able buttons for color presets
* Refactor color presets: use Minitpl
Use Minitpl for creating the color preset buttons. Also, allow for more
colors than keys and don't use just numeric keys, but allow all
characters.
* Fix layout for case if no color presets are defined
* colors in array, CSS fix, restore random initColor
See: https://github.com/lovasoa/whitebophir/pull/24#issuecomment-608409282
* Remove hardcoded size
* Simplify condition
Co-authored-by: adrian.buerli <adrian.buerli@ims.co.at>
I hope this will nudge people towards watching what is already on the board
before starting to draw.
It may encourage people to be constructive.
This is a (very) small step towards #6