phcthemes_web_theme_pack 0.11.0 → 0.12.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d272acc616c4671b17296e95b7b03ecfb1ecb9a4f757a0fe0923699741d6168
|
4
|
+
data.tar.gz: f962fb061da133fb417b30f3ad21eb6be4d3bdbf7f79f8ceb2a1e03c135cdb97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6846d7fff8ee518b3fd3cc914c45e5296debcf25e640fd577fd399895dcbf3ef6007c74bd6f55ed938fc3ed613708e6c9903af1e31a9455290ef54c7efbfa53
|
7
|
+
data.tar.gz: 8677f554bd4153268a6743a118640d972a8f714d790636871800b95697b5dcacf9f43c6e83177e6dc690e6ca06edeffb19431c212b5d83856c33f518b1b8b1eb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
//= require jquery3
|
2
|
-
//= require rails-ujs
|
3
|
-
//= require activestorage
|
4
|
-
//= require jquery-ui
|
5
|
-
//= require common/pace/pace.js
|
6
|
-
//= require common/bootstrap/bootstrap.bundle.js
|
7
|
-
//= require common/js-cookie/js.cookie.js
|
8
|
-
//= require common/paroller/jquery.paroller.js
|
9
|
-
//= require common/custom/custom.js
|
10
|
-
//= require themes/coloradmin/custom/custom.js
|
11
|
-
//= require themes/coloradmin/theme/apps.js
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcthemes_web_theme_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -371,7 +371,6 @@ files:
|
|
371
371
|
- app/assets/javascripts/themes/basic/custom/custom.js
|
372
372
|
- app/assets/javascripts/themes/bold/custom/custom.js
|
373
373
|
- app/assets/javascripts/themes/coloradmin/custom/custom.js
|
374
|
-
- app/assets/javascripts/themes/coloradmin/theme/apps.js
|
375
374
|
- app/assets/javascripts/themes/devine_villas/custom/custom.js
|
376
375
|
- app/assets/javascripts/themes/devine_villas/theme/dashboard.js
|
377
376
|
- app/assets/javascripts/themes/devine_villas/theme/main.js
|
@@ -1,236 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3 & 4
|
3
|
-
Version: 4.3.0
|
4
|
-
Author: Sean Ngu
|
5
|
-
Website: http://www.seantheme.com/color-admin-v4.3/frontend/blog/
|
6
|
-
----------------------------
|
7
|
-
APPS CONTENT TABLE
|
8
|
-
----------------------------
|
9
|
-
|
10
|
-
<!-- ======== GLOBAL SCRIPT SETTING ======== -->
|
11
|
-
01. Handle Home Content Height
|
12
|
-
02. Handle Header Navigation State
|
13
|
-
03. Handle Commas to Number
|
14
|
-
04. Handle Page Container Show
|
15
|
-
05. Handle Pace Page Loading Plugins
|
16
|
-
06. Handle Page Scroll Content Animation
|
17
|
-
07. Handle Header Scroll To Action
|
18
|
-
08. Handle Tooltip Activation
|
19
|
-
09. Handle Theme Panel Expand
|
20
|
-
10. Handle Theme Page Control
|
21
|
-
11. Handle Grid Post Masonry
|
22
|
-
12. Handle Paroller
|
23
|
-
|
24
|
-
<!-- ======== APPLICATION SETTING ======== -->
|
25
|
-
Application Controller
|
26
|
-
*/
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
/* 01. Handle Home Content Height
|
31
|
-
------------------------------------------------ */
|
32
|
-
var handleHomeContentHeight = function() {
|
33
|
-
$('#home').height($(window).height());
|
34
|
-
};
|
35
|
-
|
36
|
-
|
37
|
-
/* 02. Handle Header Navigation State
|
38
|
-
------------------------------------------------ */
|
39
|
-
var handleHeaderNavigationState = function() {
|
40
|
-
$(window).on('scroll', function() {
|
41
|
-
var totalScrollTop = $(window).scrollTop();
|
42
|
-
if (totalScrollTop >= 50){
|
43
|
-
$('#header').addClass('navbar-sm');
|
44
|
-
} else {
|
45
|
-
$('#header').removeClass('navbar-sm');
|
46
|
-
}
|
47
|
-
});
|
48
|
-
};
|
49
|
-
|
50
|
-
|
51
|
-
/* 03. Handle Commas to Number
|
52
|
-
------------------------------------------------ */
|
53
|
-
var handleAddCommasToNumber = function(value) {
|
54
|
-
return value.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
|
55
|
-
};
|
56
|
-
|
57
|
-
|
58
|
-
/* 04. Handle Page Container Show
|
59
|
-
------------------------------------------------ */
|
60
|
-
var handlePageContainerShow = function() {
|
61
|
-
$('#page-container').addClass('in');
|
62
|
-
};
|
63
|
-
|
64
|
-
|
65
|
-
/* 05. Handle Pace Page Loading Plugins
|
66
|
-
------------------------------------------------ */
|
67
|
-
var handlePaceLoadingPlugins = function() {
|
68
|
-
Pace.on('hide', function(){
|
69
|
-
setTimeout(function() {
|
70
|
-
$('.pace').addClass('hide');
|
71
|
-
}, 1000);
|
72
|
-
});
|
73
|
-
};
|
74
|
-
|
75
|
-
|
76
|
-
/* 06. Handle Page Scroll Content Animation
|
77
|
-
------------------------------------------------ */
|
78
|
-
var handlePageScrollContentAnimation = function() {
|
79
|
-
$('[data-scrollview="true"]').each(function() {
|
80
|
-
var myElement = $(this);
|
81
|
-
|
82
|
-
var elementWatcher = scrollMonitor.create( myElement, 60 );
|
83
|
-
|
84
|
-
elementWatcher.enterViewport(function() {
|
85
|
-
$(myElement).find('[data-animation=true]').each(function() {
|
86
|
-
var targetAnimation = $(this).attr('data-animation-type');
|
87
|
-
var targetElement = $(this);
|
88
|
-
if (!$(targetElement).hasClass('contentAnimated')) {
|
89
|
-
if (targetAnimation == 'number') {
|
90
|
-
var finalNumber = parseInt($(targetElement).attr('data-final-number'));
|
91
|
-
$({animateNumber: 0}).animate({animateNumber: finalNumber}, {
|
92
|
-
duration: 1000,
|
93
|
-
easing:'swing',
|
94
|
-
step: function() {
|
95
|
-
var displayNumber = handleAddCommasToNumber(Math.ceil(this.animateNumber));
|
96
|
-
$(targetElement).text(displayNumber).addClass('contentAnimated');
|
97
|
-
}
|
98
|
-
});
|
99
|
-
} else {
|
100
|
-
$(this).addClass(targetAnimation + ' contentAnimated');
|
101
|
-
}
|
102
|
-
}
|
103
|
-
});
|
104
|
-
});
|
105
|
-
});
|
106
|
-
};
|
107
|
-
|
108
|
-
|
109
|
-
/* 07. Handle Header Scroll To Action
|
110
|
-
------------------------------------------------ */
|
111
|
-
var handleHeaderScrollToAction = function() {
|
112
|
-
$('[data-click=scroll-to-target]').on('click', function(e) {
|
113
|
-
e.preventDefault();
|
114
|
-
e.stopPropagation();
|
115
|
-
var target = $(this).attr('href');
|
116
|
-
var headerHeight = 50;
|
117
|
-
$('html, body').animate({
|
118
|
-
scrollTop: $(target).offset().top - headerHeight
|
119
|
-
}, 500);
|
120
|
-
|
121
|
-
if ($(this).attr('data-toggle') == 'dropdown') {
|
122
|
-
var targetLi = $(this).closest('li.dropdown');
|
123
|
-
if ($(targetLi).hasClass('open')) {
|
124
|
-
$(targetLi).removeClass('open');
|
125
|
-
} else {
|
126
|
-
$(targetLi).addClass('open');
|
127
|
-
}
|
128
|
-
}
|
129
|
-
});
|
130
|
-
$(document).click(function(e) {
|
131
|
-
if (!e.isPropagationStopped()) {
|
132
|
-
$('.dropdown.open').removeClass('open');
|
133
|
-
}
|
134
|
-
});
|
135
|
-
};
|
136
|
-
|
137
|
-
|
138
|
-
/* 08. Handle Tooltip Activation
|
139
|
-
------------------------------------------------ */
|
140
|
-
var handleTooltipActivation = function() {
|
141
|
-
if ($('[data-toggle=tooltip]').length !== 0) {
|
142
|
-
$('[data-toggle=tooltip]').tooltip();
|
143
|
-
}
|
144
|
-
};
|
145
|
-
|
146
|
-
|
147
|
-
/* 09. Handle Theme Panel Expand
|
148
|
-
------------------------------------------------ */
|
149
|
-
var handleThemePanelExpand = function() {
|
150
|
-
$(document).on('click', '[data-click="theme-panel-expand"]', function() {
|
151
|
-
var targetContainer = '.theme-panel';
|
152
|
-
var targetClass = 'active';
|
153
|
-
if ($(targetContainer).hasClass(targetClass)) {
|
154
|
-
$(targetContainer).removeClass(targetClass);
|
155
|
-
} else {
|
156
|
-
$(targetContainer).addClass(targetClass);
|
157
|
-
}
|
158
|
-
});
|
159
|
-
};
|
160
|
-
|
161
|
-
|
162
|
-
/* 10. Handle Theme Page Control
|
163
|
-
------------------------------------------------ */
|
164
|
-
var handleThemePageControl = function() {
|
165
|
-
if (typeof Cookies !== 'undefined') {
|
166
|
-
if (Cookies.get('theme')) {
|
167
|
-
if ($('.theme-list').length !== 0) {
|
168
|
-
$('.theme-list [data-theme]').closest('li').removeClass('active');
|
169
|
-
$('.theme-list [data-theme="'+ Cookies.get('theme') +'"]').closest('li').addClass('active');
|
170
|
-
}
|
171
|
-
var cssFileSrc = $('[data-theme="'+ Cookies.get('theme') +'"]').attr('data-theme-file');
|
172
|
-
$('#theme').attr('href', cssFileSrc, { expires: 365 });
|
173
|
-
}
|
174
|
-
|
175
|
-
$(document).on('click', '.theme-list [data-theme]', function() {
|
176
|
-
var cssFileSrc = $(this).attr('data-theme-file');
|
177
|
-
$('#theme').attr('href', cssFileSrc);
|
178
|
-
$('.theme-list [data-theme]').not(this).closest('li').removeClass('active');
|
179
|
-
$(this).closest('li').addClass('active');
|
180
|
-
Cookies.set('theme', $(this).attr('data-theme'));
|
181
|
-
});
|
182
|
-
}
|
183
|
-
};
|
184
|
-
|
185
|
-
|
186
|
-
/* 11. Handle Grid Post Masonry
|
187
|
-
------------------------------------------------ */
|
188
|
-
var handlePostGrid = function() {
|
189
|
-
if (typeof $.fn.masonry !== 'undefined') {
|
190
|
-
if ($('.post-grid').length !== 0) {
|
191
|
-
$('.post-grid').masonry({
|
192
|
-
// set itemSelector so .grid-sizer is not used in layout
|
193
|
-
itemSelector: '.post-li',
|
194
|
-
// use element for option
|
195
|
-
columnWidth: '.post-li',
|
196
|
-
percentPosition: true
|
197
|
-
});
|
198
|
-
}
|
199
|
-
}
|
200
|
-
};
|
201
|
-
|
202
|
-
|
203
|
-
/* 12. Handle Paroller
|
204
|
-
------------------------------------------------ */
|
205
|
-
|
206
|
-
var handleParoller = function() {
|
207
|
-
if (typeof $.fn.paroller !== 'undefined') {
|
208
|
-
if ($('[data-paroller="true"]').length !== 0) {
|
209
|
-
$('[data-paroller="true"]').paroller();
|
210
|
-
}
|
211
|
-
}
|
212
|
-
};
|
213
|
-
|
214
|
-
|
215
|
-
/* Application Controller
|
216
|
-
------------------------------------------------ */
|
217
|
-
var App = function () {
|
218
|
-
"use strict";
|
219
|
-
|
220
|
-
return {
|
221
|
-
//main function
|
222
|
-
init: function () {
|
223
|
-
handleHomeContentHeight();
|
224
|
-
handleHeaderNavigationState();
|
225
|
-
handlePageContainerShow();
|
226
|
-
handlePaceLoadingPlugins();
|
227
|
-
handlePageScrollContentAnimation();
|
228
|
-
handleHeaderScrollToAction();
|
229
|
-
handleTooltipActivation();
|
230
|
-
handleThemePanelExpand();
|
231
|
-
handleThemePageControl();
|
232
|
-
handlePostGrid();
|
233
|
-
handleParoller();
|
234
|
-
}
|
235
|
-
};
|
236
|
-
}();
|