-
Notifications
You must be signed in to change notification settings - Fork 3
/
dh42.js
executable file
·38 lines (16 loc) · 980 Bytes
/
dh42.js
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
$(document).ready(function() {
// Change it to yours
var affiliate_url = '001';
var licontent = '<li class="maintab" id="maintab-Dh42" data-submenu="99">';
licontent += '<a style="background-color:#ff5450; color: white" href="javascript:void(0)" class="title">';
licontent += '<i class="icon-question-sign" style="color:white; padding-left: 7px"></i><span>Dh42 Support</span>';
licontent += '</a>';
licontent += '</li>';
$('#nav-sidebar .menu').append(licontent);
$('#maintab-Dh42 a').click(function(e) {
e.preventDefault();
if($('#dh42-support-container').length == 0)
$('body').append('<div id="dh42-support-container" class="modal fade"><div class="modal-dialog" style="height:75%;width:75%""><iframe src="https://dh42.com/support/aff.php?aff='+affiliate_url+'&support=true&iframe=yes" width=100% height=100%></iframe><style>#main-header {display:none}</style></div></div>');
$('#dh42-support-container').modal('show');
});
});