PageSourceSearch

https://assets.everytimezone.com/assets/src/new_account-c71a3c4153…fa5fe76ce7b03b2c0f347327562cf19c5efda5e2.js

js everytimezone.com collected 2026-10-01 08:45:33 UTC 1,349 bytes, 41 lines download raw bytes

1import $ from "jquery";
2
3window.NewAccountForm = class NewAccountForm {
4  constructor() {
5    this.autocomplete = GooglePlacesInput.make( $('#account_location'),
6                                            $('#account_city'),
7                                            $('#account_country_code'),
8                                            $('#account_state'),
9                                            $('#account_place_id')
10                                          );
11
12    this.form = $('#new_account_form');
13    this.stripeHandler = new StripeHandler(this.form[0]);
14
15    this.form.on('change', function(event){
16      if(event.target.name != "account[plan]"){ return }
17      var target = $(event.target)
18
19      if(target.data('no-cc')){
20        $("#stripe_token").prop('disabled', true)
21        $('#card_element').hide()
22        $('#card_errors').hide()
23      } else{
24        $("#stripe_token").prop('disabled', false)
25        $('#card_element').show()
26        $('#card_errors').show()
27      }
28    })
29  }
30}
31
32function setup() {
33  if ($("body").is(".accounts-new") && !window.newAccountForm) {
34    window.newAccountForm = new NewAccountForm();
35  }
36}
37
38document.addEventListener("DOMContentLoaded", setup, { once: true });
39document.addEventListener("turbo:load", setup, { once: true });
40document.addEventListener("turbo:render", setup);
41setup();

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.