tusur_header 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 038b91da55ebc455bb593d3ecd4e6ae448533c5d
|
4
|
+
data.tar.gz: 980ff30d0d4fb034873ee8a3f288e16a1081bb8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 051c296063ecab1c6c7d03e6c46f76a2e668cfc74b31701a8160d74bdf93f51ca9e103c80cd916f88db2c4b67210628d02a5029b4a12566a1b0f2a2849b07628
|
7
|
+
data.tar.gz: 1e8abb60b4b746da552b13b61bb8050eb58626e6e1328dc3f7d3e0e01b4faea83cfe7c67ec972c2c6fe5aa6cb0cb6eaaa1bfcd7a7c4941ef3ceda970dfa95af1
|
data/lib/tusur_header/version.rb
CHANGED
@@ -36,15 +36,22 @@
|
|
36
36
|
cloud.hide().html('') if cloud.is(':visible')
|
37
37
|
|
38
38
|
$(window).scroll () ->
|
39
|
+
footer_height = $('#footer').height()
|
40
|
+
new_footer_height = footer_height + 40
|
41
|
+
|
39
42
|
if $(window).scrollTop() > 0
|
40
43
|
first_menu.css('border-bottom', 'solid 1px #ccc')
|
41
44
|
site_menu_caret.show()
|
42
45
|
site_menu_toggle.removeClass('disabled')
|
43
46
|
|
47
|
+
$('#wrapper').css('margin-bottom', "0px")
|
48
|
+
|
44
49
|
if $(window).scrollTop() == 0
|
45
50
|
first_menu.css('border-bottom', 'none')
|
46
51
|
site_menu_caret.hide()
|
47
52
|
site_menu_toggle.click() if site_menu_toggle.parent().hasClass('open')
|
48
53
|
site_menu_toggle.addClass('disabled')
|
49
54
|
|
55
|
+
$('#wrapper').css('margin-bottom', "-#{new_footer_height}px")
|
56
|
+
|
50
57
|
true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tusur_header
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeny Lapin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|