phcthemes_web_theme_pack 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/common/ckeditor/ckeditor.js +3 -2
  3. data/app/assets/javascripts/common/ckeditor/ckeditor.js.map +1 -0
  4. data/app/assets/javascripts/common/ckeditor/translations/af.js +1 -1
  5. data/app/assets/javascripts/common/ckeditor/translations/ar.js +1 -1
  6. data/app/assets/javascripts/common/ckeditor/translations/ast.js +1 -1
  7. data/app/assets/javascripts/common/ckeditor/translations/az.js +1 -1
  8. data/app/assets/javascripts/common/ckeditor/translations/bg.js +1 -1
  9. data/app/assets/javascripts/common/ckeditor/translations/ca.js +1 -1
  10. data/app/assets/javascripts/common/ckeditor/translations/cs.js +1 -1
  11. data/app/assets/javascripts/common/ckeditor/translations/da.js +1 -1
  12. data/app/assets/javascripts/common/ckeditor/translations/de-ch.js +1 -1
  13. data/app/assets/javascripts/common/ckeditor/translations/de.js +1 -1
  14. data/app/assets/javascripts/common/ckeditor/translations/el.js +1 -1
  15. data/app/assets/javascripts/common/ckeditor/translations/en-au.js +1 -1
  16. data/app/assets/javascripts/common/ckeditor/translations/en-gb.js +1 -0
  17. data/app/assets/javascripts/common/ckeditor/translations/en.js +5 -0
  18. data/app/assets/javascripts/common/ckeditor/translations/eo.js +1 -1
  19. data/app/assets/javascripts/common/ckeditor/translations/es.js +1 -1
  20. data/app/assets/javascripts/common/ckeditor/translations/et.js +1 -1
  21. data/app/assets/javascripts/common/ckeditor/translations/eu.js +1 -1
  22. data/app/assets/javascripts/common/ckeditor/translations/fa.js +1 -1
  23. data/app/assets/javascripts/common/ckeditor/translations/fi.js +1 -1
  24. data/app/assets/javascripts/common/ckeditor/translations/fr.js +1 -1
  25. data/app/assets/javascripts/common/ckeditor/translations/gl.js +1 -1
  26. data/app/assets/javascripts/common/ckeditor/translations/gu.js +1 -1
  27. data/app/assets/javascripts/common/ckeditor/translations/he.js +1 -1
  28. data/app/assets/javascripts/common/ckeditor/translations/hr.js +1 -1
  29. data/app/assets/javascripts/common/ckeditor/translations/hu.js +1 -1
  30. data/app/assets/javascripts/common/ckeditor/translations/id.js +1 -1
  31. data/app/assets/javascripts/common/ckeditor/translations/it.js +1 -1
  32. data/app/assets/javascripts/common/ckeditor/translations/ja.js +1 -1
  33. data/app/assets/javascripts/common/ckeditor/translations/km.js +1 -1
  34. data/app/assets/javascripts/common/ckeditor/translations/kn.js +1 -1
  35. data/app/assets/javascripts/common/ckeditor/translations/ko.js +1 -1
  36. data/app/assets/javascripts/common/ckeditor/translations/ku.js +1 -1
  37. data/app/assets/javascripts/common/ckeditor/translations/lt.js +1 -1
  38. data/app/assets/javascripts/common/ckeditor/translations/lv.js +1 -1
  39. data/app/assets/javascripts/common/ckeditor/translations/nb.js +1 -1
  40. data/app/assets/javascripts/common/ckeditor/translations/ne.js +1 -1
  41. data/app/assets/javascripts/common/ckeditor/translations/nl.js +1 -1
  42. data/app/assets/javascripts/common/ckeditor/translations/no.js +1 -1
  43. data/app/assets/javascripts/common/ckeditor/translations/oc.js +1 -1
  44. data/app/assets/javascripts/common/ckeditor/translations/pl.js +1 -1
  45. data/app/assets/javascripts/common/ckeditor/translations/pt-br.js +1 -1
  46. data/app/assets/javascripts/common/ckeditor/translations/pt.js +1 -1
  47. data/app/assets/javascripts/common/ckeditor/translations/ro.js +1 -1
  48. data/app/assets/javascripts/common/ckeditor/translations/ru.js +1 -1
  49. data/app/assets/javascripts/common/ckeditor/translations/si.js +1 -1
  50. data/app/assets/javascripts/common/ckeditor/translations/sk.js +1 -1
  51. data/app/assets/javascripts/common/ckeditor/translations/sl.js +1 -0
  52. data/app/assets/javascripts/common/ckeditor/translations/sq.js +1 -1
  53. data/app/assets/javascripts/common/ckeditor/translations/sr-latn.js +1 -1
  54. data/app/assets/javascripts/common/ckeditor/translations/sr.js +1 -1
  55. data/app/assets/javascripts/common/ckeditor/translations/sv.js +1 -1
  56. data/app/assets/javascripts/common/ckeditor/translations/tr.js +1 -1
  57. data/app/assets/javascripts/common/ckeditor/translations/tt.js +1 -1
  58. data/app/assets/javascripts/common/ckeditor/translations/ug.js +1 -1
  59. data/app/assets/javascripts/common/ckeditor/translations/uk.js +1 -1
  60. data/app/assets/javascripts/common/ckeditor/translations/vi.js +1 -1
  61. data/app/assets/javascripts/common/ckeditor/translations/zh-cn.js +1 -1
  62. data/app/assets/javascripts/common/ckeditor/translations/zh.js +1 -1
  63. data/app/assets/javascripts/common/lazysizes/lazysizes.js +754 -0
  64. data/app/assets/javascripts/common/scrollme/jquery.scrollme.js +455 -0
  65. data/app/assets/javascripts/common/slick/slick.js +3004 -0
  66. data/app/assets/javascripts/common/wow/wow.js +508 -0
  67. data/app/assets/javascripts/phcthemes_web_theme_pack_antlr.js +15 -0
  68. data/app/assets/javascripts/themes/antlr/theme/script.js +1092 -0
  69. data/app/assets/stylesheets/phcthemes_web_theme_pack_antlr.scss +22 -0
  70. data/lib/phcthemes_web_theme_pack/version.rb +1 -1
  71. metadata +13 -2
