-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
201 lines (177 loc) · 6.49 KB
/
Copy pathindex.html
File metadata and controls
201 lines (177 loc) · 6.49 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<html>
<head>
<title>naming_conventions_allcrux</title>
</head>
<body>
<h3>EWS horizon counter</h3>
<p>time until handshake deal execution</p>
<p>default execution date = Aug 24, 2030</p>
<p>adjust execution date to</p>
<form action="/action_page.php">
<label for="adjusted_exec_date">adjusted execution date:</label>
<input type="date" id="birthday" name="birthday">
<input type="submit" value="Submit">
</form>
<p id="ews"></p>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Aug 24, 2030 15:37:25").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var years = Math.floor(distance / (1000 * 60 * 60 * 24 * 365));
var days = Math.floor((distance % (1000 * 60 * 60 * 24 * 365)) / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("ews").innerHTML = years + "yrs " + days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
<h3>Select number, amount or percentage</h3>
<select id="number_amount_percentage" style="width: 300px" onchange="appearing_if_amount()"><br>
<option value="">please select...</option>
<option value="number_of">number</option>
<option value="amount_of">amount</option>
<option value="percentage_of">percentage</option>
</select>
<br>
<script>
/*function appearing_if_amount() {
var y = document.getElementById("number_amount_percentage").value;
if (y == "amnt") {
document.getElementById("appearing_if_amount").style.display = "block";
}
else {
document.getElementById("appearing_if_amount").style.display = "none";
}
}*/
</script>
<div id="appearing_if_amount" style="display:block">
<h3>Select agio vs nominal vs MTM</h3>
<select id="agio_nominal_mtm" name="agio_nominal_mtm" style="width: 300px"><br>
<option value="">please select...</option>
<option value="agio">agio</option>
<option value="nominal">nominal</option>
<option value="mtm">mtm</option>
</select>
</div>
<br>
<h3>check if pertaining to a deal vehicle</h3>
<label for="per_deal_node">per_deal_node</label>
<input type="checkbox" id="per_deal_node">
<h3>select whether defined per issuer / holder or whether in holding or transaction</h3>
<p>(note: if in holding or transaction, issuer, holder and instrument are already known)</p>
<select multiple id="per_issuer-holder_or_holding_or_transaction" size="5" style="width: 300px" style="height: 100%"onchange="per_instr_type_appearing()"><br>
<option value="">please select...</option>
<option value="per_issuer">per_issuer</option>
<option value="per_holder">per_holder</option>
<option value="in_holding">in_holding</option>
<option value="in_transaction">in_transaction</option>
</select>
<div id="only_if_per_issuer_or_per_holder" style="display:block">
<h3>select if per instrument or per instrument_type</h3>
<p>this only applies if not tied to a holding or transaction</p>
<select id="in_instr_or_instr_type" style="width: 300px"><br>
<option value="">please select...</option>
<option value="instrument">in_instrument</option>
<option value="unit">unit</option>
<option value="instrument_type">in_instrument_type</option>
</select>
</div>
<br>
<h3>check if pertaining to a deal instrument or instrument type</h3>
<p>(this is to be selected if the item corresponds to a deal vehicle and within that deal there is also an exclusive link to the deal in relation to the instrument or instrument type)</p>
<label for="per_deal_instr_(type)">per_deal_instr_(type)</label>
<input type="checkbox" id="per_deal_instr_(type)">
<br>
<h3>Default vs current vs previous vs running_total</h3>
<!--smijt naar achter + current weg -->
<select id="default_current_previous" style="width: 300px"><br>
<option value="">please select...</option>
<option value="default">default</option>
<option value="current">current</option>
<option value="previous">previous</option>
<option value="running_total">running_total</option>
</select>
<br>
<h3>Free text</h3>
<p>only to be used if further precision required</p>
<input type="text" id="free_text_add_on">
<br>
<br>
<button onclick="build_name()" style="background-color:lightgreen">submit</button>
<br>
<h2>name constructed</h2>
<div id="name_constructed" style="color:green"></div>
<br>
<p>note: please doublecheck for double underscores.</p>
<script>
function build_name() {
var a;
var b;
var c;
var checkbox_for_d = document.getElementById("per_deal_node");
var d;
var e;
var f;
var checkbox_for_g = document.getElementById("per_deal_instr_(type)");
var g;
var h;
var name;
if (document.getElementById("number_amount_percentage").value != ""){
a = document.getElementById("number_amount_percentage").value;
} else {
a="";
}
if (document.getElementById("agio_nominal_mtm").value != ""){
b = "_"+document.getElementById("agio_nominal_mtm").value;
} else {
b="";
}
if (checkbox_for_d.checked == true){
c = "_"+"per_deal";
} else {
c="";
}
if (document.getElementById("per_issuer-holder_or_holding_or_transaction").value != ""){
d = "_"+document.getElementById("per_issuer-holder_or_holding_or_transaction").value;
} else {
d="";
}
if (document.getElementById("in_instr_or_instr_type").value != ""){
e = "_"+document.getElementById("in_instr_or_instr_type").value;
} else {
e="";
}
if (checkbox_for_g.checked == true){
f = "_"+"per_deal_(for_instr_type)";
} else {
f="";
}
if (document.getElementById("default_current_previous").value != ""){
g = "_"+document.getElementById("default_current_previous").value;
} else {
g="";
}
if (document.getElementById("free_text_add_on").value != ""){
h = "_"+document.getElementById("free_text_add_on").value;
} else {
h="";
}
name = a+b+c+d+e+f+g+h;
document.getElementById("name_constructed").innerHTML = name;
}
</script>
</body>
</html>