Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive, resizing, data normalization functions #5

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

djmj
Copy link

@djmj djmj commented Feb 21, 2017

I added following features to use the signature plugin in a mobile responsive layout where you can switch from portrait to landscape view.

  • responsive useful for for mobile switching between portrait and landscape
  • keep aspect ratio responsive mode
  • normalize data to target dimension if different applications and resolutions are used on the same data in database, the syncField can get normalized to a targeted dimension
  • allow resizing of signature if responsive on resize signature is not cleared but resized accordingly
  • init signature based on sync field used for ajax responses to redraw it

As an attachment i have an test / demo site showing the functions and explanations.

@kbwood I tried to send you a zip file by e-mail but the one on your website failed to send to

- **responsive** useful for for mobile switching between portrait and landscape
- **keep aspect ratio** responsive mode
- **normalize data to target dimension** for different applications and resolutions the data in syncField / database is normalized to a targeted dimension
- **allow resizing of signature if responsive** on resize signature is not cleared but resized accordingly
- **init signature based on sync field** useful for ajax responses to redraw it
Directly use javascript element instead of id lookup, since it was not working with special characters in id.
Remove resize window eventhandler in destroy using plugin event namespace to fix error on AJAX page updates.
@wesslim
Copy link

wesslim commented Apr 15, 2020

Hi @djmj @kbwood is this pull request still active?
I would like to try the normalize data to target dimension

http://htmlpreview.github.io/?https://github.com/djmj/signature/blob/master/test/index.html Did not worked anymore due to CORS blocking resources. So added new URL.
@djmj
Copy link
Author

djmj commented Apr 15, 2020

Hi @wesslim

actually i only created a fork some years ago and did not want to create a merge.
Most files are only used for my demo page in an primefaces environment.

If a merge should happen, only jquery.signature.js should be merged and the other files ignored or moved to a demo folder. I never did a merge in github before so i am not sure what to do and i dont want to break @kbwood repository.

@wesslim
Copy link

wesslim commented Apr 16, 2020

@djmj thanks for the explanation

@djmj
Copy link
Author

djmj commented Apr 16, 2020

@wesslim

You're welcome and yes its sadly there is a divergence in this fork and his latest update. Yesterday i updated the readme with a link to the demo page of my fork. So you can evaluate if it is usable. We are using this in our mobile hybrid-app for delivery receipts in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants