Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jiunn Haur Lim
committed
Jul 11, 2013
1 parent
bf84975
commit 1af6f5e
Showing
10 changed files
with
68 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.0.0-p195 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'compass', '~> 0.12' | ||
gem 'uglifier', '~> 2.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
chunky_png (1.2.8) | ||
compass (0.12.2) | ||
chunky_png (~> 1.2) | ||
fssm (>= 0.2.7) | ||
sass (~> 3.1) | ||
execjs (1.4.0) | ||
multi_json (~> 1.0) | ||
fssm (0.2.10) | ||
multi_json (1.7.7) | ||
sass (3.2.9) | ||
uglifier (2.1.1) | ||
execjs (>= 0.3.0) | ||
multi_json (~> 1.0, >= 1.0.2) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
compass (~> 0.12) | ||
uglifier (~> 2.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ $(function() { | |
}); | ||
``` | ||
|
||
- TODO compress | ||
- TODO release plugin | ||
|
||
## Configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'uglifier' | ||
require 'compass' | ||
|
||
task :compile_js do | ||
source = File.read(File.expand_path('js/box-lid.js', __dir__)) | ||
uglified, source_map = Uglifier.compile_with_map(source) | ||
{ js: uglified, map: source_map }.each do |k, v| | ||
File.write(File.expand_path("js/box-lid.min.#{k}", __dir__), v) | ||
end | ||
puts 'done with javascripts' | ||
end | ||
|
||
task :compile_css do | ||
system 'compass compile', '--output-style=compressed', '.' | ||
puts 'done with stylesheets' | ||
end | ||
|
||
task :compile => %i[compile_css compile_js] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/*! | ||
* jQuery Box Lid Plugin v0.1 | ||
* https://github.com/jimjh/jquery-box-lid | ||
* | ||
* Copyright 2013 Jiunn Haur Lim | ||
* Released under the MIT License | ||
* | ||
* Usage: | ||
* $('.box-lid-menu').boxLid(); | ||
*/ | ||
!function(n){"use strict";function t(t){t=n.extend({container:".box-lid",flag:"box-lid-open"},t);var e=n(t.container);this.open=function(){e.data("box-lid-timer",setTimeout(function(){e.addClass(t.flag)},100))},this.close=function(){clearTimeout(e.data("box-lid-timer")),e.removeClass(t.flag)}}n.fn.boxLid=function(e){var i=new t(e);return this.each(function(){n(this).hover(i.open,i.close)})}}(jQuery); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters