PageSourceSearch

https://www.occupy.com/sites/default/themes/occupyzen/js/signup.js?tkyvof

js occupy.com collected 2026-09-24 09:26:42 UTC 2,159 bytes, 56 lines download raw bytes

1/**
2 * @file
3 * A JavaScript file for the theme.
4 *
5 * In order for this JavaScript to be loaded on pages, see the instructions in
6 * the README.txt next to this file.
7 */
8
9// JavaScript should be made compatible with libraries other than jQuery by
10// wrapping it with an "anonymous closure". See:
11// - http://drupal.org/node/1446420
12// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
13
14/*jQuery(document).ready */
15
16(function($) {
17    Drupal.behaviors.customSignupJS = {
18        attach: function (context, settings) {
19            var default_value1 = "First Name *";
20                $(".webform-component--first-name").find("input").val(default_value1);
21                $(".webform-component--first-name").find("input").live("blur", function(){
22                    if ($(this).val() == ""){
23                        $(this).val(default_value1);
24                    }
25                }).live("focus", function(){
26                    if ($(this).val() == default_value1){
27                        $(this).val("");
28                    }
29            });
30
31            var default_value2 = "Last Name";
32                $(".webform-component--last-name").find("input").val(default_value2);
33                $(".webform-component--last-name").find("input").live("blur", function(){
34                    if ($(this).val() == ""){
35                        $(this).val(default_value2);
36                    }
37                }).live("focus", function(){
38                    if ($(this).val() == default_value2){
39                        $(this).val("");
40                    }
41            });
42
43            var default_value3 = "Email *";
44                $(".webform-component--enter-email").find("input").val(default_value3);
45                $(".webform-component--enter-email").find("input").live("blur", function(){
46                    if ($(this).val() == ""){
47                        $(this).val(default_value3);
48                    }
49                }).live("focus", function(){
50                    if ($(this).val() == default_value3){
51                        $(this).val("");
52                    }
53            });    
54        }
55    };
56})(jQuery);

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.