| Line 1... |
Line 1... |
| 1 |
// Ebizon Move script js into the file
|
1 |
// Ebizon Move script js into the file
|
| 2 |
|
2 |
|
| 3 |
$(document).ready(function() {
|
3 |
$(document).ready(function() {
|
| - |
|
4 |
var SelectID;
|
| - |
|
5 |
var subtract;
|
| - |
|
6 |
var check = 0;
|
| 4 |
var count = $('.comparision-product-column').length;
|
7 |
var count = $('.comparision-product-column').length;
|
| 5 |
if(count < 4) {
|
8 |
if(count < 4) {
|
| 6 |
if(count == 3) {
|
9 |
if(count == 3) {
|
| 7 |
var subtract = 6;
|
10 |
subtract = 6;
|
| 8 |
} else if(count == 2) {
|
11 |
} else if(count == 2) {
|
| 9 |
var subtract = 3;
|
12 |
subtract = 3;
|
| 10 |
} else {
|
13 |
} else {
|
| 11 |
var subtract = 0;
|
14 |
subtract = 0;
|
| 12 |
}
|
15 |
}
|
| 13 |
var parentWidth = $('#comparision-right').width();
|
16 |
var parentWidth = $('#comparision-right').width();
|
| 14 |
var width = (parentWidth - subtract)/count;
|
17 |
var width = (parentWidth - subtract)/count;
|
| 15 |
var newWidth = parseInt(width);
|
18 |
var newWidth = parseInt(width);
|
| 16 |
$('.product-name').width(newWidth);
|
19 |
$('.product-name').width(newWidth);
|
| 17 |
$('.comparision-product-column').width(newWidth);
|
20 |
$('.comparision-product-column').width(newWidth);
|
| 18 |
}
|
21 |
}
|
| 19 |
var style = $('.jspTrack').attr('style');
|
22 |
var styleTrack = $('.jspTrack').attr('style');
|
| 20 |
$('.jspTrackbottom').attr('style', style);
|
23 |
$('.jspTrackbottom').attr('style', styleTrack);
|
| 21 |
var style = $('.jspDrag').attr('style');
|
24 |
var styleDrag = $('.jspDrag').attr('style');
|
| 22 |
$('.jspDragbottom').attr('style', style);
|
25 |
$('.jspDragbottom').attr('style', styleDrag);
|
| 23 |
|
- |
|
| 24 |
$('#frmProceedToPay').submit(function(){
|
- |
|
| 25 |
//Tracking this click for Google Analytics
|
- |
|
| 26 |
_gaq.push(['_trackEvent', 'Order', 'Proceed to Pay', "", 2]);
|
- |
|
| 27 |
return true;
|
- |
|
| 28 |
});
|
- |
|
| 29 |
|
- |
|
| 30 |
$('.ui-state-default').click(function(){
|
26 |
$('.ui-state-default').click(function(){
|
| 31 |
var title = this.title;
|
- |
|
| 32 |
var aID = $("li.ui-state-active").children('a:first').attr('href');
|
27 |
var aID = $("li.ui-state-active").children('a:first').attr('href');
|
| 33 |
var array = aID.split("#");
|
28 |
var array = aID.split("#");
|
| 34 |
var displayID = array[1];
|
29 |
var displayID = array[1];
|
| 35 |
var new_aID = $(this).children('a:first').attr('href');
|
30 |
var new_aID = $(this).children('a:first').attr('href');
|
| 36 |
var new_array = new_aID.split("#");
|
31 |
var new_array = new_aID.split("#");
|
| Line 38... |
Line 33... |
| 38 |
$('.'+displayID).each(function(){
|
33 |
$('.'+displayID).each(function(){
|
| 39 |
this.style.display = 'none';
|
34 |
this.style.display = 'none';
|
| 40 |
$(this).removeClass("comparision-block").addClass('comparision-hide');
|
35 |
$(this).removeClass("comparision-block").addClass('comparision-hide');
|
| 41 |
});
|
36 |
});
|
| 42 |
if(new_displayID == 'vtab-1') {
|
37 |
if(new_displayID == 'vtab-1') {
|
| 43 |
//$('#comparision-right').removeClass("product-comparision-internal").addClass('product-comparision-home');
|
38 |
// $('#comparision-right').removeClass("product-comparision-internal").addClass('product-comparision-home');
|
| - |
|
39 |
// $('.scroller-columns').hide();
|
| 44 |
//$('.product-summary-column').show();
|
40 |
// $('#comparision-summary-content').show();
|
| - |
|
41 |
// $('.comparision-page-title').hide();
|
| 45 |
} else {
|
42 |
} else {
|
| 46 |
//$('#comparision-right').removeClass("product-comparision-home").addClass('product-comparision-internal');
|
43 |
// $('#comparision-right').removeClass("product-comparision-home").addClass('product-comparision-internal');
|
| - |
|
44 |
// $('.scroller-columns').show();
|
| 47 |
//$('.product-summary-column').hide();
|
45 |
// $('#comparision-summary-content').hide();
|
| - |
|
46 |
// $('.comparision-page-title').show();
|
| 48 |
}
|
47 |
}
|
| 49 |
$('.comparision-page-title').html(this.title);
|
48 |
$('.comparision-page-title').html(this.title);
|
| 50 |
$('.ui-state-active').removeClass("ui-tabs-selected ui-state-active");
|
49 |
$('.ui-state-active').removeClass("ui-tabs-selected ui-state-active");
|
| 51 |
$(this).addClass("ui-tabs-selected ui-state-active");
|
50 |
$(this).addClass("ui-tabs-selected ui-state-active");
|
| 52 |
$('.'+new_displayID).each(function() {
|
51 |
$('.'+new_displayID).each(function() {
|
| - |
|
52 |
var new_count = $('.'+new_displayID).length;
|
| - |
|
53 |
if(new_count !== count) {
|
| - |
|
54 |
$('.comparision-product-column').each(function(){
|
| - |
|
55 |
var check_childern = $(this).find('.'+new_displayID).html();
|
| - |
|
56 |
if(check_childern == null && check == 0) {
|
| - |
|
57 |
$(this).append("<div class='"+new_displayID+" comparision-hide comparision-empty-column'><div class='featureslisting'><ul><li class='mainFeature'>No features listed.</li></ul></div></div>");
|
| - |
|
58 |
check = 1;
|
| - |
|
59 |
}
|
| - |
|
60 |
});
|
| - |
|
61 |
}
|
| 53 |
$(this).removeClass("comparision-hide").addClass('comparision-block');
|
62 |
$(this).removeClass("comparision-hide").addClass('comparision-block');
|
| 54 |
this.style.display = 'block';
|
63 |
this.style.display = 'block';
|
| 55 |
});
|
64 |
});
|
| 56 |
return false;
|
65 |
return false;
|
| 57 |
});
|
66 |
});
|
| 58 |
$('.comparision-hide').each(function(){
|
67 |
$('.comparision-hide').each(function(){
|
| 59 |
this.style.display = 'none';
|
68 |
this.style.display = 'none';
|
| 60 |
});
|
69 |
});
|
| 61 |
});
|
70 |
});
|
| 62 |
|
71 |
|
| - |
|
72 |
$('#frmProceedToPay').submit(function(){
|
| - |
|
73 |
//Tracking this click for Google Analytics
|
| - |
|
74 |
_gaq.push(['_trackEvent', 'Order', 'Proceed to Pay', "", 2]);
|
| - |
|
75 |
return true;
|
| - |
|
76 |
});
|
| - |
|
77 |
|
| - |
|
78 |
|
| 63 |
$(document).ready(function(){
|
79 |
$(document).ready(function(){
|
| 64 |
|
80 |
|
| 65 |
//For Registration Page
|
81 |
//For Registration Page
|
| 66 |
$('#frmRegister #email').change(function(){
|
82 |
$('#frmRegister #email').change(function(){
|
| 67 |
$('#communicationEmail').val($(this).val());
|
83 |
$('#communicationEmail').val($(this).val());
|