PageSourceSearch

https://www.nfiempire.com/wp-content/themes/aanWordpress/scripts/sms.js

js nfiempire.com collected 2026-10-06 13:55:26 UTC 2,154 bytes, 55 lines download raw bytes

1var currentSMSBox;
2function toggleSMS(obj){
3    if (typeof copyURL == 'function' && copyURL())
4        return;
5
6	$(obj).parents(".smsMSG").toggleClass("opened");
7}
8function validateSMS(e) {
9	 $(".inputBox input").keydown(function (e) {
10        // Allow: backspace, delete, tab, escape, enter and .
11        if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
12             // Allow: Ctrl/cmd+A
13            (e.keyCode == 65 && (e.ctrlKey === true || e.metaKey === true)) ||
14             // Allow: Ctrl/cmd+C
15            (e.keyCode == 67 && (e.ctrlKey === true || e.metaKey === true)) ||
16             // Allow: Ctrl/cmd+X
17            (e.keyCode == 88 && (e.ctrlKey === true || e.metaKey === true)) ||
18             // Allow: home, end, left, right
19            (e.keyCode >= 35 && e.keyCode <= 39)) {
20                 // let it happen, don't do anything
21                 return;
22        }
23        // Ensure that it is a number and stop the keypress
24        if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
25            e.preventDefault();
26        }
27    });
28}
29function sendSMS(obj) {
30    
31    var $val= $(obj).parents(".smsMSG").find("input").val();
32
33    if($val.length !== 10){
34        $(obj).parents(".smsMSG").find(".error").html("Please enter valid phone number");
35    }
36    else{
37
38        currentSMSBox = $(obj);
39
40        $.post( "/isapi_sms.php?phone="+$val+"&carid="+$(obj).data("carid"), {
41            make: $(obj).data("make"),
42            year: $(obj).data("year"),
43            model: $(obj).data("model"),
44            trim: $(obj).data("trim"),
45            url: $(obj).data("url"),
46            img: $(obj).data("img"),
47        }).done( function( text ) {
48            if(text==="ok"){
49                currentSMSBox.parents(".smsMSG").find("input").val("");
50                currentSMSBox.parents(".smsMSG").find(".error").html("");
51                currentSMSBox.parents(".smsMSG").find(".inboxContainer").html("<div class='sent' onclick='toggleSMS(this)'>Message Sent <img src='/wp-content/themes/aanWordpress/images/inventory/sms-sent.png' alt=''></div>");
52            }
53        });
54    }
55}

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.