Kevin MacMartin
|
ceb72b0e13
|
Update the package version in the package.json
|
2017-11-13 20:01:20 -05:00 |
|
Kevin MacMartin
|
bff7e6703f
|
Add importable javascript "module" version
|
2017-11-13 19:54:55 -05:00 |
|
Kevin MacMartin
|
5128f85001
|
Add dependencies object to the package.json
|
2017-11-13 19:38:51 -05:00 |
|
Kevin MacMartin
|
4871fc9ae9
|
Add more properties to package.json and package-lock.json
|
2017-08-08 15:34:23 -04:00 |
|
Kevin MacMartin
|
fc32e030f2
|
Update gulp-concat and add a package-lock.json
|
2017-08-08 15:14:37 -04:00 |
|
Kevin MacMartin
|
6158e752c6
|
Remove the yarn.lock
|
2017-08-08 15:12:03 -04:00 |
|
Kevin MacMartin
|
23a7babcfb
|
Add new external functions to return the current width and height, and update the description of the getWidth and getHeight functions to make it more clear that they return the original width and height supplied for the element
|
2017-07-14 14:20:53 -04:00 |
|
Kevin MacMartin
|
7dae4c63fa
|
Remove pointless multiplication against the scaleFactor in the scale factor conditions, and add a new option called "fit" that allows the object-fit strategy to be configured to either contain within the parent element or cover it (with the default set to the original behavior)
|
2017-05-31 15:59:16 -04:00 |
|
Kevin MacMartin
|
8c6a306374
|
Update to include a new "scale" option that sizes the element using the transform scale property instead of width and height, to allow for the contents of a contained element to be sized along with the element when necessary
|
2017-05-24 14:32:16 -04:00 |
|
Kevin MacMartin
|
591b150bb8
|
Use the non-minified version of contain-element in the bower.json main field as minified files aren't allowed
|
2017-01-13 16:02:20 -05:00 |
|
Kevin MacMartin
|
bf8fede52f
|
Add a new alternative to the "id" option named "element" that allows the contained element to be passed directly, update the readme to reflect this change, update gulp-concat and re-generate the minified version
|
2017-01-13 15:47:52 -05:00 |
|
Kevin MacMartin
|
a10f958daf
|
Clean up syntax, upgrade gulp-uglify and rebuild the minified version
|
2016-06-20 16:53:45 -04:00 |
|
Kevin MacMartin
|
5cae38513c
|
Tweak the wording in the comments
|
2015-09-08 00:24:22 -04:00 |
|
Kevin MacMartin
|
a908761b2a
|
Add setters and getters for the width and alignment properties
|
2015-09-08 00:23:16 -04:00 |
|
Kevin MacMartin
|
7a59f6bc3c
|
Add a function to return the current scale factor of the contained element
|
2015-09-04 14:26:56 -04:00 |
|
Kevin MacMartin
|
9ea6f875b4
|
Replace tabs with (4) spaces
|
2015-09-04 14:15:36 -04:00 |
|
Kevin MacMartin
|
52e1f93e4a
|
Be a bit more clear about what the width/height settings are for
|
2015-07-03 11:55:36 -04:00 |
|
Kevin MacMartin
|
17c772c5c9
|
Use window.addEventListener rather than screen.addEventListener in the example, as the former isn't supported by (at least) chrome/chromium
|
2015-07-02 16:15:27 -04:00 |
|
Kevin MacMartin
|
f3b5b6354b
|
Replace another instance of 'document' that should be 'parent element' in the comments
|
2015-07-02 15:16:19 -04:00 |
|
Kevin MacMartin
|
7378d74b65
|
Update one more comment to reflect changes since writing it
|
2015-07-02 15:15:17 -04:00 |
|
Kevin MacMartin
|
7c1a8a5070
|
Update comments to reflect changes made since writing them
|
2015-07-02 15:14:23 -04:00 |
|
Kevin MacMartin
|
b4ca0e07f6
|
Swap middle with center in the comments
|
2015-07-02 15:10:53 -04:00 |
|
Kevin MacMartin
|
09752ed55a
|
Touch up comments and formatting
|
2015-07-02 14:35:51 -04:00 |
|
Kevin MacMartin
|
f5abdade9a
|
Update minified version
|
2015-07-02 13:06:08 -04:00 |
|
Kevin MacMartin
|
fc9f124c7c
|
Fix parent position check before applying relative style if none of the valid positions are used
|
2015-07-02 13:05:28 -04:00 |
|
Kevin MacMartin
|
ae68564e88
|
Use an array comparison to check for a valid parent position rather than three separate comparisons
|
2015-07-02 11:41:37 -04:00 |
|
Luke Evers
|
5226ead17d
|
Use center instead of middle everywhere.
With CSS background positioning, the word `center` is generally used.
This is pretty much that, but for any element.
|
2015-07-01 14:05:48 -04:00 |
|
Luke Evers
|
c2cce79529
|
Fix demo url
|
2015-07-01 13:41:24 -04:00 |
|
Luke Evers
|
21973f23ad
|
Adding a demo link
|
2015-07-01 12:36:07 -04:00 |
|
Luke Evers
|
f59b874962
|
Don't use a callback when there's no reason to.
|
2015-07-01 12:34:24 -04:00 |
|
Luke Evers
|
7e9fa72a31
|
Remove callbacks in examples.
There's no need to put a function in a callback if we're doing absolutely nothing else with either callbacks.
|
2015-07-01 11:30:28 -04:00 |
|
Luke Evers
|
3183927aac
|
Change WilliamsNY to Wiliams New York
|
2015-07-01 11:17:20 -04:00 |
|
Kevin MacMartin
|
67a46e4677
|
Remove the event variable from the onresize example
|
2015-06-30 18:03:42 -04:00 |
|
Kevin MacMartin
|
315f245c9c
|
Add a description of the plugin to the README
|
2015-06-30 17:58:12 -04:00 |
|
Kevin MacMartin
|
a4f32cb75a
|
Set filetype of the code to javascript
|
2015-06-30 17:47:55 -04:00 |
|
Kevin MacMartin
|
d7dc7e8243
|
Update the minified version of the file
|
2015-06-30 17:41:13 -04:00 |
|
Kevin MacMartin
|
9785bf9328
|
Remove scale/position events and add 'update' function that will run this functionality as needed, and update the README to reflect this change
|
2015-06-30 17:40:10 -04:00 |
|
Kevin MacMartin
|
59fb1bf541
|
Update minified library
|
2015-06-30 17:21:45 -04:00 |
|
Kevin MacMartin
|
82e8f01a65
|
Remove the onload scale event trigger
|
2015-06-30 17:21:18 -04:00 |
|
Luke Evers
|
cdeb6371a7
|
Merge branch 'master' of github.com:WilliamsNY/contain-element
|
2015-06-30 16:50:58 -04:00 |
|
Luke Evers
|
c30c33d195
|
Adding gulp to minify with uglyjs
|
2015-06-30 16:50:22 -04:00 |
|
Kevin MacMartin
|
a57c76b850
|
Perform better minification of the library
|
2015-06-30 16:47:51 -04:00 |
|
Kevin MacMartin
|
03185c7dfd
|
Update the minified version of the library
|
2015-06-30 16:37:57 -04:00 |
|
Luke Evers
|
113d1f7c6a
|
Adding myself to bower.json authors
|
2015-06-30 16:36:12 -04:00 |
|
Luke Evers
|
37297df4ee
|
Author links should include github link
|
2015-06-30 16:35:47 -04:00 |
|
Luke Evers
|
9aa7ecc880
|
Use || instead of ?:
|
2015-06-30 16:34:11 -04:00 |
|
Kevin MacMartin
|
10009824fc
|
Add a bower.json
|
2015-06-30 16:25:10 -04:00 |
|
Kevin MacMartin
|
18810bd4ef
|
Add minified version of the library
|
2015-06-30 16:15:49 -04:00 |
|
Kevin MacMartin
|
37288bbf11
|
Add a working implementation of the library and a README
|
2015-06-30 16:10:22 -04:00 |
|
Kevin MacMartin
|
35ea40dd17
|
Initial commit
|
2015-06-30 16:09:53 -04:00 |
|