@@ -0,0 +1,15 @@
1
+ //= require jquery3
2
+ //= require rails-ujs
3
+ //= require activestorage
4
+ //= require jquery-ui
5
+ //= require common/bootstrap/bootstrap.bundle.js
6
+ //= require common/jquery-countdown/jquery.countdown.js
7
+ //= require common/magnific-popup/jquery.magnific-popup.js
8
+ //= require common/slick/slick.js
9
+ //= require common/owl-carousel/owl.carousel.js
10
+ //= require common/isotope/isotope.pkgd.js
11
+ //= require common/scrollme/jquery.scrollme.js
12
+ //= require common/swiper/swiper.js
13
+ //= require common/lazysizes/lazysizes.js
14
+ //= require common/wow/wow.js
15
+ //= require themes/antlr/theme/script.js
@@ -0,0 +1,1092 @@
1
+ /*------------------------------------------------------------------
2
+ Project: Antler - Hosting Provider & WHMCS Template
3
+ Description: Antler Responsive Premium Template Designed for all web hosting providers
4
+ Author: inebur (Rúben Rodrigues)
5
+ Author URI: http://inebur.com/
6
+ Author Envato: https://themeforest.net/user/inebur
7
+ Copyright: 2020 inebur
8
+ Version: 2.1.2
9
+ -------------------------------------------------------------------*/
10
+ document.addEventListener('DOMContentLoaded', function() {
11
+ "use strict";
12
+ loadWindowSettings();
13
+ loadWindowEvents();
14
+ loadMenu();
15
+ loadTabs();
16
+ izotope();
17
+ popup();
18
+ accordion();
19
+ loadTooltips();
20
+ initSliderUI();
21
+ loadCountdown();
22
+ speacialCount();
23
+ loadSkills();
24
+ misc();
25
+ slick();
26
+ listenSlick();
27
+ loader();
28
+ backtotop();
29
+ owldemo();
30
+ isotope();
31
+ livechat();
32
+ contactform();
33
+ popover();
34
+ scrollgoto();
35
+ active();
36
+ display();
37
+ switching();
38
+ headerfooter();
39
+ translate();
40
+ switchVisible();
41
+ });
42
+ //----------------------------------------------------/
43
+ // SVG Change color style
44
+ //----------------------------------------------------/
45
+ $("img.svg")
46
+ .each(function() {
47
+ var $img = jQuery(this);
48
+ var attributes = $img.prop("attributes");
49
+ var imgURL = $img.attr("src");
50
+ $.get(imgURL, function(data) {
51
+ var $svg = $(data)
52
+ .find('svg');
53
+ $svg = $svg.removeAttr('xmlns:a');
54
+ $.each(attributes, function() {
55
+ $svg.attr(this.name, this.value);
56
+ });
57
+ $img.replaceWith($svg);
58
+ });
59
+ });
60
+ //----------------------------------------------------/
61
+ // Styleswitch color style
62
+ //----------------------------------------------------/
63
+ (function($) {
64
+ $(document)
65
+ .ready(function() {
66
+ $(".styleswitch")
67
+ .click(function() {
68
+ switchStylestyle(this.getAttribute("data-rel"));
69
+ return false
70
+ });
71
+ });
72
+
73
+ function switchStylestyle(styleName) {
74
+ $("link[rel*=style][title]")
75
+ .each(function(i) {
76
+ this.disabled = true;
77
+ if (this.getAttribute("title") == styleName) this.disabled = false
78
+ })
79
+ }
80
+ })(jQuery);
81
+ //----------------------------------------------------/
82
+ // Custom VPS - Periodicity
83
+ //----------------------------------------------------/
84
+ function switchVisible() {
85
+ if (document.getElementById('price-val')) {
86
+ if (document.getElementById('price-val')
87
+ .style.display == 'none') {
88
+ document.getElementById('price-val')
89
+ .style.display = 'block';
90
+ document.getElementById('priceon-val')
91
+ .style.display = 'none';
92
+ } else {
93
+ document.getElementById('price-val')
94
+ .style.display = 'none';
95
+ document.getElementById('priceon-val')
96
+ .style.display = 'block';
97
+ }
98
+ }
99
+ }
100
+ //----------------------------------------------------/
101
+ // Active Menu
102
+ //----------------------------------------------------/
103
+ jQuery(function($) {
104
+ var path = window.location.href;
105
+ $('#menu ul li a')
106
+ .each(function() {
107
+ if (this.href === path) {
108
+ $(this)
109
+ .addClass('active');
110
+ $(this)
111
+ .parent()
112
+ .parent()
113
+ .closest("li")
114
+ .addClass('active2');
115
+ $('.active2 a:first')
116
+ .addClass('active');
117
+ }
118
+ });
119
+ });
120
+ //----------------------------------------------------/
121
+ // Open Menu Mobile
122
+ //----------------------------------------------------/
123
+ $(".mobile .menu-item")
124
+ .on('click',
125
+ function() {
126
+ if ($(".sub-menu", this)
127
+ .css('display') === 'none') {
128
+ $(".sub-menu", this)
129
+ .css("display", "block");
130
+ } else {
131
+ $(".sub-menu", this)
132
+ .css("display", "none");
133
+ }
134
+ }
135
+ );
136
+ //----------------------------------------------------/
137
+ // i18next translate
138
+ //----------------------------------------------------/
139
+ function translate() {
140
+ $.getScript('js/lib/i18next.min.js', function() {
141
+ $.getScript('js/lib/i18nextXHRBackend.min.js', function() {
142
+ $.getScript('js/lib/jquery-i18next.min.js', function() {
143
+ var language = localStorage.getItem('lng');
144
+ if (!language) {
145
+ localStorage.setItem('lng', 'en-US');
146
+ language = 'en-US';
147
+ }
148
+ i18next.use(i18nextXHRBackend)
149
+ .init({
150
+ lng: language,
151
+ fallbackLng: 'en-US',
152
+ backend: {
153
+ loadPath: 'locales/{{lng}}/translations.json'
154
+ }
155
+ }, function(err, t) {
156
+ jqueryI18next.init(i18next, $, {
157
+ tName: 't',
158
+ i18nName: 'i18n',
159
+ handleName: 'localize',
160
+ selectorAttr: 'data-i18n',
161
+ targetAttr: 'i18n-target',
162
+ optionsAttr: 'i18n-options',
163
+ useOptionsAttr: false,
164
+ parseDefaultValueFromContent: true
165
+ });
166
+ $(document)
167
+ .localize();
168
+ });
169
+ });
170
+ });
171
+ });
172
+ }
173
+ /*---------------------------------*/
174
+ /* Load header and footer file */
175
+ /*---------------------------------*/
176
+ function headerfooter() {
177
+ $("#header")
178
+ .load("header.html", function(res, status, xhr) {
179
+ $('#drop-lng [data-lng="' + localStorage.getItem('lng') + '"]')
180
+ .addClass('xpto active');
181
+ $('#drop-lng label')
182
+ .click(function(e) {
183
+ e.preventDefault();
184
+ localStorage.setItem('lng', $(this)
185
+ .attr('data-lng'));
186
+ location.reload(true);
187
+ });
188
+ });
189
+ $("#footer")
190
+ .load("footer.html", function(res, status, xhr) {
191
+ $('#drop-lng [data-lng="' + localStorage.getItem('lng') + '"]')
192
+ .addClass('xpto active');
193
+ $('#drop-lng label')
194
+ .click(function(e) {
195
+ e.preventDefault();
196
+ localStorage.setItem('lng', $(this)
197
+ .attr('data-lng'));
198
+ location.reload(true);
199
+ });
200
+ });
201
+ }
202
+ /*----------------------*/
203
+ /* Switch */
204
+ /*----------------------*/
205
+ function switching() {
206
+ $(window)
207
+ .on('load', function() {
208
+ var dToggle = $('#run-switch');
209
+ var planPeriod = $('.price-content .period', '.price-container');
210
+ dToggle.on('click', function() {
211
+ $('.mo', this)
212
+ .toggleClass('active');
213
+ $('.an', this)
214
+ .toggleClass('active');
215
+ $('.month', this)
216
+ .toggleClass('active');
217
+ $('.switch', this)
218
+ .toggleClass('on');
219
+ $('.year', this)
220
+ .toggleClass('active');
221
+ if (planPeriod.hasClass('annually')) {
222
+ planPeriod.text('month');
223
+ for (var i = 0; i <= 2; i++) {
224
+ $('.price-container:eq(' + i + ') .value')
225
+ .text(parseFloat(Number($('.price-container:eq(' + i + ') .value')
226
+ .text()) / 12)
227
+ .toFixed(2));
228
+ }
229
+ } else {
230
+ planPeriod.text('year');
231
+ for (var i = 0; i <= 2; i++) {
232
+ $('.price-container:eq(' + i + ') .value')
233
+ .text(parseFloat(Number($('.price-container:eq(' + i + ') .value')
234
+ .text()) * 12)
235
+ .toFixed(2));
236
+ }
237
+ }
238
+ planPeriod.toggleClass('annually');
239
+ });
240
+ });
241
+ }
242
+ /*----------------------*/
243
+ /* Full Nav Open */
244
+ /*----------------------*/
245
+ function openNav() {
246
+ document.getElementById('myNav')
247
+ .style.display = 'block';
248
+ }
249
+
250
+ function closeNav() {
251
+ document.getElementById('myNav')
252
+ .style.display = 'none';
253
+ }
254
+ /*----------------------*/
255
+ /* Display & Hide */
256
+ /*----------------------*/
257
+ function display() {
258
+ $('#showall')
259
+ .on("click", function() {
260
+ $('.targetDiv')
261
+ .show();
262
+ });
263
+ $('.showSingle')
264
+ .on("click", function() {
265
+ $('.targetDiv')
266
+ .hide();
267
+ $('#div' + $(this)
268
+ .attr('target'))
269
+ .show();
270
+ });
271
+ }
272
+ /*----------------------*/
273
+ /* Active Button */
274
+ /*----------------------*/
275
+ function active() {
276
+ $(".heading a")
277
+ .on("click", function() {
278
+ $(".heading a")
279
+ .removeClass("active");
280
+ $(this)
281
+ .addClass("active");
282
+ });
283
+ }
284
+ /*----------------------*/
285
+ /* Scroll Goto */
286
+ /*----------------------*/
287
+ function scrollgoto() {
288
+ $('.gocheck')
289
+ .on('click', function(event) {
290
+ var target = $(this.getAttribute('href'));
291
+ if (target.length) {
292
+ event.preventDefault();
293
+ $('html, body')
294
+ .stop()
295
+ .animate({
296
+ scrollTop: target.offset()
297
+ .top
298
+ }, 1000);
299
+ }
300
+ });
301
+ }
302
+ /*----------------------*/
303
+ /* Popover */
304
+ /*----------------------*/
305
+ function popover() {
306
+ $('[data-toggle="popover"]')
307
+ .popover()
308
+ }
309
+ /*----------------------*/
310
+ /* Contact Form */
311
+ /*----------------------*/
312
+ function contactform() {
313
+ $('#contactForm')
314
+ .on('submit', function(e) {
315
+ $.ajax({
316
+ type: "POST",
317
+ url: 'php/form-process.php',
318
+ data: $(this)
319
+ .serialize(),
320
+ success: function() {
321
+ $('#msgSubmit')
322
+ .fadeIn(100)
323
+ .show();
324
+ }
325
+ });
326
+ e.preventDefault();
327
+ });
328
+ };
329
+ /*----------------------*/
330
+ /* Live Chat */
331
+ /*----------------------*/
332
+ function livechat() {
333
+ var Tawk_API = Tawk_API || {},
334
+ Tawk_LoadStart = new Date();
335
+ (function() {
336
+ var s1 = document.createElement("script"),
337
+ s0 = document.getElementsByTagName("script")[0];
338
+ s1.async = true;
339
+ s1.src = 'https://embed.tawk.to/58127f62c7829d0cd36c88a9/default';
340
+ s1.charset = 'UTF-8';
341
+ s1.setAttribute('crossorigin', '*');
342
+ s0.parentNode.insertBefore(s1, s0);
343
+ })();
344
+ }
345
+ /*----------------------*/
346
+ /* Isotope */
347
+ /*----------------------*/
348
+ function isotope() {
349
+ $(window)
350
+ .on('load', function() {
351
+ var selectedCategory;
352
+ var $grid = $('.featured')
353
+ .isotope({
354
+ itemSelector: '.isotope-item',
355
+ masonry: {
356
+ columnWidth: '.isotope-item',
357
+ },
358
+ getSortData: {
359
+ selectedCategory: function(itemElem) {
360
+ return $(itemElem)
361
+ .hasClass(selectedCategory) ? 0 : 1;
362
+ }
363
+ }
364
+ });
365
+ var $items = $('.featured')
366
+ .find('.featured-items');
367
+ $('.sort-button-group')
368
+ .on('click', '.button', function() {
369
+ selectedCategory = $(this)
370
+ .attr('data-category');
371
+ if (selectedCategory === 'all') {
372
+ $grid.isotope({
373
+ sortBy: 'original-order'
374
+ });
375
+ $items.css({
376
+ opacity: 1
377
+ });
378
+ return;
379
+ }
380
+ var selectedClass = '.' + selectedCategory;
381
+ $items.filter(selectedClass)
382
+ .css({
383
+ opacity: 1
384
+ });
385
+ $items.not(selectedClass)
386
+ .css({
387
+ opacity: 0
388
+ });
389
+ $grid.isotope('updateSortData');
390
+ $grid.isotope({
391
+ sortBy: 'selectedCategory'
392
+ });
393
+ });
394
+ $('.button-group')
395
+ .each(function(i, buttonGroup) {
396
+ var $buttonGroup = $(buttonGroup);
397
+ $buttonGroup.on('click', 'li', function() {
398
+ $buttonGroup.find('.active')
399
+ .removeClass('active');
400
+ $(this)
401
+ .addClass('active');
402
+ });
403
+ });
404
+ });
405
+ }
406
+ /*----------------------*/
407
+ /* OWL */
408
+ /*----------------------*/
409
+ function owldemo() {
410
+ $('.owl-carousel')
411
+ .owlCarousel({
412
+ onInitialized: theThing,
413
+ nav: false,
414
+ singleItem: true,
415
+ autoHeight: true,
416
+ dots: true,
417
+ center: true,
418
+ margin: 0,
419
+ padding: 0,
420
+ animateOut: 'fadeOut',
421
+ items: 1,
422
+ autoPlay: 5500,
423
+ stopOnHover: true,
424
+ center: true,
425
+ navigation: false,
426
+ pagination: false,
427
+ goToFirstSpeed: 1300,
428
+ singleItem: true,
429
+ autoHeight: true,
430
+ responsive: true,
431
+ responsiveRefreshRate: 200,
432
+ responsiveBaseWidth: window,
433
+ video: true,
434
+ autoplay: true,
435
+ autoplayTimeout: 9000,
436
+ autoplayHoverPause: true,
437
+ navText: [
438
+ "<i class='fa fa-chevron-left'></i>",
439
+ "<i class='fa fa-chevron-right'></i>"
440
+ ],
441
+ responsive: {
442
+ 0: {
443
+ items: 1
444
+ },
445
+ }
446
+ });
447
+
448
+ function theThing(event) {
449
+ $(".active .owl-video-play-icon")
450
+ .trigger("click")
451
+ }
452
+ }
453
+ /*----------------------*/
454
+ /* Back to top */
455
+ /*----------------------*/
456
+ function backtotop() {
457
+ // browser window scroll (in pixels) after which the "back to top" link is shown
458
+ var offset = 300,
459
+ //browser window scroll (in pixels) after which the "back to top" link opacity is reduced
460
+ offset_opacity = 1200,
461
+ //duration of the top scrolling animation (in ms)
462
+ scroll_top_duration = 700,
463
+ //grab the "back to top" link
464
+ $back_to_top = $('.cd-top');
465
+ //hide or show the "back to top" link
466
+ $(window)
467
+ .scroll(function() {
468
+ ($(this)
469
+ .scrollTop() > offset) ? $back_to_top.addClass('cd-is-visible'): $back_to_top.removeClass('cd-is-visible cd-fade-out');
470
+ if ($(this)
471
+ .scrollTop() > offset_opacity) {
472
+ $back_to_top.addClass('cd-fade-out');
473
+ }
474
+ });
475
+ //smooth scroll to top
476
+ $back_to_top.on('click', function(event) {
477
+ event.preventDefault();
478
+ $('body,html')
479
+ .animate({
480
+ scrollTop: 0,
481
+ }, scroll_top_duration);
482
+ });
483
+ }
484
+ /*----------------------*/
485
+ /* Loader */
486
+ /*----------------------*/
487
+ function loader() {
488
+ $(window)
489
+ .on('load', function() {
490
+ $("#spinner-area")
491
+ .fadeOut("slow");
492
+ })
493
+ }
494
+ /*----------------------*/
495
+ /* Listen Slick */
496
+ /*----------------------*/
497
+ function listenSlick() {
498
+ $('.slick')
499
+ .on('unslick', function() {
500
+ var resizeCheck = setInterval(function() {
501
+ if ($(window)
502
+ .width() > 590) {
503
+ clearInterval(resizeCheck);
504
+ slick();
505
+ }
506
+ }, 100);
507
+ });
508
+ }
509
+ /*----------------------*/
510
+ /* Slick Slider */
511
+ /*----------------------*/
512
+ function slick() {
513
+ $('#slider')
514
+ .slick({
515
+ centerMode: true,
516
+ centerPadding: '200px',
517
+ slidesToShow: 3,
518
+ infinite: true,
519
+ arrows: true,
520
+ responsive: [{
521
+ breakpoint: 1200,
522
+ settings: {
523
+ arrows: true,
524
+ centerMode: true,
525
+ centerPadding: '100px',
526
+ slidesToShow: 3
527
+ }
528
+ }, {
529
+ breakpoint: 991,
530
+ settings: {
531
+ arrows: true,
532
+ centerMode: true,
533
+ centerPadding: '200px',
534
+ slidesToShow: 1
535
+ }
536
+ }, {
537
+ breakpoint: 768,
538
+ settings: {
539
+ arrows: true,
540
+ centerMode: true,
541
+ centerPadding: '150px',
542
+ slidesToShow: 1
543
+ }
544
+ }, {
545
+ breakpoint: 590,
546
+ settings: "unslick"
547
+ }]
548
+ });
549
+ }
550
+ /*----------------------*/
551
+ /* Popup */
552
+ /*----------------------*/
553
+ function popup() {
554
+ if ($('.popup-with-form')
555
+ .length) {
556
+ $('.popup-with-form')
557
+ .magnificPopup({
558
+ type: 'image',
559
+ preloader: true,
560
+ focus: '#name',
561
+ closeOnBgClick: true,
562
+ callbacks: {
563
+ beforeOpen: function() {
564
+ if ($(window)
565
+ .width() < 700) {
566
+ this.st.focus = false;
567
+ } else {
568
+ this.st.focus = '#name';
569
+ }
570
+ }
571
+ }
572
+ });
573
+ }
574
+ $('.gallery-item')
575
+ .magnificPopup({
576
+ delegate: 'a',
577
+ type: 'image',
578
+ tLoading: 'Loading image #%curr%...',
579
+ mainClass: 'mfp-img-mobile',
580
+ gallery: {
581
+ enabled: true,
582
+ navigateByImgClick: true,
583
+ preload: [0, 1]
584
+ },
585
+ });
586
+ // Initialize popup as usual
587
+ $('.image-link')
588
+ .magnificPopup({
589
+ type: 'image',
590
+ mainClass: 'mfp-with-zoom',
591
+ gallery: {
592
+ enabled: true,
593
+ navigateByImgClick: true,
594
+ preload: [0, 1]
595
+ },
596
+ image: {
597
+ // options for image content type
598
+ titleSrc: 'title'
599
+ },
600
+ zoom: {
601
+ enabled: true,
602
+ navigateByImgClick: true,
603
+ duration: 300,
604
+ easing: 'ease-in-out',
605
+ opener: function(openerElement) {
606
+ return openerElement.is('img') ? openerElement : openerElement.find('img');
607
+ }
608
+ },
609
+ });
610
+ }
611
+ $(document)
612
+ .ready(function() {
613
+ $('.popup-youtube, .popup-vimeo, .popup-gmaps')
614
+ .magnificPopup({
615
+ disableOn: 700,
616
+ type: 'iframe',
617
+ mainClass: 'mfp-fade',
618
+ removalDelay: 160,
619
+ preloader: false,
620
+ fixedContentPos: false
621
+ });
622
+ });
623
+
624
+ function misc() {
625
+ /*----------------------*/
626
+ /* Modal */
627
+ /*----------------------*/
628
+ $('#myModal')
629
+ .on('shown.bs.modal', function() {
630
+ $('#myInput')
631
+ .focus()
632
+ })
633
+ }
634
+ /*----------------------*/
635
+ /* Swiper */
636
+ /*----------------------*/
637
+ var mySwiper = new Swiper('.swiper-container', {
638
+ // Optional parameters
639
+ direction: 'horizontal',
640
+ loop: true,
641
+ autoHeight: true,
642
+ grabCursor: true,
643
+ centeredSlides: true,
644
+ autoplay: {
645
+ delay: 5000,
646
+ speed: 1000,
647
+ disableOnInteraction: false,
648
+ },
649
+ // If we need pagination
650
+ pagination: {
651
+ el: '.swiper-pagination',
652
+ },
653
+ // Navigation arrows
654
+ navigation: {
655
+ nextEl: '.swiper-button-next',
656
+ prevEl: '.swiper-button-prev',
657
+ },
658
+ // And if we need scrollbar
659
+ scrollbar: {
660
+ el: '.swiper-scrollbar',
661
+ },
662
+ })
663
+ /*-------------------------*/
664
+ /* Tooltips */
665
+ /*-------------------------*/
666
+ function loadTooltips() {
667
+ $('#element')
668
+ .tooltip('show')
669
+ $(function() {
670
+ $('[data-toggle="tooltip"]')
671
+ .tooltip()
672
+ })
673
+ }
674
+ $(function() {
675
+ $('[data-toggle="tooltip"]')
676
+ .tooltip()
677
+ })
678
+ /*-------------------------*/
679
+ /* Slider */
680
+ /*-------------------------*/
681
+ function initSliderUI() {
682
+ var initIterator = 0;
683
+ if ($(".slider-ui")
684
+ .length) {
685
+ $(".slider-ui")
686
+ .each(function() {
687
+ var self = $(this),
688
+ sliderUI = self.find('.slider-line'),
689
+ sliderInp = self.find('.slider-inp'),
690
+ sliderUniqueId = 'sliderUI' + initIterator,
691
+ inputUniqueId = 'inputUI' + initIterator,
692
+ start = parseInt(sliderInp.attr('data-start')),
693
+ count_step = parseInt(sliderInp.attr('data-count-step'));
694
+ sliderUI.attr('id', sliderUniqueId);
695
+ sliderInp.attr('id', inputUniqueId);
696
+ initIterator++;
697
+ count_step = count_step ? count_step : 300;
698
+ var keypressSlider = document.getElementById(sliderUniqueId),
699
+ input = document.getElementById(inputUniqueId);
700
+ noUiSlider.create(keypressSlider, {
701
+ start: start ? start : 1,
702
+ step: 1,
703
+ connect: "lower",
704
+ tooltips: true,
705
+ format: {
706
+ to: function(value) {
707
+ return "VPS" + value;
708
+ //return parseInt(value);
709
+ },
710
+ from: function(value) {
711
+ return value;
712
+ }
713
+ },
714
+ range: {
715
+ 'min': 1,
716
+ 'max': count_step
717
+ },
718
+ pips: {
719
+ mode: 'values',
720
+ values: [1, 2, 3, 4, 5],
721
+ density: 5,
722
+ stepped: true
723
+ }
724
+ });
725
+ // Calculate Docker Product second and third diagram
726
+ function getValue2(values, handle, unencoded, tap) {
727
+ var circle = $(this.target)
728
+ .closest('.sidebar')
729
+ .find('.circle');
730
+ circle.attr('data-percent', parseInt(unencoded) / count_step * 100);
731
+ }
732
+ keypressSlider.noUiSlider.on('change', getValue2);
733
+ keypressSlider.noUiSlider.on('update', function(values, handle) {
734
+ refreshInfo(values[handle]);
735
+ input.value = values[handle];
736
+ change_global_cloud_pkgs_href(values[handle]);
737
+ });
738
+ input.addEventListener('change', function() {
739
+ keypressSlider.noUiSlider.set([null, this.value]);
740
+ });
741
+ // Listen to keydown events on the input field.
742
+ input.addEventListener('keydown', function(e) {
743
+ // Convert the string to a number.
744
+ var value = Number(keypressSlider.noUiSlider.get()),
745
+ sliderStep = keypressSlider.noUiSlider.steps()
746
+ // Select the stepping for the first handle.
747
+ sliderStep = sliderStep[0];
748
+ // 13 is enter,
749
+ // 38 is key up,
750
+ // 40 is key down.
751
+ switch (e.which) {
752
+ case 13:
753
+ keypressSlider.noUiSlider.set(this.value);
754
+ break;
755
+ case 38:
756
+ keypressSlider.noUiSlider.set(value + sliderStep[1]);
757
+ break;
758
+ case 40:
759
+ keypressSlider.noUiSlider.set(value - sliderStep[0]);
760
+ break;
761
+ }
762
+ });
763
+
764
+ function getServicesInfo() {
765
+ var info = {
766
+ VPS1: {
767
+ name: "Service A",
768
+ disk: "100GB",
769
+ ram: "1GB",
770
+ cpu: "1 Core",
771
+ bandwith: "100GB",
772
+ setup: "8€",
773
+ ip: "2 IPs",
774
+ price: "99.09",
775
+ priceon: "8.26",
776
+ orderlink: "http://inebur.com/whmcs/cart.php?a=confproduct&i=0"
777
+ },
778
+ VPS2: {
779
+ name: "Service B",
780
+ disk: "200GB",
781
+ ram: "4GB",
782
+ cpu: "2 Core",
783
+ setup: "15€",
784
+ ip: "4 IPs",
785
+ bandwith: "500GB",
786
+ price: "155.00",
787
+ priceon: "12.92",
788
+ orderlink: "http://inebur.com/whmcs/cart.php?a=confproduct&i=1"
789
+ },
790
+ VPS3: {
791
+ name: "Service C",
792
+ disk: "300GB",
793
+ ram: "8GB",
794
+ cpu: "4 Core",
795
+ setup: "Free",
796
+ ip: "8 IPs",
797
+ bandwith: "2TB",
798
+ price: "299.99",
799
+ priceon: "25.00",
800
+ orderlink: "http://inebur.com/whmcs/cart.php?a=confproduct&i=2"
801
+ },
802
+ VPS4: {
803
+ name: "Service D",
804
+ disk: "400GB",
805
+ ram: "12GB",
806
+ cpu: "4 Core",
807
+ setup: "Free",
808
+ ip: "8 IPs",
809
+ bandwith: "Unlimited",
810
+ price: "395.22",
811
+ priceon: "32.94",
812
+ orderlink: "http://inebur.com/whmcs/cart.php?a=confproduct&i=3"
813
+ },
814
+ VPS5: {
815
+ name: "Service E",
816
+ disk: "500GB",
817
+ ram: "16GB",
818
+ cpu: "8 Core",
819
+ setup: "Free",
820
+ ip: "12 IPs",
821
+ bandwith: "Unlimited",
822
+ price: "545.00",
823
+ priceon: "45.42",
824
+ orderlink: "http://inebur.com/whmcs/cart.php?a=confproduct&i=4"
825
+ }
826
+ };
827
+ return info;
828
+ }
829
+
830
+ function refreshInfo(key) {
831
+ var info = getServicesInfo();
832
+ $("#disk-val")
833
+ .html(info[key].disk);
834
+ $("#cpu-val")
835
+ .html(info[key].cpu);
836
+ $("#ram-val")
837
+ .html(info[key].ram);
838
+ $("#setup-val")
839
+ .html(info[key].setup);
840
+ $("#ip-val")
841
+ .html(info[key].ip);
842
+ $("#bw-val")
843
+ .html(info[key].bandwith);
844
+ $("#price-val")
845
+ .html(info[key].price);
846
+ $("#priceon-val")
847
+ .html(info[key].priceon);
848
+ $("#orderlink-val")
849
+ .html(info[key].orderlink);
850
+ }
851
+
852
+ function change_global_cloud_pkgs_href(key) {
853
+ var info = getServicesInfo();
854
+ $("#orderlink")
855
+ .attr("href", info[key].orderlink);
856
+ }
857
+ });
858
+ }
859
+ }
860
+ /*-------------------------*/
861
+ /* Menu */
862
+ /*-------------------------*/
863
+ function loadMenu() {
864
+ $(".nav-menu .menu-toggle")
865
+ .on("click", function() {
866
+ $(this)
867
+ .closest(".menu-wrap")
868
+ .toggleClass("active");
869
+ });
870
+ $('.btn-scroll')
871
+ .on("click", function() {
872
+ $('html, body')
873
+ .animate({
874
+ scrollTop: $($.attr(this, 'href'))
875
+ .offset()
876
+ .top - 10
877
+ }, 500);
878
+ return false;
879
+ });
880
+ }
881
+ /*-------------------------*/
882
+ /* Izotope */
883
+ /*-------------------------*/
884
+ function izotope() {
885
+ if ($('.izotope-container')
886
+ .length) {
887
+ var $container = $('.izotope-container');
888
+ $container.isotope({
889
+ itemSelector: '.item',
890
+ layoutMode: 'masonry',
891
+ masonry: {
892
+ columnWidth: '.item'
893
+ }
894
+ });
895
+ }
896
+ $('#filters')
897
+ .on('click', '.but', function() {
898
+ $('.izotope-container')
899
+ .each(function() {
900
+ $(this)
901
+ .find('.item')
902
+ .removeClass('animated');
903
+ });
904
+ $('#filters .but')
905
+ .removeClass('activbut');
906
+ $(this)
907
+ .addClass('activbut');
908
+ var filterValue = $(this)
909
+ .attr('data-filter');
910
+ $container.isotope({
911
+ filter: filterValue
912
+ });
913
+ });
914
+ }
915
+ /*-------------------------*/
916
+ /* Tabs */
917
+ /*-------------------------*/
918
+ function loadTabs() {
919
+ $('.tabs-header')
920
+ .on('click', 'li:not(.active)', function() {
921
+ var index_el = $(this)
922
+ .index();
923
+ $(this)
924
+ .addClass('active')
925
+ .siblings()
926
+ .removeClass('active');
927
+ $(this)
928
+ .closest('.tabs')
929
+ .find('.tabs-item')
930
+ .removeClass('active')
931
+ .eq(index_el)
932
+ .addClass('active');
933
+ });
934
+ }
935
+ /*----------------------*/
936
+ /* Accordion */
937
+ /*----------------------*/
938
+ function accordion() {
939
+ $('.accordion')
940
+ .on('click', '.panel-title', function() {
941
+ var self = $(this);
942
+ var panelWrap = self.parent();
943
+ panelWrap.find('.panel-collapse')
944
+ .slideToggle('200');
945
+ self.toggleClass('active');
946
+ panelWrap.siblings()
947
+ .find('.panel-collapse')
948
+ .slideUp('200');
949
+ panelWrap.siblings()
950
+ .find('.panel-title')
951
+ .removeClass('active');
952
+ });
953
+ accordHeight();
954
+ }
955
+
956
+ function accordHeight() {
957
+ $(".accordion.faq .square")
958
+ .each(function() {
959
+ $(this)
960
+ .css({
961
+ "height": $(this)
962
+ .parent()
963
+ .outerHeight(true),
964
+ "padding-top": $(this)
965
+ .parent()
966
+ .outerHeight(true) / 2 - 20
967
+ });
968
+ });
969
+ }
970
+ /*-------------------------*/
971
+ /* SKILLS */
972
+ /*-------------------------*/
973
+ function loadSkills() {
974
+ //Circle skills
975
+ $('.circle')
976
+ .not('.animated')
977
+ .each(function() {
978
+ if ($(window)
979
+ .scrollTop() >= $(this)
980
+ .offset()
981
+ .top - $(window)
982
+ .height() * 0.7) {
983
+ $(this)
984
+ .addClass('animated')
985
+ .circliful();
986
+ }
987
+ });
988
+ }
989
+ /*-------------------------*/
990
+ /* Select */
991
+ /*-------------------------*/
992
+ function selectInit() {
993
+ $('.selectpicker')
994
+ .each(function() {
995
+ var self = $(this);
996
+ var selectStyle = self.attr('data-class'); //additional style attribute, not required
997
+ self.selectpicker({
998
+ style: 'cst-select ' + selectStyle //add classes to customize select field
999
+ });
1000
+ });
1001
+ }
1002
+
1003
+ function loadWindowEvents() {
1004
+ /*-------------------------*/
1005
+ /* Run Resize Functions */
1006
+ /*-------------------------*/
1007
+ $(window)
1008
+ .on("resize", function() {
1009
+ offheight();
1010
+ accordHeight();
1011
+ });
1012
+ /*-------------------------*/
1013
+ /* RUN SCROLL FUNCTIONS */
1014
+ /*-------------------------*/
1015
+ $(window)
1016
+ .on("scroll", function() {
1017
+ loadSkills();
1018
+ });
1019
+ /*-------------------------*/
1020
+ /* RUN SCROLL FUNCTIONS */
1021
+ /*-------------------------*/
1022
+ $(window)
1023
+ .on('scroll', function() {
1024
+ if ($(window)
1025
+ .scrollTop() >= 100) {
1026
+ $('.menu-wrap')
1027
+ .addClass('fixed');
1028
+ } else {
1029
+ $('.menu-wrap')
1030
+ .removeClass('fixed');
1031
+ }
1032
+ });
1033
+ }
1034
+ /*-------------------------*/
1035
+ /* Countdown */
1036
+ /*-------------------------*/
1037
+ function loadCountdown() {
1038
+ $('#clock')
1039
+ .countdown('2019/10/24 00:00', function(event) {
1040
+ var $this = $(this)
1041
+ .html(event.strftime('' +
1042
+ '<div>%w <span class="title">Weeks</span></div>' +
1043
+ '<div>%d <span class="title">days</span></div>' +
1044
+ '<div>%H <span class="title">hours</span></div>' +
1045
+ '<div>%S <span class="title">seconds</span></div>'));
1046
+ });
1047
+ }
1048
+
1049
+ function speacialCount() {
1050
+ $('#specialclock')
1051
+ .countdown('2020/12/6', function(event) {
1052
+ $(this)
1053
+ .html(event.strftime('Time left: [ %D days %H:%M:%S ]'));
1054
+ });
1055
+ }
1056
+
1057
+ function offheight() {
1058
+ if ($(window)
1059
+ .width() > 750) {
1060
+ var offerHeight = $(".offers")
1061
+ .outerHeight(true);
1062
+ $(".offers.light")
1063
+ .css("height", offerHeight + 1);
1064
+ }
1065
+ }
1066
+ /*-------------------------*/
1067
+ /* Fixed Menu */
1068
+ /*-------------------------*/
1069
+ function loadWindowSettings() {
1070
+ offheight();
1071
+ if ($(window).width() < 750) {
1072
+ $(".nav-menu .main-menu > .menu-item-has-children > a").on("click", function() {
1073
+ if ($(this).attr('href') !== '#') {
1074
+ $(this).next().slideToggle(0);
1075
+ return false;
1076
+ }
1077
+ });
1078
+ }
1079
+ }
1080
+ function updateSlidesPerView(xsValue, smValue, mdValue, lgValue) {
1081
+ var winW = $(window)
1082
+ .width();
1083
+ var winH = $(window)
1084
+ .height();
1085
+ var xsPoint = 700,
1086
+ smPoint = 991,
1087
+ mdPoint = 1199;
1088
+ if (winW > mdPoint) return lgValue;
1089
+ else if (winW > smPoint) return mdValue;
1090
+ else if (winW > xsPoint) return smValue;
1091
+ else return xsValue;
1092
+ }