-
Notifications
You must be signed in to change notification settings - Fork 0
/
genmatch7.js
33 lines (26 loc) · 2.62 KB
/
genmatch7.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
$( "#testmode" ).click(function() {
$('#text').val('الفريق االاول');
$('#text1').val('الفريق الثاني');
$('#text2').val('https://ssl.gstatic.com/onebox/media/sports/logos/U8eFcoYVU8shHPAPoOBjGA_96x96.png');
$('#text3').val('https://ssl.gstatic.com/onebox/media/sports/logos/lk9CefHt2JiYsOAT4rfaNw_96x96.png');
$('#text4').val('الدوري العربي');
//var s6 = $('#text5').val();
$('#text6').val('2021-04-03 18:00');
$('#text7').val('2021-05-03 18:00');
});
$( "#gev23" ).click(function() {
var datas1 = $('#text').val();
var datas2 = $('#text1').val();
var datas3 = $('#text2').val();
var datas4 = $('#text3').val();
var datas5 = $('#text4').val();
//var s6 = $('#text5').val();
var datas7 = $('#text6').val();
var datas8 = $('#text7').val();
var urlm = $('#urlm').val();
console.log(datas4);
var rndixs = Math.floor(Math.random() * 9999);
$('#textarea1').val('<div id="cn'+rndixs+'" class="match-container"> <a href="'+urlm+'" id="match-live" title="'+datas1+' vs '+datas2+'"> <div class="right-team"> <div class="team-logo"> <img alt="'+datas1+'" height="70" src="'+datas3+'" title="'+datas1+'" width="70"> </div> <div class="team-name">'+datas1+'</div> </div> <div class="match-center"> <div class="match-timing"> <div id="match-time"></div> <div id="result" style="display: none;">0-0</div> <li><span>'+datas5+' </span></li> <div class="date stay mlive" id="mt'+rndixs+'" data-gameends="'+datas8+timedef+'" data-start="'+datas7+timedef+'"></div> </div> </div> <div class="left-team"> <div class="team-logo"> <img alt="'+datas2+' " height="70" src="'+datas4+'" title="'+datas2+' " width="70"> </div> <div class="team-name">'+datas2+' </div> </div> <div id="overlay-match"><div id="watch-match"></div></div> </a> </div>');
$('#playcode').html('<div id="cn'+rndixs+'" class="match-container"> <a href="'+urlm+'" id="match-live" title="'+datas1+' vs '+datas2+'"> <div class="right-team"> <div class="team-logo"> <img alt="'+datas1+'" height="70" src="'+datas3+'" title="'+datas1+'" width="70"> </div> <div class="team-name">'+datas1+'</div> </div> <div class="match-center"> <div class="match-timing"> <div id="match-time"></div> <div id="result" style="display: none;">0-0</div> <li><span>'+datas5+' </span></li> <div class="date stay mlive" id="mt'+rndixs+'" data-gameends="'+datas8+timedef+'" data-start="'+datas7+timedef+'"></div> </div> </div> <div class="left-team"> <div class="team-logo"> <img alt="'+datas2+' " height="70" src="'+datas4+'" title="'+datas2+' " width="70"> </div> <div class="team-name">'+datas2+' </div> </div> <div id="overlay-match"><div id="watch-match"></div></div> </a> </div>');
playtime();
});