base_logic_landing 0.1.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/lib/{app_mate_landing.rb → landing-rails.rb} +2 -2
- data/lib/landing/rails.rb +7 -0
- data/lib/landing/rails/version.rb +5 -0
- metadata +9 -60
- data/lib/app_mate_landing/rails.rb +0 -7
- data/lib/app_mate_landing/rails/version.rb +0 -5
- data/vendor/assets/javascripts/app_mate.js +0 -0
- data/vendor/assets/javascripts/landing/common.js +0 -468
- data/vendor/assets/javascripts/landing/jwplayer/jwplayer.flash.swf +0 -0
- data/vendor/assets/javascripts/landing/jwplayer/jwplayer.html5.js +0 -258
- data/vendor/assets/javascripts/landing/jwplayer/jwplayer.js +0 -138
- data/vendor/assets/javascripts/landing/main.js +0 -669
- data/vendor/assets/javascripts/landing/owl-carousel/owl.carousel.js +0 -1512
- data/vendor/assets/javascripts/landing/owl-carousel/owl.carousel.min.js +0 -47
- data/vendor/assets/javascripts/landing/requirer.js +0 -0
- data/vendor/assets/javascripts/landing/third/detectmobilebrowser.js +0 -7
- data/vendor/assets/javascripts/landing/third/gmaps.js +0 -2149
- data/vendor/assets/javascripts/landing/third/html5shiv.js +0 -301
- data/vendor/assets/javascripts/landing/third/isotope.pkgd.min.js +0 -8
- data/vendor/assets/javascripts/landing/third/jquery.ajaxchimp.min.js +0 -1
- data/vendor/assets/javascripts/landing/third/jquery.counterup.min.js +0 -8
- data/vendor/assets/javascripts/landing/third/jquery.easing.1.3.js +0 -205
- data/vendor/assets/javascripts/landing/third/jquery.fitvids.js +0 -83
- data/vendor/assets/javascripts/landing/third/jquery.nicescroll.min.js +0 -114
- data/vendor/assets/javascripts/landing/third/jquery.stellar.js +0 -660
- data/vendor/assets/javascripts/landing/third/jquery.timeago.js +0 -214
- data/vendor/assets/javascripts/landing/third/jquery.tubular.1.0.js +0 -148
- data/vendor/assets/javascripts/landing/third/matchMedia.js +0 -46
- data/vendor/assets/javascripts/landing/third/owl.carousel.min.js +0 -47
- data/vendor/assets/javascripts/landing/third/tweetie.js +0 -142
- data/vendor/assets/javascripts/landing/third/waypoints.js +0 -8
- data/vendor/assets/javascripts/landing/third/wow.min.js +0 -2
- data/vendor/assets/stylesheets/app_mate.css +0 -0
- data/vendor/assets/stylesheets/landing/app_mate/animate.min.css +0 -6
- data/vendor/assets/stylesheets/landing/app_mate/blog-single.css +0 -657
- data/vendor/assets/stylesheets/landing/app_mate/blog.css +0 -168
- data/vendor/assets/stylesheets/landing/app_mate/bootstrap.css +0 -6358
- data/vendor/assets/stylesheets/landing/app_mate/bootstrap.min.css +0 -10
- data/vendor/assets/stylesheets/landing/app_mate/colors/color1.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/colors/color2.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/colors/color3.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/colors/color4.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/colors/color5.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/colors/color6.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/colors/color7.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/colors/color8.css +0 -164
- data/vendor/assets/stylesheets/landing/app_mate/font-awesome.min.css +0 -4
- data/vendor/assets/stylesheets/landing/app_mate/fonts.css +0 -75
- data/vendor/assets/stylesheets/landing/app_mate/ionicons.min.css +0 -11
- data/vendor/assets/stylesheets/landing/app_mate/main.css +0 -2500
- data/vendor/assets/stylesheets/landing/app_mate/materialize.min.css +0 -16
- data/vendor/assets/stylesheets/landing/app_mate/responsive.css +0 -856
- data/vendor/assets/stylesheets/landing/owl-carousel/AjaxLoader.gif +0 -0
- data/vendor/assets/stylesheets/landing/owl-carousel/grabbing.png +0 -0
- data/vendor/assets/stylesheets/landing/owl-carousel/owl.carousel.css +0 -71
- data/vendor/assets/stylesheets/landing/owl-carousel/owl.theme.css +0 -79
- data/vendor/assets/stylesheets/landing/owl-carousel/owl.transitions.css +0 -163
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59cfc0a87105c4a2f9a1e14bbb82ddebf6ca5ad1
|
|
4
|
+
data.tar.gz: a9329eedd717273988c0da9756a8ca9baa7c2a85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ffbac21e986b2bcf32edb6503d90342c8aeded3e9d900d27a8db7ccd123b55a881a71a81fbfee3a0f4ec39b3885d6c5b42a598451d92605a06656e948e4ce28
|
|
7
|
+
data.tar.gz: 4702cab2873a5b14c76984b4e4594b5bc4248d34d29ea7565e7fd2565b779a96ad2c1689cd4d0bc84e34f22053fbb186ba5c105653e48cd596111812107c3a22
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Landing
|
|
2
2
|
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/landing`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
4
|
|
|
5
5
|
TODO: Delete this and the text above, and describe your gem
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem '
|
|
12
|
+
gem 'landing'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
And then execute:
|
|
@@ -18,7 +18,7 @@ And then execute:
|
|
|
18
18
|
|
|
19
19
|
Or install it yourself as:
|
|
20
20
|
|
|
21
|
-
$ gem install
|
|
21
|
+
$ gem install landing
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
@@ -32,9 +32,10 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
32
|
|
|
33
33
|
## Contributing
|
|
34
34
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/landing. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
## License
|
|
39
39
|
|
|
40
|
-
The gem is available as open source under the terms of the
|
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
41
|
+
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: base_logic_landing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilton Garcia dos Santos Silveira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -58,71 +58,20 @@ dependencies:
|
|
|
58
58
|
- - "<"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '5.0'
|
|
61
|
-
description: Write a longer description or delete this line
|
|
61
|
+
description: Write a longer description or delete this line.
|
|
62
62
|
email:
|
|
63
|
-
-
|
|
63
|
+
- ton.garcia.jr@gmail.com
|
|
64
64
|
executables: []
|
|
65
65
|
extensions: []
|
|
66
66
|
extra_rdoc_files: []
|
|
67
67
|
files:
|
|
68
68
|
- README.md
|
|
69
|
-
- lib/
|
|
70
|
-
- lib/
|
|
71
|
-
- lib/
|
|
72
|
-
- vendor/assets/javascripts/app_mate.js
|
|
73
|
-
- vendor/assets/javascripts/landing/common.js
|
|
74
|
-
- vendor/assets/javascripts/landing/jwplayer/jwplayer.flash.swf
|
|
75
|
-
- vendor/assets/javascripts/landing/jwplayer/jwplayer.html5.js
|
|
76
|
-
- vendor/assets/javascripts/landing/jwplayer/jwplayer.js
|
|
77
|
-
- vendor/assets/javascripts/landing/main.js
|
|
78
|
-
- vendor/assets/javascripts/landing/owl-carousel/owl.carousel.js
|
|
79
|
-
- vendor/assets/javascripts/landing/owl-carousel/owl.carousel.min.js
|
|
80
|
-
- vendor/assets/javascripts/landing/requirer.js
|
|
81
|
-
- vendor/assets/javascripts/landing/third/detectmobilebrowser.js
|
|
82
|
-
- vendor/assets/javascripts/landing/third/gmaps.js
|
|
83
|
-
- vendor/assets/javascripts/landing/third/html5shiv.js
|
|
84
|
-
- vendor/assets/javascripts/landing/third/isotope.pkgd.min.js
|
|
85
|
-
- vendor/assets/javascripts/landing/third/jquery.ajaxchimp.min.js
|
|
86
|
-
- vendor/assets/javascripts/landing/third/jquery.counterup.min.js
|
|
87
|
-
- vendor/assets/javascripts/landing/third/jquery.easing.1.3.js
|
|
88
|
-
- vendor/assets/javascripts/landing/third/jquery.fitvids.js
|
|
89
|
-
- vendor/assets/javascripts/landing/third/jquery.nicescroll.min.js
|
|
90
|
-
- vendor/assets/javascripts/landing/third/jquery.stellar.js
|
|
91
|
-
- vendor/assets/javascripts/landing/third/jquery.timeago.js
|
|
92
|
-
- vendor/assets/javascripts/landing/third/jquery.tubular.1.0.js
|
|
93
|
-
- vendor/assets/javascripts/landing/third/matchMedia.js
|
|
94
|
-
- vendor/assets/javascripts/landing/third/owl.carousel.min.js
|
|
95
|
-
- vendor/assets/javascripts/landing/third/tweetie.js
|
|
96
|
-
- vendor/assets/javascripts/landing/third/waypoints.js
|
|
97
|
-
- vendor/assets/javascripts/landing/third/wow.min.js
|
|
98
|
-
- vendor/assets/stylesheets/app_mate.css
|
|
99
|
-
- vendor/assets/stylesheets/landing/app_mate/animate.min.css
|
|
100
|
-
- vendor/assets/stylesheets/landing/app_mate/blog-single.css
|
|
101
|
-
- vendor/assets/stylesheets/landing/app_mate/blog.css
|
|
102
|
-
- vendor/assets/stylesheets/landing/app_mate/bootstrap.css
|
|
103
|
-
- vendor/assets/stylesheets/landing/app_mate/bootstrap.min.css
|
|
104
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color1.css
|
|
105
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color2.css
|
|
106
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color3.css
|
|
107
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color4.css
|
|
108
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color5.css
|
|
109
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color6.css
|
|
110
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color7.css
|
|
111
|
-
- vendor/assets/stylesheets/landing/app_mate/colors/color8.css
|
|
112
|
-
- vendor/assets/stylesheets/landing/app_mate/font-awesome.min.css
|
|
113
|
-
- vendor/assets/stylesheets/landing/app_mate/fonts.css
|
|
114
|
-
- vendor/assets/stylesheets/landing/app_mate/ionicons.min.css
|
|
115
|
-
- vendor/assets/stylesheets/landing/app_mate/main.css
|
|
116
|
-
- vendor/assets/stylesheets/landing/app_mate/materialize.min.css
|
|
117
|
-
- vendor/assets/stylesheets/landing/app_mate/responsive.css
|
|
118
|
-
- vendor/assets/stylesheets/landing/owl-carousel/AjaxLoader.gif
|
|
119
|
-
- vendor/assets/stylesheets/landing/owl-carousel/grabbing.png
|
|
120
|
-
- vendor/assets/stylesheets/landing/owl-carousel/owl.carousel.css
|
|
121
|
-
- vendor/assets/stylesheets/landing/owl-carousel/owl.theme.css
|
|
122
|
-
- vendor/assets/stylesheets/landing/owl-carousel/owl.transitions.css
|
|
69
|
+
- lib/landing-rails.rb
|
|
70
|
+
- lib/landing/rails.rb
|
|
71
|
+
- lib/landing/rails/version.rb
|
|
123
72
|
homepage: http://baseltda.com.br
|
|
124
73
|
licenses:
|
|
125
|
-
-
|
|
74
|
+
- BSD
|
|
126
75
|
metadata: {}
|
|
127
76
|
post_install_message:
|
|
128
77
|
rdoc_options: []
|
|
@@ -140,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
89
|
version: '0'
|
|
141
90
|
requirements: []
|
|
142
91
|
rubyforge_project:
|
|
143
|
-
rubygems_version: 2.
|
|
92
|
+
rubygems_version: 2.4.8
|
|
144
93
|
signing_key:
|
|
145
94
|
specification_version: 4
|
|
146
95
|
summary: Write a short summary, because Rubygems requires one.
|
|
File without changes
|
|
@@ -1,468 +0,0 @@
|
|
|
1
|
-
var $ = jQuery;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// for get max height
|
|
5
|
-
(function(){
|
|
6
|
-
$.fn.getMaxHeight = function() {
|
|
7
|
-
var _array = [];
|
|
8
|
-
$(this).each(function(){
|
|
9
|
-
_array.push( $(this).height() );
|
|
10
|
-
});
|
|
11
|
-
return Math.max.apply(Math,_array);
|
|
12
|
-
};
|
|
13
|
-
}());
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// for aspect ratio
|
|
17
|
-
(function(){
|
|
18
|
-
var ratio = "16:9";
|
|
19
|
-
$.fn.setAspectRatio = function(ratioNew) {
|
|
20
|
-
if ( ratioNew ) {
|
|
21
|
-
ratio = ratioNew;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var rationLn = ratio.split(":");
|
|
25
|
-
|
|
26
|
-
$(this).each(function(){
|
|
27
|
-
var item = $(this);
|
|
28
|
-
if ( item.length > 0 ) {
|
|
29
|
-
var itemWidth = item.width();
|
|
30
|
-
var aspectHeight = ( itemWidth * rationLn[1]/rationLn[0] );
|
|
31
|
-
item.height(aspectHeight);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
}());
|
|
36
|
-
|
|
37
|
-
// for scrolling to targeted sections
|
|
38
|
-
(function(){
|
|
39
|
-
$.fn.scrollingTo = function( opts ) {
|
|
40
|
-
var defaults = {
|
|
41
|
-
animationTime : 1000,
|
|
42
|
-
easing : '',
|
|
43
|
-
callbackBeforeTransition : function(){},
|
|
44
|
-
callbackAfterTransition : function(){}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
var config = $.extend( {}, defaults, opts );
|
|
48
|
-
|
|
49
|
-
$(this).click(function(e){
|
|
50
|
-
var eventVal = e;
|
|
51
|
-
e.preventDefault();
|
|
52
|
-
|
|
53
|
-
var $section = $(document).find( $(this).data('section') );
|
|
54
|
-
if ( $section.length < 1 ) {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if ( $('html, body').is(':animated') ) {
|
|
59
|
-
$('html, body').stop( true, true );
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
var scrollPos = $section.offset().top;
|
|
63
|
-
|
|
64
|
-
if ( $(window).scrollTop() == scrollPos ) {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
config.callbackBeforeTransition(eventVal, $section);
|
|
69
|
-
|
|
70
|
-
$('html, body').animate({
|
|
71
|
-
'scrollTop' : (scrollPos+'px' )
|
|
72
|
-
}, config.animationTime, config.easing, function(){
|
|
73
|
-
config.callbackAfterTransition(eventVal, $section);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
return $(this);
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
}());
|
|
80
|
-
|
|
81
|
-
// callback after ready the document
|
|
82
|
-
$(document).ready(function(){
|
|
83
|
-
|
|
84
|
-
// setting the post thumb height depend on aspect ratio 16:9
|
|
85
|
-
$('.blog-post-thumb-container.videoPost').setAspectRatio();
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// jwplayer video post
|
|
89
|
-
(function(){
|
|
90
|
-
$('.player').each(function(){
|
|
91
|
-
var $this = $(this),
|
|
92
|
-
defaults = {
|
|
93
|
-
fileSrc : '',
|
|
94
|
-
imageSrc : '',
|
|
95
|
-
id : '',
|
|
96
|
-
width : '100%',
|
|
97
|
-
height : '100%',
|
|
98
|
-
aspectratio : ''
|
|
99
|
-
},
|
|
100
|
-
config = {
|
|
101
|
-
fileSrc : $(this).data('file-sec') || defaults.fileSrc,
|
|
102
|
-
imageSrc : $(this).data('image-src') || defaults.imageSrc,
|
|
103
|
-
id : $(this).attr('id'),
|
|
104
|
-
width : $(this).data('width') || defaults.width,
|
|
105
|
-
height : $(this).data('height') || defaults.height,
|
|
106
|
-
aspectratio : $(this).data('aspectratio') || defaults.aspectratio
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
jwplayer(config.id).setup({
|
|
110
|
-
file: config.fileSrc,
|
|
111
|
-
image: config.imageSrc,
|
|
112
|
-
width: config.width,
|
|
113
|
-
height: config.height,
|
|
114
|
-
aspectratio : config.aspectratio
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
}());
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
// nice scroll
|
|
121
|
-
if ( jQuery.browser.mobile !== true ) {
|
|
122
|
-
$("html").niceScroll({
|
|
123
|
-
cursorwidth: '10px',
|
|
124
|
-
zindex: '999999999'
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
// blog Mesonary
|
|
130
|
-
if ( $('#blog-posts').length > 0 ) {
|
|
131
|
-
window.blogMsnry = $('#blog-posts').isotope({
|
|
132
|
-
itemSelector: '.single-post',
|
|
133
|
-
isInitLayout: false,
|
|
134
|
-
layoutMode: 'masonry'
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
// Contact Form
|
|
140
|
-
$(this).click(function(){
|
|
141
|
-
$('#contactForm .form-message').slideUp();
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
$('#contactForm').on('submit', function(e){
|
|
146
|
-
e.preventDefault();
|
|
147
|
-
$.fn.button.Constructor.DEFAULTS.loadingText = "Sending...";
|
|
148
|
-
|
|
149
|
-
var $submitBtn = $(this).find('input[type="submit"]'),
|
|
150
|
-
$messageArea = $(this).find('.form-message');
|
|
151
|
-
$submitBtn.button('loading');
|
|
152
|
-
|
|
153
|
-
var data = $(this).serialize();
|
|
154
|
-
$.ajax({
|
|
155
|
-
type: "POST",
|
|
156
|
-
url: "assets/inc/sendEmail.php",
|
|
157
|
-
data: data
|
|
158
|
-
}).done(function(msg){
|
|
159
|
-
|
|
160
|
-
var hand = setTimeout(function(){
|
|
161
|
-
$submitBtn.button('reset');
|
|
162
|
-
// Message was sent
|
|
163
|
-
if (msg == 'OK') {
|
|
164
|
-
var successMsg = "Thanks for contact us";
|
|
165
|
-
$messageArea.html("<p>"+successMsg+"</p>").removeClass('error').addClass('success').slideDown();
|
|
166
|
-
}
|
|
167
|
-
// There was an error
|
|
168
|
-
else {
|
|
169
|
-
$messageArea.html("<p>"+msg+"</p>").removeClass('success').addClass('error').slideDown();
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
clearTimeout(hand);
|
|
173
|
-
|
|
174
|
-
}, 1000);
|
|
175
|
-
}).fail(function(){
|
|
176
|
-
var errorMeg = 'Sorry, something wrong, Please try again after some time.';
|
|
177
|
-
var hand = setTimeout(function(){
|
|
178
|
-
$submitBtn.button('reset');
|
|
179
|
-
$messageArea.html("<p>"+errorMeg+"</p>").removeClass('success').addClass('error').slideDown();
|
|
180
|
-
clearTimeout(hand);
|
|
181
|
-
}, 1000);
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
// callback after loading the window
|
|
187
|
-
$(window).load(function(){
|
|
188
|
-
|
|
189
|
-
// hide the loader
|
|
190
|
-
(function(){
|
|
191
|
-
var loader = $('#loader');
|
|
192
|
-
if ( loader.length > 0 ) {
|
|
193
|
-
$('#loader').fadeOut(function(){
|
|
194
|
-
$('#home .overlay-content .animated').removeClass('fadeOut').addClass('fadeInUpSmall');
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}());
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
// favorite maker
|
|
201
|
-
(function(){
|
|
202
|
-
var lovedText = "You already love this", loveText = "Love this", loveClass = "active";
|
|
203
|
-
$('.js-favorite').on('click', function(e){
|
|
204
|
-
e.preventDefault();
|
|
205
|
-
var favoriteNumb = parseInt( $(this).find('.numb').text(), 10 );
|
|
206
|
-
if ( $(this).hasClass(loveClass) ) {
|
|
207
|
-
$(this).removeClass(loveClass).attr('title', loveText);
|
|
208
|
-
--favoriteNumb;
|
|
209
|
-
$(this).find('.numb').text( favoriteNumb );
|
|
210
|
-
} else {
|
|
211
|
-
$(this).addClass(loveClass).attr('title', lovedText);
|
|
212
|
-
++favoriteNumb;
|
|
213
|
-
$(this).find('.numb').text( favoriteNumb );
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}());
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
// blog post slider
|
|
220
|
-
(function(){
|
|
221
|
-
var $blog_post_slider = $('.thumb-slides-container');
|
|
222
|
-
if ( $blog_post_slider.length > 0 ) {
|
|
223
|
-
|
|
224
|
-
$blog_post_slider.each(function(){
|
|
225
|
-
$(this).owlCarousel({
|
|
226
|
-
singleItem : true,
|
|
227
|
-
autoPlay : true,
|
|
228
|
-
stopOnHover : true,
|
|
229
|
-
slideSpeed : 800,
|
|
230
|
-
pagination : false
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
$('.thumb-slides-controller a').click(function(e){
|
|
237
|
-
e.preventDefault();
|
|
238
|
-
|
|
239
|
-
var blog_post_slider_data = $(this).closest('.blog-post-thumb-container').children('.thumb-slides-container').data('owlCarousel');
|
|
240
|
-
|
|
241
|
-
if ( $(this).hasClass('left-arrow') ) {
|
|
242
|
-
blog_post_slider_data.prev();
|
|
243
|
-
} else {
|
|
244
|
-
blog_post_slider_data.next();
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
}());
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
// Wow init
|
|
252
|
-
new WOW({
|
|
253
|
-
offset: 150,
|
|
254
|
-
mobile: false
|
|
255
|
-
}).init();
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
// Contact toggle
|
|
259
|
-
$('.contact-location-toggle-btn').scrollingTo({
|
|
260
|
-
easing : 'easeOutQuart',
|
|
261
|
-
callbackBeforeTransition : function(e){
|
|
262
|
-
$('.contact-content-wrapper').slideToggle(600,'easeOutQuart');
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
// Blog masonry re layout
|
|
268
|
-
if ( typeof blogMsnry !== "undefined" ) {
|
|
269
|
-
blogMsnry.isotope('layout');
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
// callback after resize the window
|
|
277
|
-
$(window).resize(function(){
|
|
278
|
-
|
|
279
|
-
// setting the post thumb height depend on aspect ratio 16:9
|
|
280
|
-
$('.blog-post-thumb-container.videoPost').setAspectRatio();
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
// Blog masonry re layout
|
|
284
|
-
if ( typeof blogMsnry !== "undefined" ) {
|
|
285
|
-
blogMsnry.isotope('layout');
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
});
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
// Intelligent Menu plugin
|
|
293
|
-
(function(){
|
|
294
|
-
function Menu($element, options){
|
|
295
|
-
|
|
296
|
-
var handler,
|
|
297
|
-
defaults = {
|
|
298
|
-
domObj : $element,
|
|
299
|
-
className : 'menu-hide',
|
|
300
|
-
position : '80px'
|
|
301
|
-
},
|
|
302
|
-
config = $.extend({}, defaults, options),
|
|
303
|
-
coreFuns = {
|
|
304
|
-
showMenu : function(){
|
|
305
|
-
if ( config.domObj.hasClass(config.className) ) {
|
|
306
|
-
config.domObj.stop().animate({
|
|
307
|
-
'top' : '0px'
|
|
308
|
-
}, 200, function(){
|
|
309
|
-
$(this).removeClass(config.className);
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
hideMenu : function(){
|
|
314
|
-
if ( !config.domObj.hasClass(config.className) ) {
|
|
315
|
-
config.domObj.stop().animate({
|
|
316
|
-
'top' : '-'+config.position
|
|
317
|
-
}, 200, function(){
|
|
318
|
-
$(this).addClass(config.className);
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
publicFuns = {
|
|
324
|
-
intelligent_menu : function(){
|
|
325
|
-
var lastScrollTop = 0, direction;
|
|
326
|
-
|
|
327
|
-
if ( handler != undefined ) {
|
|
328
|
-
$(window).unbind('scroll', handler);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
handler = function(e){
|
|
332
|
-
var scrollTop = $(this).scrollTop();
|
|
333
|
-
|
|
334
|
-
direction = ( scrollTop > lastScrollTop ) ? 'down' : 'up';
|
|
335
|
-
|
|
336
|
-
lastScrollTop = scrollTop;
|
|
337
|
-
|
|
338
|
-
// check is user scrolling to up or down?
|
|
339
|
-
if ( direction == 'up' ) {
|
|
340
|
-
// you are scrolling to up, so we have to show the menu
|
|
341
|
-
coreFuns.showMenu();
|
|
342
|
-
} else {
|
|
343
|
-
// you are scrolling to down, so we have to hide the menu
|
|
344
|
-
coreFuns.hideMenu();
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
$(window).bind('scroll', handler);
|
|
349
|
-
},
|
|
350
|
-
fixed_menu : function(){
|
|
351
|
-
|
|
352
|
-
if ( handler !== undefined ) {
|
|
353
|
-
$(window).unbind('scroll', handler);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
handler = function(e){
|
|
357
|
-
coreFuns.showMenu();
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
$(window).bind('scroll', handler);
|
|
361
|
-
},
|
|
362
|
-
mobile_intelligent_menu : function(){
|
|
363
|
-
if ( jQuery.browser.mobile === true ) {
|
|
364
|
-
this.intelligent_menu();
|
|
365
|
-
} else {
|
|
366
|
-
this.fixed_menu();
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
;
|
|
371
|
-
|
|
372
|
-
return publicFuns;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
$.fn.menu = function( options ){
|
|
376
|
-
var $element = this.first();
|
|
377
|
-
var menuFuns = new Menu( $element, options );
|
|
378
|
-
return menuFuns;
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
})();
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
// call to Intelligent Menu plugin
|
|
385
|
-
var menuFun = $('header').menu();
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
/* Choose your navigation style */
|
|
390
|
-
|
|
391
|
-
menuFun.intelligent_menu(); // Hide intelligently
|
|
392
|
-
|
|
393
|
-
// menuFun.fixed_menu(); // Always fixed
|
|
394
|
-
|
|
395
|
-
// menuFun.mobile_intelligent_menu(); // Hide intelligently on Mobile Devices
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
$('#switch input').on('change', function(e){
|
|
400
|
-
|
|
401
|
-
var menuId = this.id;
|
|
402
|
-
|
|
403
|
-
if ( menuId === 'menu1' ) {
|
|
404
|
-
|
|
405
|
-
menuFun.fixed_menu();
|
|
406
|
-
|
|
407
|
-
} else if( menuId === 'menu2' ) {
|
|
408
|
-
|
|
409
|
-
menuFun.intelligent_menu();
|
|
410
|
-
|
|
411
|
-
} else {
|
|
412
|
-
|
|
413
|
-
menuFun.mobile_intelligent_menu();
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
// mobile menu plugin
|
|
420
|
-
var mobileMenu = {
|
|
421
|
-
bar : $('.header-mobile-screen .bar-area'),
|
|
422
|
-
menu : $('.header-mobile-screen .menu'),
|
|
423
|
-
hideMenu : function(){
|
|
424
|
-
if ( !mobileMenu.bar.is(':visible') ) { return false; }
|
|
425
|
-
mobileMenu.bar.find('a.close-menu').hide().siblings('a').show();
|
|
426
|
-
$('header').removeClass('mobileBG');
|
|
427
|
-
mobileMenu.menu.removeClass('fadeInUpSmall').addClass('fadeOutUpSmall').fadeOut(function(){
|
|
428
|
-
$('header').css('height', 'auto');
|
|
429
|
-
$('#home .overlay-content').removeClass('fadeOutUpSmall').addClass('fadeInUpSmall');
|
|
430
|
-
});
|
|
431
|
-
return this;
|
|
432
|
-
},
|
|
433
|
-
showMenu : function(){
|
|
434
|
-
if ( !mobileMenu.bar.is(':visible') ) { return false; }
|
|
435
|
-
mobileMenu.bar.find('a.open-menu').hide().siblings('a').show();
|
|
436
|
-
$('#home .overlay-content').removeClass('fadeInUpSmall').addClass('fadeOutUpSmall');
|
|
437
|
-
$('header').css('height', '100%').addClass('mobileBG');
|
|
438
|
-
var hand = setTimeout(function(){
|
|
439
|
-
mobileMenu.menu.removeClass('fadeOutUpSmall').addClass('fadeInUpSmall').fadeIn();
|
|
440
|
-
clearTimeout(hand);
|
|
441
|
-
}, 200);
|
|
442
|
-
return this;
|
|
443
|
-
},
|
|
444
|
-
init : function(){
|
|
445
|
-
mobileMenu.bar.find('a').click(function(e){
|
|
446
|
-
e.preventDefault();
|
|
447
|
-
if ( $(this).hasClass('open-menu') ) {
|
|
448
|
-
mobileMenu.showMenu();
|
|
449
|
-
} else {
|
|
450
|
-
mobileMenu.hideMenu();
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
mobileMenu.menu.find('li').click(function(e){
|
|
455
|
-
if ( $(this).hasClass('has-sub') ) {
|
|
456
|
-
$(this).toggleClass('current').children('ul.sub-menu').slideToggle(500);
|
|
457
|
-
} else {
|
|
458
|
-
mobileMenu.hideMenu();
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
$(window).bind('resize', function(){
|
|
463
|
-
mobileMenu.hideMenu();
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
mobileMenu.init();
|