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

Add package.json for NPM support #220

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
vendor/

# jetbrains
.idea/
.idea_modules/
*.ipr
*.iws
*.iml
atlassian-ide-plugin.xml
com_crashlytics_export_strings.xml

# vim
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
*~

# sublime text
*.sublime-workspace
*.sublime-project

# system files
.DS_Store
._*
.AppleDouble
.LSOverride
.Spotlight-V100
.Trashes
*.bak
*.swp
*.orig
Thumbs.db

# vcs
.svn
.cvs
Binary file removed assets/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion croppic.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
var that = this;

// CREATE UPLOAD IMG FORM
var formHtml = '<form class="' + that.id + '_imgUploadForm" style="visibility: hidden;"> <input type="file" name="img" id="' + that.id + '_imgUploadField"> </form>';
var formHtml = '<form class="' + that.id + '_imgUploadForm" style="visibility: hidden;"> <input type="file" name="img" id="' + that.id + '_imgUploadField" accept="image/*"> </form>';
that.outputDiv.append(formHtml);
that.form = that.outputDiv.find('.'+that.id+'_imgUploadForm');

Expand Down
2 changes: 1 addition & 1 deletion croppic.min.js

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

{
"name": "croppic",
"homepage": "http://www.croppic.net",
"version": "1.0.3",
"authors": [
"Mat Steinlin <[email protected]> (http://www.steinlincosnulting.com)",
"Ognjen Božičković"
],
"description": "The image cropping jquery plugin that will satisfy your needs and much more",
"license": "MIT",
"main": "croppic.js",
"keywords": [
"croppic",
"crop",
"scale",
"rotate",
"move",
"zoom",
"image",
"jquery"
],
"dependencies": {
"jquery-mousewheel": "~3.1.12",
"jquery": ">= 2.1.3"
},
"repository": "https://github.com/sconsult/croppic"
}