Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated readme and simple makefile

The README has been transformed into markdown and a makefile has been
added to "help" creating minified stuff
  • Loading branch information...
commit 3071f7e82dc89d0bbaf6f087bfdad9c466280180 1 parent 80b8340
@azatoth authored
Showing with 63 additions and 19 deletions.
  1. +42 −0 Makefile
  2. +0 −18 README
  3. +20 −0 README.md
  4. +1 −1  jquery.video.js
View
42 Makefile
@@ -0,0 +1,42 @@
+
+JS_COMPILER = closure-compiler
+JS_COMPILER_ARGS = --compilation_level SIMPLE_OPTIMIZATIONS --charset utf-8 --summary_detail_level 3
+
+CSS_COMPILER = csstidy
+CSS_COMPILER_ARGS = --compress_colors=true --compress_font-weight=true --remove_last_\;=true --merge_selectors=2 --optimise_shorthands=2 --template=low
+
+js_files = jquery.video.js
+js_min_files = $(patsubst %.js,%.min.js,$(js_files))
+js_min_gz_files = $(patsubst %.js,%.js.gz,$(js_min_files))
+
+css_files = jquery.video.css
+css_min_files = $(patsubst %.css,%.min.css,$(css_files))
+css_min_gz_files = $(patsubst %.css,%.css.gz,$(css_min_files))
+
+all: minify gzip
+
+
+minify: $(js_min_files) $(css_min_files)
+
+
+gzip: $(js_min_gz_files) $(css_min_gz_files)
+
+$(js_min_gz_files): $(js_min_files)
+
+$(css_min_gz_files): $(css_min_files)
+
+%.min.css.gz: %.min.css
+ cat $< | gzip - > $@
+
+%.min.js.gz: %.min.js
+ cat $< | gzip - > $@
+
+%.min.js: %.js
+ $(JS_COMPILER) $(JS_COMPILER_ARGS) --js $< --js_output_file $@
+
+%.min.css: %.css
+ $(CSS_COMPILER) $< $(CSS_COMPILER_ARGS) $@
+
+clean:
+ rm -f $(js_min_files) $(js_min_gz_files)
+ rm -f $(css_min_files) $(css_min_gz_files)
View
18 README
@@ -1,18 +0,0 @@
-The jQuery UI Video widget enhances your HTML5 <video>
-
-Demo: http://js.azatoth.net/video/example.html
-
-
-
-Features:
-* Adds full jQuery UI Themeroller support
-* Pause, seek, rewind
-* Volume control
-* Scrub bar with time elapsed and remaining
-* Unobstrusive and minimal UI
-
-
-Size: 2.0k minified and gzipped.
-
-Download: click `download source` above.
-
View
20 README.md
@@ -0,0 +1,20 @@
+# The jQuery UI Video widget enhances your HTML5 `<video>`
+
+## Demo
+* http://js.azatoth.net/video/example.html
+
+## Features
+* Adds full jQuery UI Themeroller support
+* Pause, seek, rewind
+* Volume control
+* Scrub bar with time elapsed and remaining
+* Unobstrusive and minimal UI
+
+## Size
+* 14.0 KiB raw
+* 7.0 KiB minified
+* 2.0 KiB minified and gzipped.
+
+## Download
+* click `download source` above.
+
View
2  jquery.video.js
@@ -102,7 +102,7 @@ $.widget("ui.video", {
autoplay: self.options.autoPlay,
controls: false,
loop: self.options.loop,
- autobuffer: self.options.autoBuffer,
+ autobuffer: self.options.autoBuffer
};
self.element.wrapAll( $('<div />',{'class': 'ui-video-widget'}) );
Please sign in to comment.
Something went wrong with that request. Please try again.