now-ui-kit-rails 0.0.4 → 0.0.5
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/app/assets/images/now-ui-kit/apple-icon.png +0 -0
- data/app/assets/images/now-ui-kit/avatar.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg1.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg11.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg3.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg4.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg5.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg6.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg7.jpg +0 -0
- data/app/assets/images/now-ui-kit/bg8.jpg +0 -0
- data/app/assets/images/now-ui-kit/blurred-image-1.jpg +0 -0
- data/app/assets/images/now-ui-kit/creative-tim-white-slim2.png +0 -0
- data/app/assets/images/now-ui-kit/default-avatar.png +0 -0
- data/app/assets/images/now-ui-kit/eva.jpg +0 -0
- data/app/assets/images/now-ui-kit/favicon.png +0 -0
- data/app/assets/images/now-ui-kit/flags/AD.png +0 -0
- data/app/assets/images/now-ui-kit/flags/AE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/AG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/AM.png +0 -0
- data/app/assets/images/now-ui-kit/flags/AR.png +0 -0
- data/app/assets/images/now-ui-kit/flags/AT.png +0 -0
- data/app/assets/images/now-ui-kit/flags/AU.png +0 -0
- data/app/assets/images/now-ui-kit/flags/BE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/BF.png +0 -0
- data/app/assets/images/now-ui-kit/flags/BG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/BO.png +0 -0
- data/app/assets/images/now-ui-kit/flags/BR.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CD.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CH.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CL.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CM.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CN.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CO.png +0 -0
- data/app/assets/images/now-ui-kit/flags/CZ.png +0 -0
- data/app/assets/images/now-ui-kit/flags/DE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/DJ.png +0 -0
- data/app/assets/images/now-ui-kit/flags/DK.png +0 -0
- data/app/assets/images/now-ui-kit/flags/DZ.png +0 -0
- data/app/assets/images/now-ui-kit/flags/EE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/EG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/ES.png +0 -0
- data/app/assets/images/now-ui-kit/flags/FI.png +0 -0
- data/app/assets/images/now-ui-kit/flags/FR.png +0 -0
- data/app/assets/images/now-ui-kit/flags/GA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/GB.png +0 -0
- data/app/assets/images/now-ui-kit/flags/GM.png +0 -0
- data/app/assets/images/now-ui-kit/flags/GT.png +0 -0
- data/app/assets/images/now-ui-kit/flags/HN.png +0 -0
- data/app/assets/images/now-ui-kit/flags/HT.png +0 -0
- data/app/assets/images/now-ui-kit/flags/HU.png +0 -0
- data/app/assets/images/now-ui-kit/flags/ID.png +0 -0
- data/app/assets/images/now-ui-kit/flags/IE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/IL.png +0 -0
- data/app/assets/images/now-ui-kit/flags/IN.png +0 -0
- data/app/assets/images/now-ui-kit/flags/IQ.png +0 -0
- data/app/assets/images/now-ui-kit/flags/IR.png +0 -0
- data/app/assets/images/now-ui-kit/flags/IT.png +0 -0
- data/app/assets/images/now-ui-kit/flags/JM.png +0 -0
- data/app/assets/images/now-ui-kit/flags/JO.png +0 -0
- data/app/assets/images/now-ui-kit/flags/JP.png +0 -0
- data/app/assets/images/now-ui-kit/flags/KG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/KN.png +0 -0
- data/app/assets/images/now-ui-kit/flags/KP.png +0 -0
- data/app/assets/images/now-ui-kit/flags/KR.png +0 -0
- data/app/assets/images/now-ui-kit/flags/KW.png +0 -0
- data/app/assets/images/now-ui-kit/flags/KZ.png +0 -0
- data/app/assets/images/now-ui-kit/flags/LA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/LB.png +0 -0
- data/app/assets/images/now-ui-kit/flags/LC.png +0 -0
- data/app/assets/images/now-ui-kit/flags/LS.png +0 -0
- data/app/assets/images/now-ui-kit/flags/LU.png +0 -0
- data/app/assets/images/now-ui-kit/flags/LV.png +0 -0
- data/app/assets/images/now-ui-kit/flags/MG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/MK.png +0 -0
- data/app/assets/images/now-ui-kit/flags/ML.png +0 -0
- data/app/assets/images/now-ui-kit/flags/MM.png +0 -0
- data/app/assets/images/now-ui-kit/flags/MT.png +0 -0
- data/app/assets/images/now-ui-kit/flags/MX.png +0 -0
- data/app/assets/images/now-ui-kit/flags/NA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/NE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/NG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/NI.png +0 -0
- data/app/assets/images/now-ui-kit/flags/NL.png +0 -0
- data/app/assets/images/now-ui-kit/flags/NO.png +0 -0
- data/app/assets/images/now-ui-kit/flags/OM.png +0 -0
- data/app/assets/images/now-ui-kit/flags/PA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/PE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/PG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/PK.png +0 -0
- data/app/assets/images/now-ui-kit/flags/PL.png +0 -0
- data/app/assets/images/now-ui-kit/flags/PT.png +0 -0
- data/app/assets/images/now-ui-kit/flags/PY.png +0 -0
- data/app/assets/images/now-ui-kit/flags/QA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/RO.png +0 -0
- data/app/assets/images/now-ui-kit/flags/RU.png +0 -0
- data/app/assets/images/now-ui-kit/flags/RW.png +0 -0
- data/app/assets/images/now-ui-kit/flags/SA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/SE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/SG.png +0 -0
- data/app/assets/images/now-ui-kit/flags/SL.png +0 -0
- data/app/assets/images/now-ui-kit/flags/SN.png +0 -0
- data/app/assets/images/now-ui-kit/flags/SO.png +0 -0
- data/app/assets/images/now-ui-kit/flags/SV.png +0 -0
- data/app/assets/images/now-ui-kit/flags/TD.png +0 -0
- data/app/assets/images/now-ui-kit/flags/TJ.png +0 -0
- data/app/assets/images/now-ui-kit/flags/TL.png +0 -0
- data/app/assets/images/now-ui-kit/flags/TR.png +0 -0
- data/app/assets/images/now-ui-kit/flags/TZ.png +0 -0
- data/app/assets/images/now-ui-kit/flags/UA.png +0 -0
- data/app/assets/images/now-ui-kit/flags/US.png +0 -0
- data/app/assets/images/now-ui-kit/flags/VE.png +0 -0
- data/app/assets/images/now-ui-kit/flags/VN.png +0 -0
- data/app/assets/images/now-ui-kit/flags/YE.png +0 -0
- data/app/assets/images/now-ui-kit/header.jpg +0 -0
- data/app/assets/images/now-ui-kit/hero-image-1.png +0 -0
- data/app/assets/images/now-ui-kit/hero-image-2.png +0 -0
- data/app/assets/images/now-ui-kit/hero-image-3.png +0 -0
- data/app/assets/images/now-ui-kit/invision-white-slim.png +0 -0
- data/app/assets/images/now-ui-kit/landing.jpg +0 -0
- data/app/assets/images/now-ui-kit/login.jpg +0 -0
- data/app/assets/images/now-ui-kit/logo-square.jpg +0 -0
- data/app/assets/images/now-ui-kit/logo.png +0 -0
- data/app/assets/images/now-ui-kit/now-logo.png +0 -0
- data/app/assets/images/now-ui-kit/nucleo-logo.svg +18 -1
- data/app/assets/images/now-ui-kit/profile.jpg +0 -0
- data/app/assets/images/now-ui-kit/ryan.jpg +0 -0
- data/app/assets/javascripts/now-ui-kit.js +365 -99
- data/app/assets/stylesheets/now-ui-kit.scss +1 -1
- data/app/assets/stylesheets/now-ui-kit/_alerts.scss +1 -0
- data/app/assets/stylesheets/now-ui-kit/_buttons.scss +30 -30
- data/app/assets/stylesheets/now-ui-kit/_cards.scss +5 -3
- data/app/assets/stylesheets/now-ui-kit/_example-pages.scss +1 -1
- data/app/assets/stylesheets/now-ui-kit/_footers.scss +0 -1
- data/app/assets/stylesheets/now-ui-kit/_inputs.scss +24 -8
- data/app/assets/stylesheets/now-ui-kit/_misc.scss +1 -0
- data/app/assets/stylesheets/now-ui-kit/_mixins.scss +1 -0
- data/app/assets/stylesheets/now-ui-kit/_modals.scss +2 -2
- data/app/assets/stylesheets/now-ui-kit/_navbar.scss +25 -15
- data/app/assets/stylesheets/now-ui-kit/_nucleo-outline.scss.erb +2 -2
- data/app/assets/stylesheets/now-ui-kit/_popups.scss +20 -10
- data/app/assets/stylesheets/now-ui-kit/_progress.scss +1 -1
- data/app/assets/stylesheets/now-ui-kit/_responsive.scss +172 -230
- data/app/assets/stylesheets/now-ui-kit/_sections.scss +29 -17
- data/app/assets/stylesheets/now-ui-kit/_typography.scss +8 -0
- data/app/assets/stylesheets/now-ui-kit/_variables.scss +17 -11
- data/app/assets/stylesheets/now-ui-kit/mixins/_buttons.scss +22 -14
- data/app/assets/stylesheets/now-ui-kit/mixins/_navbar.scss +226 -0
- data/app/assets/stylesheets/now-ui-kit/mixins/_popovers.scss +14 -10
- data/lib/now_ui_kit/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f29376cfb2ff005a9f1a1150c135e0ef13005a29
|
4
|
+
data.tar.gz: 8f07e78013fdff2e4430f46f91a8cbde2b929a92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a6e46300132424c0978171d20cde3a5ae1b4833ffd864f40be9c5247218d699ea76dec9cf34965b15451bcd69686b51d6ec33a933f3df5c6d23ac77f64043fa
|
7
|
+
data.tar.gz: 7e35099ed7ddc91baa528cd1fcce338093801766871fb8cf0529cf2f32a12b2e65e85b5e186a7c7c17fa3f3210f48b688bdaf6fb8c99983e1ab4992820a10fd1
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1 +1,18 @@
|
|
1
|
-
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
5
|
+
width="155px" height="77px" viewBox="62 -22 155 77" enable-background="new 62 -22 155 77" xml:space="preserve">
|
6
|
+
<g>
|
7
|
+
<path fill="#E3E3E3" d="M130.8,13.1C126,8.7,121.4,4.3,117.1,0c-7-7-14-14.5-20.5-21.9H64.7c0.1,13.7,3.9,26.5,10.4,37.6
|
8
|
+
c-0.1,0.2-0.3,0.4-0.4,0.6C62.4,35,59.1,46.9,64.6,52.4c1.7,1.7,4.1,2.6,7.1,2.6c11.8,0,35.9-15.2,62.7-38.7
|
9
|
+
C133.2,15.3,132,14.2,130.8,13.1z M71.7,48.1c-0.6,0-1.7-0.1-2.2-0.6c-1.4-1.4-1.1-8.7,9.8-25.8c4.5,6.1,9.9,11.5,16,16
|
10
|
+
C84.5,44.6,76.2,48.1,71.7,48.1z"/>
|
11
|
+
<path fill="#E3E3E3" d="M203.9,15.5c6.5-11,10.3-23.8,10.4-37.5h-31.8c-6.4,7.3-13.3,14.6-20.6,21.9c-3.9,3.9-8,7.8-12.2,11.8
|
12
|
+
c-1.7-1.5-3.4-3-5.1-4.6c4.1-3.9,8.3-7.9,12.5-12.1c5.7-5.7,11.1-11.4,16.3-17.1h-67.7c5.5,6.1,11,11.9,16.2,17.1
|
13
|
+
c35.3,35.4,70.4,60,85.4,60c3,0,5.4-0.9,7.1-2.6c5.5-5.5,2.3-17.4-10.1-36.2C204.2,16,204,15.7,203.9,15.5z M209.5,47.6
|
14
|
+
c-0.5,0.5-1.6,0.6-2.2,0.6c-4.6,0-12.8-3.6-23.5-10.4c6.1-4.5,11.5-9.9,16-16C210.7,38.9,211,46.1,209.5,47.6z"/>
|
15
|
+
<path fill="#E3E3E3" d="M108.4,45.5c9.5,4.4,20,6.8,31.1,6.8s21.7-2.4,31.1-6.8C160.5,38.6,149.8,30,139.5,21
|
16
|
+
C129.2,30,118.5,38.6,108.4,45.5z"/>
|
17
|
+
</g>
|
18
|
+
</svg>
|
Binary file
|
Binary file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
|
3
3
|
=========================================================
|
4
|
-
* Now-ui-kit - v1.
|
4
|
+
* Now-ui-kit - v1.1.0
|
5
5
|
=========================================================
|
6
6
|
|
7
7
|
* Product Page: https://www.creative-tim.com/product/now-ui-kit
|
@@ -25,36 +25,39 @@ var navbar_initialized,
|
|
25
25
|
backgroundOrange = false,
|
26
26
|
toggle_initialized = false;
|
27
27
|
|
28
|
-
$(document).ready(function(){
|
28
|
+
$(document).ready(function() {
|
29
29
|
// Activate the Tooltips
|
30
30
|
$('[data-toggle="tooltip"], [rel="tooltip"]').tooltip();
|
31
31
|
|
32
32
|
// Activate Popovers and set color for popovers
|
33
|
-
$('[data-toggle="popover"]').each(function(){
|
33
|
+
$('[data-toggle="popover"]').each(function() {
|
34
34
|
color_class = $(this).data('color');
|
35
35
|
$(this).popover({
|
36
|
-
template: '<div class="popover '+ color_class +'
|
36
|
+
template: '<div class="popover popover-' + color_class + '" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
|
37
37
|
});
|
38
38
|
});
|
39
39
|
|
40
|
+
// Activate the image for the navbar-collapse
|
41
|
+
nowuiKit.initNavbarImage();
|
42
|
+
|
40
43
|
$navbar = $('.navbar[color-on-scroll]');
|
41
44
|
scroll_distance = $navbar.attr('color-on-scroll') || 500;
|
42
45
|
|
43
46
|
// Check if we have the class "navbar-color-on-scroll" then add the function to remove the class "navbar-transparent" so it will transform to a plain color.
|
44
47
|
|
45
|
-
if($('.navbar[color-on-scroll]').length != 0){
|
48
|
+
if ($('.navbar[color-on-scroll]').length != 0) {
|
46
49
|
nowuiKit.checkScrollForTransparentNavbar();
|
47
50
|
$(window).on('scroll', nowuiKit.checkScrollForTransparentNavbar)
|
48
51
|
}
|
49
52
|
|
50
|
-
$('.form-control').on("focus", function(){
|
53
|
+
$('.form-control').on("focus", function() {
|
51
54
|
$(this).parent('.input-group').addClass("input-group-focus");
|
52
|
-
}).on("blur", function(){
|
55
|
+
}).on("blur", function() {
|
53
56
|
$(this).parent(".input-group").removeClass("input-group-focus");
|
54
57
|
});
|
55
58
|
|
56
59
|
// Activate bootstrapSwitch
|
57
|
-
$('.bootstrap-switch').each(function(){
|
60
|
+
$('.bootstrap-switch').each(function() {
|
58
61
|
$this = $(this);
|
59
62
|
data_on_label = $this.data('on-label') || '';
|
60
63
|
data_off_label = $this.data('off-label') || '';
|
@@ -65,121 +68,369 @@ $(document).ready(function(){
|
|
65
68
|
});
|
66
69
|
});
|
67
70
|
|
68
|
-
if(
|
69
|
-
nowuiKit.initRightMenu();
|
70
|
-
}
|
71
|
-
|
72
|
-
if ($(window).width() >= 992){
|
71
|
+
if ($(window).width() >= 992) {
|
73
72
|
big_image = $('.page-header-image[data-parallax="true"]');
|
74
73
|
|
75
74
|
$(window).on('scroll', nowuiKitDemo.checkScrollForParallax);
|
76
75
|
}
|
77
76
|
|
78
77
|
// Activate Carousel
|
79
|
-
|
78
|
+
$('.carousel').carousel({
|
80
79
|
interval: 4000
|
81
80
|
});
|
82
81
|
|
83
|
-
$('.date-picker').each(function(){
|
82
|
+
$('.date-picker').each(function() {
|
84
83
|
$(this).datepicker({
|
85
|
-
templates:{
|
84
|
+
templates: {
|
86
85
|
leftArrow: '<i class="now-ui-icons arrows-1_minimal-left"></i>',
|
87
86
|
rightArrow: '<i class="now-ui-icons arrows-1_minimal-right"></i>'
|
88
87
|
}
|
89
88
|
}).on('show', function() {
|
90
|
-
|
89
|
+
$('.datepicker').addClass('open');
|
90
|
+
|
91
|
+
datepicker_color = $(this).data('datepicker-color');
|
92
|
+
if (datepicker_color.length != 0) {
|
93
|
+
$('.datepicker').addClass('datepicker-' + datepicker_color + '');
|
94
|
+
}
|
95
|
+
}).on('hide', function() {
|
96
|
+
$('.datepicker').removeClass('open');
|
97
|
+
});
|
98
|
+
});
|
99
|
+
|
100
|
+
$('.switch.switch-background input').on("switchChange.bootstrapSwitch", function() {
|
101
|
+
$input = $(this);
|
102
|
+
|
103
|
+
if (!$input.is(':checked')) {
|
104
|
+
$('.section:not(.section-notifications):not(.section-tabs):not(.section-download):not(.section-examples)').each(function() {
|
105
|
+
$(this).fadeOut('fast', function() {
|
106
|
+
$(this).attr('data-background-color', 'orange');
|
107
|
+
$(this).fadeIn('fast');
|
108
|
+
});
|
109
|
+
|
110
|
+
});
|
111
|
+
|
112
|
+
switch_orange = $('.navbar .collapse .navbar-nav.navbar-switch .nav-item .nav-link p.hidden');
|
113
|
+
switch_white = $('.navbar .collapse .navbar-nav.navbar-switch .nav-item .nav-link p.visible');
|
114
|
+
switch_white.removeClass('visible').addClass('hidden');
|
115
|
+
switch_orange.removeClass('hidden').addClass('visible');
|
116
|
+
|
117
|
+
$('.section.section-navbars > .container .navbar.bg-primary, .section.section-navbars > .container .navbar.bg-info').each(function() {
|
118
|
+
$(this).addClass('bg-white');
|
119
|
+
});
|
120
|
+
|
121
|
+
$('.btn-primary,.btn-default,.btn-link').each(function() {
|
122
|
+
$(this).addClass('btn-neutral');
|
123
|
+
});
|
124
|
+
|
125
|
+
$('button[data-toggle="popover"], button[data-toggle="tooltip"]').each(function() {
|
126
|
+
$(this).removeClass('btn-default');
|
127
|
+
$(this).addClass('btn-neutral');
|
128
|
+
});
|
129
|
+
|
130
|
+
$('.nav.nav-pills').each(function() {
|
131
|
+
$(this).addClass('nav-pills-neutral');
|
132
|
+
|
133
|
+
if ($('.nav.nav-pills.nav-pills-primary').length != 0) {
|
134
|
+
$(this).removeClass('nav-pills-primary');
|
135
|
+
}
|
136
|
+
});
|
137
|
+
|
138
|
+
$('.pagination').each(function() {
|
139
|
+
$(this).addClass('pagination-neutral');
|
140
|
+
});
|
141
|
+
|
142
|
+
$('.progress-container').each(function() {
|
143
|
+
$(this).addClass('progress-neutral');
|
144
|
+
|
145
|
+
if ($('.progress-container.progress-neutral').length != 0) {
|
146
|
+
$(this).removeClass('progress-primary');
|
147
|
+
}
|
148
|
+
});
|
149
|
+
|
150
|
+
$('.badge').each(function() {
|
151
|
+
$(this).addClass('badge-neutral');
|
152
|
+
});
|
153
|
+
|
154
|
+
$('.slider').each(function() {
|
155
|
+
$(this).addClass('slider-neutral');
|
156
|
+
|
157
|
+
if ($('.slider.slider-neutral').length != 0) {
|
158
|
+
$(this).removeClass('slider-primary')
|
159
|
+
.removeClass('slider-default');
|
160
|
+
}
|
161
|
+
});
|
162
|
+
|
163
|
+
$('.blockquote').each(function() {
|
164
|
+
$(this).addClass('blockquote-white');
|
165
|
+
|
166
|
+
if ($('.blockuote.blockquote-white').length != 0) {
|
167
|
+
$(this).removeClass('blockquote-primary');
|
168
|
+
}
|
169
|
+
});
|
170
|
+
|
171
|
+
backgroundOrange = true;
|
172
|
+
} else {
|
173
|
+
$('.section:not(.section-notifications):not(.section-tabs):not(.section-download):not(.section-examples)').each(function() {
|
174
|
+
$(this).fadeOut('fast', function() {
|
175
|
+
$(this).removeAttr('data-background-color', 'orange');
|
176
|
+
$(this).fadeIn('fast');
|
177
|
+
});
|
178
|
+
});
|
179
|
+
|
180
|
+
switch_white.removeClass('hidden').addClass('visible');
|
181
|
+
switch_orange.removeClass('visible').addClass('hidden');
|
182
|
+
|
183
|
+
$('.btn-primary,.btn-default,.btn-link').each(function() {
|
184
|
+
$(this).removeClass('btn-neutral');
|
185
|
+
});
|
91
186
|
|
92
|
-
|
93
|
-
|
94
|
-
|
187
|
+
$('.section.section-navbars > .container .navbar.bg-primary, .section.section-navbars > .container .navbar.bg-info').each(function() {
|
188
|
+
$(this).removeClass('bg-white');
|
189
|
+
});
|
190
|
+
|
191
|
+
$('button[data-toggle="popover"], button[data-toggle="tooltip"]').each(function() {
|
192
|
+
$(this).removeClass('btn-neutral');
|
193
|
+
$(this).addClass('btn-default');
|
194
|
+
});
|
195
|
+
|
196
|
+
$('.nav.nav-pills').each(function() {
|
197
|
+
$(this).removeClass('nav-pills-neutral');
|
198
|
+
|
199
|
+
if ($('.nav.nav-pills.nav-pills-neutral').length == 0) {
|
200
|
+
$(this).addClass('nav-pills-primary');
|
95
201
|
}
|
96
|
-
}).on('hide', function() {
|
97
|
-
$('.datepicker').removeClass('open');
|
98
202
|
});
|
203
|
+
|
204
|
+
$('.pagination').each(function() {
|
205
|
+
$(this).removeClass('pagination-neutral');
|
206
|
+
});
|
207
|
+
|
208
|
+
$('.progress-container').each(function() {
|
209
|
+
$(this).removeClass('progress-neutral');
|
210
|
+
|
211
|
+
if ($('.progress-container.progress-neutral').length == 0) {
|
212
|
+
$(this).addClass('progress-primary');
|
213
|
+
}
|
214
|
+
});
|
215
|
+
|
216
|
+
$('.badge').each(function() {
|
217
|
+
$(this).removeClass('badge-neutral');
|
218
|
+
});
|
219
|
+
|
220
|
+
$('.slider').each(function() {
|
221
|
+
$(this).removeClass('slider-neutral');
|
222
|
+
|
223
|
+
if ($('.slider.slider-neutral').length == 0) {
|
224
|
+
$(this).addClass('slider-primary');
|
225
|
+
}
|
226
|
+
});
|
227
|
+
|
228
|
+
$('.blockquote').each(function() {
|
229
|
+
$(this).removeClass('blockquote-white');
|
230
|
+
|
231
|
+
if ($('.blockuote.blockquote-white').length == 0) {
|
232
|
+
$(this).addClass('blockquote-primary');
|
233
|
+
}
|
234
|
+
});
|
235
|
+
|
236
|
+
backgroundOrange = false;
|
237
|
+
}
|
99
238
|
});
|
100
239
|
|
101
240
|
|
241
|
+
if ($('.twitter-sharrre').length != 0) {
|
242
|
+
$('.twitter-sharrre').sharrre({
|
243
|
+
share: {
|
244
|
+
twitter: true
|
245
|
+
},
|
246
|
+
enableHover: false,
|
247
|
+
enableTracking: true,
|
248
|
+
enableCounter: false,
|
249
|
+
buttons: {
|
250
|
+
twitter: {
|
251
|
+
via: 'CreativeTim'
|
252
|
+
}
|
253
|
+
},
|
254
|
+
click: function(api, options) {
|
255
|
+
api.simulateClick();
|
256
|
+
api.openPopup('twitter');
|
257
|
+
},
|
258
|
+
template: '<i class="fa fa-twitter"></i>',
|
259
|
+
url: 'http://demos.creative-tim.com/now-ui-kit/index.html'
|
260
|
+
});
|
261
|
+
}
|
262
|
+
|
263
|
+
if ($('.twitter-sharrre-nav').length != 0) {
|
264
|
+
$('.twitter-sharrre-nav').sharrre({
|
265
|
+
share: {
|
266
|
+
twitter: true
|
267
|
+
},
|
268
|
+
enableHover: false,
|
269
|
+
enableTracking: true,
|
270
|
+
enableCounter: false,
|
271
|
+
buttons: {
|
272
|
+
twitter: {
|
273
|
+
via: 'CreativeTim'
|
274
|
+
}
|
275
|
+
},
|
276
|
+
click: function(api, options) {
|
277
|
+
api.simulateClick();
|
278
|
+
api.openPopup('twitter');
|
279
|
+
},
|
280
|
+
template: '<i class="fa fa-twitter"></i><p class="hidden-lg-up">Twitter</p>',
|
281
|
+
url: 'http://demos.creative-tim.com/now-ui-kit/index.html'
|
282
|
+
});
|
283
|
+
}
|
284
|
+
|
285
|
+
if ($('.facebook-sharrre').length != 0) {
|
286
|
+
$('.facebook-sharrre').sharrre({
|
287
|
+
share: {
|
288
|
+
facebook: true
|
289
|
+
},
|
290
|
+
enableHover: false,
|
291
|
+
enableTracking: true,
|
292
|
+
enableCounter: false,
|
293
|
+
click: function(api, options) {
|
294
|
+
api.simulateClick();
|
295
|
+
api.openPopup('facebook');
|
296
|
+
},
|
297
|
+
template: '<i class="fa fa-facebook-square"></i>',
|
298
|
+
url: 'http://demos.creative-tim.com/now-ui-kit/index.html'
|
299
|
+
});
|
300
|
+
}
|
301
|
+
|
302
|
+
if ($('.facebook-sharrre-nav').length != 0) {
|
303
|
+
$('.facebook-sharrre-nav').sharrre({
|
304
|
+
share: {
|
305
|
+
facebook: true
|
306
|
+
},
|
307
|
+
enableHover: false,
|
308
|
+
enableTracking: true,
|
309
|
+
enableCounter: false,
|
310
|
+
click: function(api, options) {
|
311
|
+
api.simulateClick();
|
312
|
+
api.openPopup('facebook');
|
313
|
+
},
|
314
|
+
template: '<i class="fa fa-facebook-square"></i><p class="hidden-lg-up">Facebook</p>',
|
315
|
+
url: 'http://demos.creative-tim.com/now-ui-kit/index.html'
|
316
|
+
});
|
317
|
+
}
|
318
|
+
|
319
|
+
if ($('.linkedin-sharrre').length != 0) {
|
320
|
+
$('.linkedin-sharrre').sharrre({
|
321
|
+
share: {
|
322
|
+
linkedin: true
|
323
|
+
},
|
324
|
+
enableCounter: false,
|
325
|
+
enableHover: false,
|
326
|
+
enableTracking: true,
|
327
|
+
click: function(api, options) {
|
328
|
+
api.simulateClick();
|
329
|
+
api.openPopup('linkedin');
|
330
|
+
},
|
331
|
+
template: '<i class="fa fa-linkedin"></i>',
|
332
|
+
url: 'http://demos.creative-tim.com/now-ui-kit/index.html'
|
333
|
+
});
|
334
|
+
}
|
335
|
+
|
336
|
+
if ($('.linkedin-sharrre-nav').length != 0) {
|
337
|
+
$('.linkedin-sharrre-nav').sharrre({
|
338
|
+
share: {
|
339
|
+
linkedin: true
|
340
|
+
},
|
341
|
+
enableCounter: false,
|
342
|
+
enableHover: false,
|
343
|
+
enableTracking: true,
|
344
|
+
click: function(api, options) {
|
345
|
+
api.simulateClick();
|
346
|
+
api.openPopup('linkedin');
|
347
|
+
},
|
348
|
+
template: '<i class="fa fa-linkedin"></i><p class="hidden-lg-up">LinkedIn</p>',
|
349
|
+
url: 'http://demos.creative-tim.com/now-ui-kit/index.html'
|
350
|
+
});
|
351
|
+
}
|
352
|
+
|
353
|
+
|
354
|
+
});
|
355
|
+
|
356
|
+
$(window).on('resize', function() {
|
357
|
+
nowuiKit.initNavbarImage();
|
102
358
|
});
|
103
359
|
|
104
|
-
$(
|
105
|
-
|
106
|
-
|
360
|
+
$(document).on('click', '.navbar-toggler', function() {
|
361
|
+
$toggle = $(this);
|
362
|
+
|
363
|
+
if (nowuiKit.misc.navbar_menu_visible == 1) {
|
364
|
+
$('html').removeClass('nav-open');
|
365
|
+
nowuiKit.misc.navbar_menu_visible = 0;
|
366
|
+
$('#bodyClick').remove();
|
367
|
+
setTimeout(function() {
|
368
|
+
$toggle.removeClass('toggled');
|
369
|
+
}, 550);
|
370
|
+
} else {
|
371
|
+
setTimeout(function() {
|
372
|
+
$toggle.addClass('toggled');
|
373
|
+
}, 580);
|
374
|
+
div = '<div id="bodyClick"></div>';
|
375
|
+
$(div).appendTo('body').click(function() {
|
376
|
+
$('html').removeClass('nav-open');
|
377
|
+
nowuiKit.misc.navbar_menu_visible = 0;
|
378
|
+
setTimeout(function() {
|
379
|
+
$toggle.removeClass('toggled');
|
380
|
+
$('#bodyClick').remove();
|
381
|
+
}, 550);
|
382
|
+
});
|
383
|
+
|
384
|
+
$('html').addClass('nav-open');
|
385
|
+
nowuiKit.misc.navbar_menu_visible = 1;
|
107
386
|
}
|
108
387
|
});
|
109
388
|
|
110
389
|
nowuiKit = {
|
111
|
-
misc:{
|
390
|
+
misc: {
|
112
391
|
navbar_menu_visible: 0
|
113
392
|
},
|
114
393
|
|
115
394
|
checkScrollForTransparentNavbar: debounce(function() {
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
}
|
395
|
+
if ($(document).scrollTop() > scroll_distance) {
|
396
|
+
if (transparent) {
|
397
|
+
transparent = false;
|
398
|
+
$('.navbar[color-on-scroll]').removeClass('navbar-transparent');
|
399
|
+
}
|
400
|
+
} else {
|
401
|
+
if (!transparent) {
|
402
|
+
transparent = true;
|
403
|
+
$('.navbar[color-on-scroll]').addClass('navbar-transparent');
|
126
404
|
}
|
405
|
+
}
|
127
406
|
}, 17),
|
128
407
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
$toggle.click(function (){
|
134
|
-
if(nowuiKit.misc.navbar_menu_visible == 1) {
|
135
|
-
$('html').removeClass('nav-open');
|
136
|
-
nowuiKit.misc.navbar_menu_visible = 0;
|
137
|
-
setTimeout(function(){
|
138
|
-
$toggle.removeClass('toggled');
|
139
|
-
$('#bodyClick').remove();
|
140
|
-
}, 550);
|
141
|
-
|
142
|
-
} else {
|
143
|
-
|
144
|
-
setTimeout(function(){
|
145
|
-
$toggle.addClass('toggled');
|
146
|
-
}, 580);
|
147
|
-
|
148
|
-
$navbar = $(this).parent('.navbar-translate').siblings('.navbar-collapse');
|
149
|
-
background_image = $navbar.data('nav-image');
|
150
|
-
if(background_image != undefined){
|
151
|
-
$navbar.css('background',"url('" + background_image + "')")
|
152
|
-
.removeAttr('data-nav-image')
|
153
|
-
.css('background-size',"cover")
|
154
|
-
.addClass('has-image');
|
155
|
-
}
|
156
|
-
|
157
|
-
div = '<div id="bodyClick"></div>';
|
158
|
-
$(div).appendTo('body').click(function() {
|
159
|
-
$('html').removeClass('nav-open');
|
160
|
-
nowuiKit.misc.navbar_menu_visible = 0;
|
161
|
-
setTimeout(function(){
|
162
|
-
$toggle.removeClass('toggled');
|
163
|
-
$('#bodyClick').remove();
|
164
|
-
}, 550);
|
165
|
-
});
|
166
|
-
|
167
|
-
$('html').addClass('nav-open');
|
168
|
-
nowuiKit.misc.navbar_menu_visible = 1;
|
408
|
+
initNavbarImage: function() {
|
409
|
+
var $navbar = $('.navbar').find('.navbar-translate').siblings('.navbar-collapse');
|
410
|
+
var background_image = $navbar.data('nav-image');
|
169
411
|
|
170
|
-
|
171
|
-
|
172
|
-
|
412
|
+
if ($(window).width() < 991 || $('body').hasClass('burger-menu')) {
|
413
|
+
if (background_image != undefined) {
|
414
|
+
$navbar.css('background', "url('" + background_image + "')")
|
415
|
+
.removeAttr('data-nav-image')
|
416
|
+
.css('background-size', "cover")
|
417
|
+
.addClass('has-image');
|
418
|
+
}
|
419
|
+
} else if (background_image != undefined) {
|
420
|
+
$navbar.css('background', "")
|
421
|
+
.attr('data-nav-image', '' + background_image + '')
|
422
|
+
.css('background-size', "")
|
423
|
+
.removeClass('has-image');
|
173
424
|
}
|
174
425
|
},
|
175
426
|
|
176
|
-
initSliders: function(){
|
427
|
+
initSliders: function() {
|
177
428
|
// Sliders for demo purpose in refine cards section
|
178
429
|
var slider = document.getElementById('sliderRegular');
|
179
430
|
|
180
431
|
noUiSlider.create(slider, {
|
181
432
|
start: 40,
|
182
|
-
connect: [true,false],
|
433
|
+
connect: [true, false],
|
183
434
|
range: {
|
184
435
|
min: 0,
|
185
436
|
max: 100
|
@@ -189,11 +440,11 @@ nowuiKit = {
|
|
189
440
|
var slider2 = document.getElementById('sliderDouble');
|
190
441
|
|
191
442
|
noUiSlider.create(slider2, {
|
192
|
-
start: [
|
443
|
+
start: [20, 60],
|
193
444
|
connect: true,
|
194
445
|
range: {
|
195
|
-
min:
|
196
|
-
max:
|
446
|
+
min: 0,
|
447
|
+
max: 100
|
197
448
|
}
|
198
449
|
});
|
199
450
|
}
|
@@ -204,15 +455,15 @@ var big_image;
|
|
204
455
|
|
205
456
|
// Javascript just for Demo purpose, remove it from your project
|
206
457
|
nowuiKitDemo = {
|
207
|
-
checkScrollForParallax: debounce(function(){
|
458
|
+
checkScrollForParallax: debounce(function() {
|
208
459
|
var current_scroll = $(this).scrollTop();
|
209
460
|
|
210
461
|
oVal = ($(window).scrollTop() / 3);
|
211
462
|
big_image.css({
|
212
|
-
'transform':'translate3d(0,' + oVal +'px,0)',
|
213
|
-
'-webkit-transform':'translate3d(0,' + oVal +'px,0)',
|
214
|
-
'-ms-transform':'translate3d(0,' + oVal +'px,0)',
|
215
|
-
'-o-transform':'translate3d(0,' + oVal +'px,0)'
|
463
|
+
'transform': 'translate3d(0,' + oVal + 'px,0)',
|
464
|
+
'-webkit-transform': 'translate3d(0,' + oVal + 'px,0)',
|
465
|
+
'-ms-transform': 'translate3d(0,' + oVal + 'px,0)',
|
466
|
+
'-o-transform': 'translate3d(0,' + oVal + 'px,0)'
|
216
467
|
});
|
217
468
|
|
218
469
|
}, 6)
|
@@ -225,14 +476,29 @@ nowuiKitDemo = {
|
|
225
476
|
// leading edge, instead of the trailing.
|
226
477
|
|
227
478
|
function debounce(func, wait, immediate) {
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
479
|
+
var timeout;
|
480
|
+
return function() {
|
481
|
+
var context = this,
|
482
|
+
args = arguments;
|
483
|
+
clearTimeout(timeout);
|
484
|
+
timeout = setTimeout(function() {
|
485
|
+
timeout = null;
|
486
|
+
if (!immediate) func.apply(context, args);
|
487
|
+
}, wait);
|
488
|
+
if (immediate && !timeout) func.apply(context, args);
|
489
|
+
};
|
238
490
|
};
|
491
|
+
|
492
|
+
|
493
|
+
var _gaq = _gaq || [];
|
494
|
+
_gaq.push(['_setAccount', 'UA-46172202-1']);
|
495
|
+
_gaq.push(['_trackPageview']);
|
496
|
+
|
497
|
+
(function() {
|
498
|
+
var ga = document.createElement('script');
|
499
|
+
ga.type = 'text/javascript';
|
500
|
+
ga.async = true;
|
501
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
502
|
+
var s = document.getElementsByTagName('script')[0];
|
503
|
+
s.parentNode.insertBefore(ga, s);
|
504
|
+
})();
|