-
Notifications
You must be signed in to change notification settings - Fork 0
/
js_jQuery_auto_populate_on_check
107 lines (97 loc) · 4.02 KB
/
js_jQuery_auto_populate_on_check
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
function TextArea_3d() {
var allVals = [];
jQuery('.3d-taglist :checked').each(function(i) {
if('3D Scanning and CAD Modeling' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "Please provide the approximate physical size, and what the model would be used for (Aerospace, Automobile, DOD, etc.) What accuracy requirements do you require? Tolerances? It would be great to attach a few photos.");
}
if('3D CAD Conversion or Translation' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "What are your source and destination CAD systems? Like Catia V5-6R26, SolidWorks 2017, Microstation V8, V8i, Siemens NX?");
}
if('Reverse Engineering' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "Please explain the source objects and desired accuracy.");
}
if('Free Form Modeling' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "What is the desired result? How will this be used? A picture is worth a thousand words!");
}
if('Sheet Metal Design' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "How will this be used? Do we compensate for the K-factor? Will you need flattening? What CAD software are you using (Catia, NX, Solidworks)?");
}
if('Mylar to 3D CAD Conversion' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "Do we assume this is an Aerospace Mylar? If so, the standard accuracy requirement is ±.005");
}
if('Engineering Simulation' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "");
}
if('My Job is ITAR Compliant' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "We assign a dedicated ITAR person to your project.");
}
if('Other' == jQuery(this).val()){
allVals.push((i!=0?" ":" ")+ "");
}
// allVals.push((i!=0?" ":" ")+ jQuery(this).val());
});
//jQuery('#textarea-3d').val( allVals ) ; //for textarea/or input
jQuery('#mr_3d_suggession').text( allVals ) ; //for p
}
jQuery(function() {
jQuery('.3d-taglist input').click(TextArea_3d);
TextArea_3d();
});
function TextArea_2d() {
var allVals = [];
jQuery('.2d-taglist :checked').each(function(i) {
allVals.push((i!=0?" ":" ")+ jQuery(this).val());
});
jQuery('#textarea-2d').val('Tell us the key project things like your purpose. ' + allVals) ;
}
jQuery(function() {
jQuery('.2d-taglist input').click(TextArea_2d);
TextArea_2d();
});
function TextArea_scanners() {
var allVals = [];
jQuery('.scanners-taglist :checked').each(function(i) {
allVals.push((i!=0?" ":" ")+ jQuery(this).val());
});
jQuery('#textarea-scanners').val('Tell us the key project things like your purpose. ' + allVals) ;
}
jQuery(function() {
jQuery('.scanners-taglist input').click(TextArea_scanners);
TextArea_scanners();
});
//////////////////////////////////////////
/////the short form of this file was this, the auto value
///////////////////////////////////////
function TextArea_3d() {
var allVals = [];
jQuery('.3d-taglist :checked').each(function(i) {
allVals.push((i!=0?" ":" ")+ jQuery(this).val());
});
jQuery('#textarea-3d').val('Tell us the key project things like your' + allVals + ' purpose.') ;
}
jQuery(function() {
jQuery('.3d-taglist input').click(TextArea_3d);
TextArea_3d();
});
function TextArea_2d() {
var allVals = [];
jQuery('.2d-taglist :checked').each(function(i) {
allVals.push((i!=0?" ":" ")+ jQuery(this).val());
});
jQuery('#textarea-2d').val('Tell us the key project things like your' + allVals + ' purpose.') ;
}
jQuery(function() {
jQuery('.2d-taglist input').click(TextArea_2d);
TextArea_2d();
});
function TextArea_scanners() {
var allVals = [];
jQuery('.scanners-taglist :checked').each(function(i) {
allVals.push((i!=0?" ":" ")+ jQuery(this).val());
});
jQuery('#textarea-scanners').val('Tell us the key project things like your' + allVals + ' purpose.') ;
}
jQuery(function() {
jQuery('.scanners-taglist input').click(TextArea_scanners);
TextArea_scanners();
});