PageSourceSearch

https://px-studioassets.pixpa.com/build-20261009-144057-268/pixpacom/js/pricing.js

js pixpa.com collected 2026-10-09 22:41:48 UTC 7,045 bytes, 166 lines download raw bytes

1$(document).ready(function() {
2  $('.js-backto-website-btn').on('click', function () {
3    window.location.search = $(this).attr('data-href');
4  });
5
6  $('.js-clientgallery-plan-btn').on('click', function () {
7    window.location.search = $(this).attr('data-href');
8  });
9
10  $(".js-tab-content-header a").on('click', function () {
11    $(this).addClass('active');
12    $(this).parent().siblings().find('a').removeClass('active');
13    
14    if($(this).attr('data-content') == 'tab1'){
15      $('.js-tab-content-2, .js-tab-content-3').removeClass('active');
16      $('.js-tab-content-1').addClass('active');
17      $(".js-clientgallery-hide").show();
18    } else if($(this).attr('data-content') == 'tab2'){
19      $('.js-tab-content-1, .js-tab-content-3').removeClass('active');
20      $('.js-tab-content-2').addClass('active');
21      $(".js-clientgallery-hide").show();
22    } else if($(this).attr('data-content') == 'tab3'){
23      $('.js-tab-content-1, .js-tab-content-2').removeClass('active');
24      $('.js-tab-content-3').addClass('active');
25      $('.js-clientgallery-content-photographerplan').addClass('active');
26      $('.js-clientgallery-content-studioplan').removeClass('active');
27      $(".js-clientgallery-hide").hide();
28    }
29  });
30
31  $(".js-subscription-plan-full-feature").on('click', function () {
32    var content = $(this).attr('data-content');
33    $('#subscription-plan-overlay-wrapper').show();
34    $('.subscription-plan-overlay-grid').find("."+content).show();
35    $('.subscription-plan-overlay-grid').find("."+content).siblings().hide();
36  });
37  
38
39  $('.js-website-btn').on('click',function(){
40    $(this).addClass('active');
41    $('.js-plan-website').addClass('active');
42    $('.js-plan-store, .js-plan-proofing,.js-store-btn,.js-proofing-btn').removeClass('active');
43  });
44
45  $('.js-store-btn').on('click',function(){
46    $(this).addClass('active');
47    $('.js-plan-store').addClass('active');
48    $('.js-plan-website, .js-plan-proofing,.js-website-btn,.js-proofing-btn').removeClass('active');
49  });
50
51  $('.js-proofing-btn').on('click',function(){
52    $(this).addClass('active');
53    $('.js-plan-proofing').addClass('active');
54    $('.js-plan-website, .js-plan-store,.js-website-btn,.js-store-btn').removeClass('active');
55  });
56
57  $('.js-modal-close, .js-overlay-container').on('click', function(){
58    $('#proofing-overlay-wrapper, #proofing-plan-overlay-wrapper, #subscription-plan-overlay-wrapper').hide();
59  });
60
61  $('.js-addon-plan-btn').on('click', function(){
62    $('#proofing-overlay-wrapper, .js-proofing-modal').show();
63  });
64
65  $('.js-proofing-plan-btn').on('click', function(){
66    $('#proofing-plan-overlay-wrapper, .js-proofing-modal').show();
67  });
68
69  $('.js-subscription-plan-btn').off('click');
70  $('.js-subscription-plan-btn').on('click',function(){
71    $(this).parent().toggleClass('yearly monthly');
72    $('.js-monthly-plan-btn').toggleClass('active');
73    $('.js-yearly-plan-btn').toggleClass('active');
74    $('.subscription-plans-grid-items .yearly').toggleClass('active');
75    $('.subscription-plans-grid-items .monthly').toggleClass('active');
76    $('.proofing-select-dropdown-yearly').toggleClass('active');
77    $('.proofing-select-dropdown-monthly').toggleClass('active');
78    $('.monthly-freedomain-hide').toggleClass('active');
79    $('.monthly-freedomain-hide.hasnot').toggleClass('crossnot');
80  });
81
82  $('.js-paddle-subscription-plan-btn li').off('click');
83  $('.js-paddle-subscription-plan-btn li').on('click',function(){
84    var inpv = $(this).attr('data-value');
85    var proofingprice = $(".js-proofing-gbplan-value-monthly").data('value');
86    var proofingpriceyearly = $(".js-proofing-gbplan-value-yearly").data('value');
87    $(this).parent().toggleClass('yearly monthly');
88
89    $(this).addClass('active');
90    $(this).siblings().removeClass('active');
91    $(this).siblings().find('button').removeClass('active');
92    $(this).parent().find('input').val(inpv);
93
94    if(inpv == 'annual'){
95      $('.subscription-plans-grid-items .yearly').addClass('active');
96      $('.subscription-plans-grid-items .monthly, .subscription-plans-grid-items .biannual').removeClass('active');
97      $('.js-limited-discount-price').html($('.js-limited-discount-price').attr('data-annual'));
98    } else if (inpv == 'biannual') {
99      $('.subscription-plans-grid-items .biannual').addClass('active');
100      $('.subscription-plans-grid-items .monthly, .subscription-plans-grid-items .yearly').removeClass('active');
101      $('.js-limited-discount-price').html($('.js-limited-discount-price').attr('data-biannual'));
102    } else if (inpv == 'monthly'){
103      $('.subscription-plans-grid-items .monthly').addClass('active');
104      $('.subscription-plans-grid-items .biannual, .subscription-plans-grid-items .yearly').removeClass('active');
105      $('.js-limited-discount-price').html($('.js-limited-discount-price').attr('data-annual'));
106    }
107  });
108
109  $('.js-proofing-gbplan-btn').on('click', function (event) {
110    var datatext = $(event.target).attr('data-text');
111    $(this).find('.js-button-text').text(datatext)
112    $(this).toggleClass('active');
113    $(this).find('.dropdown-menu-wrapper').toggleClass('active');
114    $(this).find('li').on('click', function (event) {
115      var datayvalue = $(event.target).attr('data-yvalue');
116      var datamvalue = $(event.target).attr('data-mvalue');
117      var dataaddon = $(event.target).attr('data-addon');
118      $(".js-proofing-gbplan-value-yearly").attr("data-value", datayvalue);
119      $(".js-proofing-gbplan-value-yearly").text(datayvalue);
120      $(".js-proofing-gbplan-value-monthly").attr("data-value", datamvalue);
121      $(".js-proofing-gbplan-value-monthly").text(datamvalue);
122    });
123  });
124
125  if(window.location.href.match('plan=creators')){
126    $('.js-tab-header-2').click();
127  };
128
129  if(window.location.href.match('plan=addon')){
130    $('.js-proofing-addon-plan-btn').click();
131  }
132
133  if(window.location.href.match('plan=photographers')){
134    $('.js-tab-header-1').click();
135  };
136
137  $(".js-clientgallery-hide").show();
138  $(".js-normalgallery-hide").hide();
139
140  if(window.location.href.match('plan=clientgalleries')){
141    $('.js-tab-header-3').click();
142    $(".js-clientgallery-hide").hide();
143    $(".js-normalgallery-hide").show();
144  };
145
146  if(window.location.href.match('plan=clientgalleries-team')){
147    $('.js-tab-header-3').click();
148    setTimeout( function () {
149      $('.js-clientgallery-studio-plan-btn').click();
150    }, 100)
151  };
152
153  $('body').on('click', '.js-clientgallery-studio-plan-btn', function () {
154    $(this).removeClass('active');
155    $('.js-clientgallery-content-studioplan, .js-clientgallery-photographer-plan-btn').addClass('active');
156    $('.js-clientgallery-content-photographerplan').removeClass('active');
157    scrollTo(0,0);
158  });
159
160  $('body').on('click', '.js-clientgallery-photographer-plan-btn', function () {
161    $(this).removeClass('active');
162    $('.js-clientgallery-content-studioplan').removeClass('active');
163    $('.js-clientgallery-content-photographerplan, .js-clientgallery-studio-plan-btn').addClass('active');
164    scrollTo(0,0);
165  });
166});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.