main.js indent changed back to 4 spaces
This commit is contained in:
parent
b9873c2829
commit
035266b68b
1 changed files with 139 additions and 139 deletions
|
@ -1,4 +1,4 @@
|
|||
(function ($) {
|
||||
(function($) {
|
||||
"use strict"; // Start of use strict
|
||||
|
||||
|
||||
|
@ -28,12 +28,12 @@
|
|||
'interval': 10
|
||||
}
|
||||
}
|
||||
$(window).load(function () {
|
||||
$(window).load(function() {
|
||||
|
||||
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
verifiedUrl();
|
||||
_navScroll();
|
||||
_initScroll();
|
||||
|
@ -42,7 +42,7 @@
|
|||
|
||||
});
|
||||
|
||||
$(window).resize(function () {
|
||||
$(window).resize(function() {
|
||||
|
||||
|
||||
|
||||
|
@ -54,9 +54,9 @@
|
|||
Nav panel classic
|
||||
--------------------------------------------- */
|
||||
if (window.matchMedia("(min-width: 767px)").matches) {
|
||||
$('ul.nav li.dropdown').hover(function () {
|
||||
$('ul.nav li.dropdown').hover(function() {
|
||||
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500);
|
||||
}, function () {
|
||||
}, function() {
|
||||
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500);
|
||||
});
|
||||
} else {
|
||||
|
@ -66,7 +66,7 @@
|
|||
|
||||
|
||||
function _initScroll() {
|
||||
$(window).scroll(function () {
|
||||
$(window).scroll(function() {
|
||||
_navScroll();
|
||||
});
|
||||
}
|
||||
|
@ -86,8 +86,8 @@
|
|||
}
|
||||
|
||||
function _initNavUrl() {
|
||||
$('.url').click(function (event) {
|
||||
event.preventDefault()
|
||||
$('.url').click(function(event) {
|
||||
event.preventDefault();
|
||||
var href = $(this).attr('data-url');
|
||||
$('.navbar-collapse').removeClass('in');
|
||||
$('.navbar-collapse').addClass('collapsing');
|
||||
|
@ -114,7 +114,7 @@
|
|||
function _initPricing() {
|
||||
_fetchPricing();
|
||||
|
||||
$('.fa-minus-circle.left').click(function (event) {
|
||||
$('.fa-minus-circle.left').click(function(event) {
|
||||
var data = $(this).data('minus');
|
||||
|
||||
if (cardPricing[data].value > cardPricing[data].min) {
|
||||
|
@ -122,7 +122,7 @@
|
|||
}
|
||||
_fetchPricing();
|
||||
});
|
||||
$('.fa-plus-circle.right').click(function (event) {
|
||||
$('.fa-plus-circle.right').click(function(event) {
|
||||
var data = $(this).data('plus');
|
||||
if (cardPricing[data].value < cardPricing[data].max) {
|
||||
cardPricing[data].value = Number(cardPricing[data].value) + cardPricing[data].interval;
|
||||
|
@ -130,7 +130,7 @@
|
|||
_fetchPricing();
|
||||
});
|
||||
|
||||
$('.input-price').change(function () {
|
||||
$('.input-price').change(function() {
|
||||
var data = $(this).attr("name");
|
||||
cardPricing[data].value = $('input[name=' + data + ']').val();
|
||||
_fetchPricing();
|
||||
|
@ -138,7 +138,7 @@
|
|||
}
|
||||
|
||||
function _fetchPricing() {
|
||||
Object.keys(cardPricing).map(function (element) {
|
||||
Object.keys(cardPricing).map(function(element) {
|
||||
//$('#'+cardPricing[element].id).val(cardPricing[element].value);
|
||||
$('input[name=' + element + ']').val(cardPricing[element].value);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue