-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp1.html
executable file
·34 lines (29 loc) · 1.08 KB
/
temp1.html
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
<div class="last-estelams">
<div class="div-rotated">
<div class="eh-last-item" onclick="replyToInquiry([ID],'[InquiryType]');">
<div class="right-sd">
<h2 class="eh-last-ostan-item">[StartingPoint]</h2>
<h2 class="eh-last-shahr-item">[StartingPoint]</h2>
</div>
<div class="left-sd">
<h2 class="eh-last-ostan-item">[Destination]</h2>
<h2 class="eh-last-shahr-item">[Destination]</h2>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$(".eh-last-ostan-item").each(function () {
var val = $(this).html().split(":")[0];
$(this).html(val);
});
$(".eh-last-shahr-item").each(function () {
var val = $(this).html().split(":")[1];
$(this).html(val);
});
});
function replyToInquiry(id, ctlName) {
window.location = '/default.aspx?tabid=113&mid=1433&ctl=ReplyToInquiry_' + ctlName + '&InqId=' + id;
}
</script>