{I"
class:ETI"BundledAsset; FI"logical_path; TI"application.js; TI"
pathname; TI"0$root/app/assets/javascripts/application.js; FI"content_type; TI"application/javascript; TI"
mtime; Tl+PëTI"length; Ti¯|I"digest; TI"%dea7f6e12bb373a97ed7f25f4f73e66f; FI"source; TI"¯|/*
* Template Name: Unify - Responsive Bootstrap Template
* Description: Business, Corporate, Portfolio and Blog Theme.
* Version: 1.4
* Author: @htmlstream
* Website: http://htmlstream.com
*/
var App = function () {
function handleIEFixes() {
//fix html5 placeholder attribute for ie7 & ie8
if (jQuery.browser.msie && jQuery.browser.version.substr(0, 1) < 9) { // ie7&ie8
jQuery('input[placeholder], textarea[placeholder]').each(function () {
var input = jQuery(this);
jQuery(input).val(input.attr('placeholder'));
jQuery(input).focus(function () {
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
jQuery(input).blur(function () {
if (input.val() == '' || input.val() == input.attr('placeholder')) {
input.val(input.attr('placeholder'));
}
});
});
}
}
function handleBootstrap() {
/*Bootstrap Carousel*/
jQuery('.carousel').carousel({
interval: 15000,
pause: 'hover'
});
/*Tooltips*/
jQuery('.tooltips').tooltip();
jQuery('.tooltips-show').tooltip('show');
jQuery('.tooltips-hide').tooltip('hide');
jQuery('.tooltips-toggle').tooltip('toggle');
jQuery('.tooltips-destroy').tooltip('destroy');
/*Popovers*/
jQuery('.popovers').popover();
jQuery('.popovers-show').popover('show');
jQuery('.popovers-hide').popover('hide');
jQuery('.popovers-toggle').popover('toggle');
jQuery('.popovers-destroy').popover('destroy');
}
function handleSearch() {
jQuery('.search').click(function () {
if(jQuery('.search-btn').hasClass('fa-search')){
jQuery('.search-open').fadeIn(500);
jQuery('.search-btn').removeClass('fa-search');
jQuery('.search-btn').addClass('fa-times');
} else {
jQuery('.search-open').fadeOut(500);
jQuery('.search-btn').addClass('fa-search');
jQuery('.search-btn').removeClass('fa-times');
}
});
}
function handleToggle() {
jQuery('.list-toggle').on('click', function() {
jQuery(this).toggleClass('active');
});
/*
jQuery('#serviceList').on('shown.bs.collapse'), function() {
jQuery(".servicedrop").addClass('glyphicon-chevron-up').removeClass('glyphicon-chevron-down');
}
jQuery('#serviceList').on('hidden.bs.collapse'), function() {
jQuery(".servicedrop").addClass('glyphicon-chevron-down').removeClass('glyphicon-chevron-up');
}
*/
}
function handleSwitcher() {
var panel = jQuery('.style-switcher');
jQuery('.style-switcher-btn').click(function () {
jQuery('.style-switcher').show();
});
jQuery('.theme-close').click(function () {
jQuery('.style-switcher').hide();
});
jQuery('li', panel).click(function () {
var color = jQuery(this).attr("data-style");
var data_header = jQuery(this).attr("data-header");
setColor(color, data_header);
jQuery('.list-unstyled li', panel).removeClass("theme-active");
jQuery(this).addClass("theme-active");
});
var setColor = function (color, data_header) {
jQuery('#style_color').attr("href", "assets/css/themes/" + color + ".css");
if(data_header == 'light'){
jQuery('#style_color-header-1').attr("href", "assets/css/themes/headers/header1-" + color + ".css");
jQuery('#logo-header').attr("src", "assets/img/logo1-" + color + ".png");
jQuery('#logo-footer').attr("src", "assets/img/logo2-" + color + ".png");
} else if(data_header == 'dark'){
jQuery('#style_color-header-2').attr("href", "assets/css/themes/headers/header2-" + color + ".css");
jQuery('#logo-header').attr("src", "assets/img/logo1-" + color + ".png");
jQuery('#logo-footer').attr("src", "assets/img/logo2-" + color + ".png");
}
}
}
function handleBoxed() {
jQuery('.boxed-layout-btn').click(function(){
jQuery(this).addClass("active-switcher-btn");
jQuery(".wide-layout-btn").removeClass("active-switcher-btn");
jQuery("body").addClass("boxed-layout container");
});
jQuery('.wide-layout-btn').click(function(){
jQuery(this).addClass("active-switcher-btn");
jQuery(".boxed-layout-btn").removeClass("active-switcher-btn");
jQuery("body").removeClass("boxed-layout container");
});
}
function handleHeader() {
jQuery(window).scroll(function() {
if (jQuery(window).scrollTop()>100){
jQuery(".header-fixed .header").addClass("header-fixed-shrink");
}
else {
jQuery(".header-fixed .header").removeClass("header-fixed-shrink");
}
});
}
return {
init: function () {
handleBootstrap();
handleIEFixes();
handleSearch();
handleToggle();
handleSwitcher();
handleBoxed();
handleHeader();
},
initSliders: function () {
jQuery('#clients-flexslider').flexslider({
animation: "slide",
easing: "swing",
animationLoop: true,
itemWidth: 1,
itemMargin: 1,
minItems: 2,
maxItems: 9,
controlNav: false,
directionNav: false,
move: 2
});
jQuery('#clients-flexslider1').flexslider({
animation: "slide",
easing: "swing",
animationLoop: true,
itemWidth: 1,
itemMargin: 1,
minItems: 2,
maxItems: 5,
controlNav: false,
directionNav: false,
move: 2
});
jQuery('#photo-flexslider').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
itemWidth: 80,
itemMargin: 0
});
jQuery('#testimonal_carousel').collapse({
toggle: false
});
},
initFancybox: function () {
jQuery(".fancybox-button").fancybox({
groupAttr: 'data-rel',
prevEffect: 'none',
nextEffect: 'none',
closeBtn: true,
helpers: {
title: {
type: 'inside'
}
}
});
jQuery(".iframe").fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
width : '70%',
height : '70%',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
},
initBxSlider: function () {
jQuery('.bxslider').bxSlider({
maxSlides: 4,
minSlides: 4,
slideWidth: 360,
slideMargin: 10,
});
jQuery('.bxslider1').bxSlider({
minSlides: 3,
maxSlides: 3,
slideWidth: 360,
slideMargin: 10
});
jQuery('.bxslider2').bxSlider({
minSlides: 2,
maxSlides: 2,
slideWidth: 360,
slideMargin: 10
});
},
initCounter: function () {
jQuery('.counter').counterUp({
delay: 10,
time: 1000
});
},
initParallaxBg: function () {
jQuery('.parallaxBg').parallax("50%", 0.2);
},
};
}();
var CirclesMaster = function () {
return {
//Circles Master v1
initCirclesMaster1: function () {
//Circles 1
Circles.create({
id: 'circle-1',
percentage: 87,
radius: 80,
width: 8,
number: 87,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
//Circles 2
Circles.create({
id: 'circle-2',
percentage: 74,
radius: 80,
width: 8,
number: 74,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
//Circles 3
Circles.create({
id: 'circle-3',
percentage: 65,
radius: 80,
width: 8,
number: 65,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
//Circles 4
Circles.create({
id: 'circle-4',
percentage: 69,
radius: 35,
width: 2,
number: 69,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
//Circles 5
Circles.create({
id: 'circle-5',
percentage: 82,
radius: 35,
width: 2,
number: 82,
text: '%',
colors: ['#eee', '#9B6BCC'],
duration: 2000
})
//Circles 6
Circles.create({
id: 'circle-6',
percentage: 87,
radius: 80,
width: 3,
number: 87,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
//Circles 7
Circles.create({
id: 'circle-7',
percentage: 74,
radius: 80,
width: 3,
number: 74,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
//Circles 8
Circles.create({
id: 'circle-8',
percentage: 65,
radius: 80,
width: 3,
number: 65,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
//Circles 9
Circles.create({
id: 'circle-9',
percentage: 91,
radius: 80,
width: 3,
number: 91,
text: '%',
colors: ['#eee', '#72c02c'],
duration: 2000
})
},
//Circles Master v2
initCirclesMaster2: function () {
var colors = [
['#D3B6C6', '#9B6BCC'], ['#C9FF97', '#72c02c'], ['#BEE3F7', '#3498DB'], ['#FFC2BB', '#E74C3C']
];
for (var i = 1; i <= 4; i++) {
var child = document.getElementById('circles-' + i),
percentage = 45 + (i * 9);
Circles.create({
id: child.id,
percentage: percentage,
radius: 70,
width: 2,
number: percentage / 1,
text: '%',
colors: colors[i - 1],
duration: 2000,
});
}
}
};
}();
var Datepicker = function () {
return {
//Datepickers
initDatepicker: function () {
// Regular datepicker
$('#date').datepicker({
dateFormat: 'dd.mm.yy',
prevText: '',
nextText: ''
});
// Date range
$('#start').datepicker({
dateFormat: 'dd.mm.yy',
prevText: '',
nextText: '',
onSelect: function( selectedDate )
{
$('#finish').datepicker('option', 'minDate', selectedDate);
}
});
$('#finish').datepicker({
dateFormat: 'dd.mm.yy',
prevText: '',
nextText: '',
onSelect: function( selectedDate )
{
$('#start').datepicker('option', 'maxDate', selectedDate);
}
});
// Inline datepicker
$('#inline').datepicker({
dateFormat: 'dd.mm.yy',
prevText: '',
nextText: ''
});
// Inline date range
$('#inline-start').datepicker({
dateFormat: 'dd.mm.yy',
prevText: '',
nextText: '',
onSelect: function( selectedDate )
{
$('#inline-finish').datepicker('option', 'minDate', selectedDate);
}
});
$('#inline-finish').datepicker({
dateFormat: 'dd.mm.yy',
prevText: '',
nextText: '',
onSelect: function( selectedDate )
{
$('#inline-start').datepicker('option', 'maxDate', selectedDate);
}
});
}
};
}();
var FormSliders = function () {
return {
//Form Sliders
initFormSliders: function () {
// Regular slider
$('#slider1').slider({
min: 0,
max: 500,
slide: function(event, ui)
{
$('#slider1-value').text(ui.value);
}
});
// Range slider
$('#slider2').slider({
min: 0,
max: 500,
range: true,
values: [75, 300],
slide: function(event, ui)
{
$('#slider2-value1').text(ui.values[0]);
$('#slider2-value2').text(ui.values[1]);
}
});
// Step slider
$('#slider3').slider({
min: 0,
max: 500,
step: 100,
slide: function(event, ui)
{
$('#slider3-value').text(ui.value);
}
});
// Rounded Regular slider
$('#slider1-rounded').slider({
min: 0,
max: 500,
slide: function(event, ui)
{
$('#slider1-value-rounded').text(ui.value);
}
});
// Rounded Range slider
$('#slider2-rounded').slider({
min: 0,
max: 500,
range: true,
values: [75, 300],
slide: function(event, ui)
{
$('#slider2-value1-rounded').text(ui.values[0]);
$('#slider2-value2-rounded').text(ui.values[1]);
}
});
// Rounded Step slider
$('#slider3-rounded').slider({
min: 0,
max: 500,
step: 100,
slide: function(event, ui)
{
$('#slider3-value-rounded').text(ui.value);
}
});
}
};
}();
var Masking = function () {
return {
//Masking
initMasking: function () {
$("#date1").mask('99/99/9999', {placeholder:'X'});
$("#phone").mask('(999) 999-9999', {placeholder:'X'});
$("#card").mask('9999-9999-9999-9999', {placeholder:'X'});
$("#serial").mask('***-***-***-***-***-***', {placeholder:'_'});
$("#tax").mask('99-9999999', {placeholder:'X'});
}
};
}();
var OwlCarousel = function () {
return {
//Owl Carousel
initOwlCarousel: function () {
jQuery(document).ready(function() {
//Owl Slider v1
var owl = jQuery(".owl-slider");
owl.owlCarousel({
itemsDesktop : [1000,5], //5 items between 1000px and 901px
itemsDesktopSmall : [900,4], //4 items betweem 900px and 601px
itemsTablet: [600,3], //3 items between 600 and 0;
itemsMobile : [479,2] //2 itemsMobile disabled - inherit from itemsTablet option
});
// Custom Navigation Events
jQuery(".next-v1").click(function(){
owl.trigger('owl.next');
})
jQuery(".prev-v1").click(function(){
owl.trigger('owl.prev');
})
});
//Owl Slider v2
jQuery(document).ready(function() {
var owl = jQuery(".owl-slider-v2");
owl.owlCarousel({
itemsDesktop : [1000,5], //5 items between 1000px and 901px
itemsDesktopSmall : [900,4], //4 items betweem 900px and 601px
itemsTablet: [600,3], //3 items between 600 and 0;
itemsMobile : [479,2], //2 itemsMobile disabled - inherit from itemsTablet option
slideSpeed: 1000
});
// Custom Navigation Events
jQuery(".next-v2").click(function(){
owl.trigger('owl.next');
})
jQuery(".prev-v2").click(function(){
owl.trigger('owl.prev');
})
});
//Owl Slider v3
jQuery(document).ready(function() {
var owl = jQuery(".owl-slider-v3");
owl.owlCarousel({
items : 9,
autoPlay : 5000,
itemsDesktop : [1000,5], //5 items between 1000px and 901px
itemsDesktopSmall : [900,4], // betweem 900px and 601px
itemsTablet: [600,3], //2 items between 600 and 0
itemsMobile : [300,2] //2 itemsMobile disabled - inherit from itemsTablet option
});
});
//Owl Slider v4
jQuery(document).ready(function() {
var owl = jQuery(".owl-slider-v4");
owl.owlCarousel({
items:3,
itemsDesktop : [1000,3], //3 items between 1000px and 901px
itemsTablet: [600,2], //2 items between 600 and 0;
itemsMobile : [479,1] //1 itemsMobile disabled - inherit from itemsTablet option
});
});
}
};
}();
var Validation = function () {
return {
//Validation
initValidation: function () {
$("#sky-form1").validate({
// Rules for form validation
rules:
{
required:
{
required: true
},
email:
{
required: true,
email: true
},
url:
{
required: true,
url: true
},
date:
{
required: true,
date: true
},
min:
{
required: true,
minlength: 5
},
max:
{
required: true,
maxlength: 5
},
range:
{
required: true,
rangelength: [5, 10]
},
digits:
{
required: true,
digits: true
},
number:
{
required: true,
number: true
},
minVal:
{
required: true,
min: 5
},
maxVal:
{
required: true,
max: 100
},
rangeVal:
{
required: true,
range: [5, 100]
}
},
// Messages for form validation
messages:
{
required:
{
required: 'Please enter something'
},
email:
{
required: 'Please enter your email address'
},
url:
{
required: 'Please enter your URL'
},
date:
{
required: 'Please enter some date'
},
min:
{
required: 'Please enter some text'
},
max:
{
required: 'Please enter some text'
},
range:
{
required: 'Please enter some text'
},
digits:
{
required: 'Please enter some digits'
},
number:
{
required: 'Please enter some number'
},
minVal:
{
required: 'Please enter some value'
},
maxVal:
{
required: 'Please enter some value'
},
rangeVal:
{
required: 'Please enter some value'
}
},
// Do not change code below
errorPlacement: function(error, element)
{
error.insertAfter(element.parent());
}
});
}
};
}();
var VectorMap = function () {
return {
//Markers Vector Map
initMarkerVectorMap: function () {
jQuery.noConflict();
jQuery(function(){
var $ = jQuery;
$('#focus-single').click(function(){
$('#map-markers').vectorMap;
});
$('#map-markers').vectorMap({
map: 'world_mill_en',
scaleColors: ['#C8EEFF', '#0071A4'],
normalizeFunction: 'polynomial',
hoverOpacity: 0.7,
hoverColor: false,
markerStyle: {
initial: {
fill: '#F8E23B',
stroke: '#383f47'
}
},
backgroundColor: '#383f47',
markers: [
{latLng: [41.90, 12.45], name: 'Vatican City'},
{latLng: [43.73, 7.41], name: 'Monaco'},
{latLng: [-0.52, 166.93], name: 'Nauru'},
{latLng: [-8.51, 179.21], name: 'Tuvalu'},
{latLng: [43.93, 12.46], name: 'San Marino'},
{latLng: [47.14, 9.52], name: 'Liechtenstein'},
{latLng: [7.11, 171.06], name: 'Marshall Islands'},
{latLng: [17.3, -62.73], name: 'Saint Kitts and Nevis'},
{latLng: [3.2, 73.22], name: 'Maldives'},
{latLng: [35.88, 14.5], name: 'Malta'},
{latLng: [12.05, -61.75], name: 'Grenada'},
{latLng: [13.16, -61.23], name: 'Saint Vincent and the Grenadines'},
{latLng: [13.16, -59.55], name: 'Barbados'},
{latLng: [17.11, -61.85], name: 'Antigua and Barbuda'},
{latLng: [-4.61, 55.45], name: 'Seychelles'},
{latLng: [7.35, 134.46], name: 'Palau'},
{latLng: [42.5, 1.51], name: 'Andorra'},
{latLng: [14.01, -60.98], name: 'Saint Lucia'},
{latLng: [6.91, 158.18], name: 'Federated States of Micronesia'},
{latLng: [1.3, 103.8], name: 'Singapore'},
{latLng: [1.46, 173.03], name: 'Kiribati'},
{latLng: [-21.13, -175.2], name: 'Tonga'},
{latLng: [15.3, -61.38], name: 'Dominica'},
{latLng: [-20.2, 57.5], name: 'Mauritius'},
{latLng: [26.02, 50.55], name: 'Bahrain'},
{latLng: [0.33, 6.73], name: 'São Tomé and PrÃncipe'}
]
});
})
},
//Vector Map
initVectorMap: function () {
jQuery.noConflict();
jQuery(function(){
var $ = jQuery;
$('#focus-single').click(function(){
$('#map1').vectorMap('set', 'focus', 'AU');
});
$('#focus-multiple').click(function(){
$('#map1').vectorMap('set', 'focus', ['AU', 'JP']);
});
$('#focus-init').click(function(){
$('#map1').vectorMap('set', 'focus', 1, 0, 0);
});
$('#map1').vectorMap({
map: 'world_mill_en',
focusOn: {
x: 0.5,
y: 0.5,
scale: 2
},
series: {
regions: [{
scale: ['#C8EEFF', '#0071A4'],
normalizeFunction: 'polynomial',
values: {
"AF": 16.63,
"AL": 11.58,
"DZ": 158.97,
"AO": 85.81,
"AG": 1.1,
"AR": 351.02,
"AM": 8.83,
"AU": 1219.72,
"AT": 366.26,
"AZ": 52.17,
"BS": 7.54,
"BH": 21.73,
"BD": 105.4,
"BB": 3.96,
"BY": 52.89,
"BE": 461.33,
"BZ": 1.43,
"BJ": 6.49,
"BT": 1.4,
"BO": 19.18,
"BA": 16.2,
"BW": 12.5,
"BR": 2023.53,
"BN": 11.96,
"BG": 44.84,
"BF": 8.67,
"BI": 1.47,
"KH": 11.36,
"CM": 21.88,
"CA": 1563.66,
"CV": 1.57,
"CF": 2.11,
"TD": 7.59,
"CL": 199.18,
"CN": 5745.13,
"CO": 283.11,
"KM": 0.56,
"CD": 12.6,
"CG": 11.88,
"CR": 35.02,
"CI": 22.38,
"HR": 59.92,
"CY": 22.75,
"CZ": 195.23,
"DK": 304.56,
"DJ": 1.14,
"DM": 0.38,
"DO": 50.87,
"EC": 61.49,
"EG": 216.83,
"SV": 21.8,
"GQ": 14.55,
"ER": 2.25,
"EE": 19.22,
"ET": 30.94,
"FJ": 3.15,
"FI": 231.98,
"FR": 2555.44,
"GA": 12.56,
"GM": 1.04,
"GE": 11.23,
"DE": 3305.9,
"GH": 18.06,
"GR": 305.01,
"GD": 0.65,
"GT": 40.77,
"GN": 4.34,
"GW": 0.83,
"GY": 2.2,
"HT": 6.5,
"HN": 15.34,
"HK": 226.49,
"HU": 132.28,
"IS": 12.77,
"IN": 1430.02,
"ID": 695.06,
"IR": 337.9,
"IQ": 84.14,
"IE": 204.14,
"IL": 201.25,
"IT": 2036.69,
"JM": 13.74,
"JP": 5390.9,
"JO": 27.13,
"KZ": 129.76,
"KE": 32.42,
"KI": 0.15,
"KR": 986.26,
"KW": 117.32,
"KG": 4.44,
"LA": 6.34,
"LV": 23.39,
"LB": 39.15,
"LS": 1.8,
"LR": 0.98,
"LY": 77.91,
"LT": 35.73,
"LU": 52.43,
"MK": 9.58,
"MG": 8.33,
"MW": 5.04,
"MY": 218.95,
"MV": 1.43,
"ML": 9.08,
"MT": 7.8,
"MR": 3.49,
"MU": 9.43,
"MX": 1004.04,
"MD": 5.36,
"MN": 5.81,
"ME": 3.88,
"MA": 91.7,
"MZ": 10.21,
"MM": 35.65,
"NA": 11.45,
"NP": 15.11,
"NL": 770.31,
"NZ": 138,
"NI": 6.38,
"NE": 5.6,
"NG": 206.66,
"NO": 413.51,
"OM": 53.78,
"PK": 174.79,
"PA": 27.2,
"PG": 8.81,
"PY": 17.17,
"PE": 153.55,
"PH": 189.06,
"PL": 438.88,
"PT": 223.7,
"QA": 126.52,
"RO": 158.39,
"RU": 1476.91,
"RW": 5.69,
"WS": 0.55,
"ST": 0.19,
"SA": 434.44,
"SN": 12.66,
"RS": 38.92,
"SC": 0.92,
"SL": 1.9,
"SG": 217.38,
"SK": 86.26,
"SI": 46.44,
"SB": 0.67,
"ZA": 354.41,
"ES": 1374.78,
"LK": 48.24,
"KN": 0.56,
"LC": 1,
"VC": 0.58,
"SD": 65.93,
"SR": 3.3,
"SZ": 3.17,
"SE": 444.59,
"CH": 522.44,
"SY": 59.63,
"TW": 426.98,
"TJ": 5.58,
"TZ": 22.43,
"TH": 312.61,
"TL": 0.62,
"TG": 3.07,
"TO": 0.3,
"TT": 21.2,
"TN": 43.86,
"TR": 729.05,
"TM": 0,
"UG": 17.12,
"UA": 136.56,
"AE": 239.65,
"GB": 2258.57,
"US": 14624.18,
"UY": 40.71,
"UZ": 37.72,
"VU": 0.72,
"VE": 285.21,
"VN": 101.99,
"YE": 30.02,
"ZM": 15.69,
"ZW": 5.57
}
}]
}
});
})
}
};
}();
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
;
; TI"required_assets_digest; TI"%0f46b583c3a106a93b3ca9cba77519e3; FI"
_version; TI"%6584930913c75ff69ba506e1cfbae2c9; F