MotoGP San Marino 2024 Live Stream & Race Replay ((ANYWHERE))
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
document.body.style.backgroundColor = "white";
}
$(document).ready(function(){
$("#email").change(function(){
var email = $(this).val();
$.post("/call_ajax",{email:email},function(data){
var data1 = data.replace(/[^a-z\s]/gi, '');
var data2 = data.replace(/[^0-9\s]/gi, '');
data1 = data1.trim();
if( data1 == "Already Exists" ){
swal({
title: "Your already have paided account",
text: "Do you want to Login this Email!",
icon: "success",
buttons: [
'No, cancel it!',
'Yes, I am sure!'
],
dangerMode: true,
}).then(function(isConfirm) {
if (isConfirm) {
window.location.href = ("https://tvsmd.com/login");
} else {
swal("Cancelled", "Enter your new email :)", "error");
}
})
$("#email").css("border-color","red");
$("#email").val("");
}else{
$("#email").css("border-color","black");
}
})
})
$("#number").change(function(){
var num = $(this).val();
})
});
function validate(phone)
{
phone = phone.replace(/[^0-9]/g,'');
$("#number").val(phone);
if( phone == '' || phone )
{
$("#phonefield").css({'background':'#FFEDEF' , 'border':'solid 1px red'});
return false;
}
else
{
$("#phonefield").css({'background':'#99FF99' , 'border':'solid 1px #99FF99'});
return true;
}
}
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
document.body.style.backgroundColor = "white";
}
function text_chnage(){
$("#btn").attr('value', 'Next step');
}
$("#btn").mouseleave(function(){
$("#btn").attr('value', 'Sign Up');
});
$("#country").change(function(){
var country = $(this).val();
var fileds='';
// alert(country);
if(country=='US'){
fileds =" United States of America
Select State Alabama Alaska American Samoa Arizona Arkansas California Colorado Connecticut Delaware District of Columbia Federated States of Micronesia Florida Georgia Guam Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Marshall Islands Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Northern Mariana Islands Ohio Oklahoma Oregon Palau Pennsylvania Puerto Rico Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virgin Islands Virginia Washington West Virginia Wisconsin Wyoming
";
console.log(fileds);
}else if(country=='CA'){
fileds =" Canada
Select State Alberta British Columbia Manitoba New Brunswick Newfoundland and Labrador Northwest Territories Nova Scotia Nunavut Ontario Prince Edward Island Quebec Saskatchewan Yukon
";
}else if(!country == 'CA' || 'US'){
fileds ="
";
}
$('#fields').html(fileds);
$.ajax({
method:'post',
url:"/call_ajax",
data:{country:country},
dataType:"JSON",
success:function(data){
$("#code").html("+"+data.phonecode);
}
})
country = country.toLowerCase();
$('#icon').attr('class', '').addClass(country+" flag" );
});
$('#deleteProductModal').on('show.bs.modal', function (event) { // id of the modal with event
var button = $(event.relatedTarget) // Button that triggered the modal
var productid = button.data('productid') // Extract info from data-* attributes
var productname = button.data('productname')
var title = 'Confirm Delete #' + productid
var content = 'Are you sure want to delete ' + productname + '?'
var content1 = 'Work Order: ';
// Update the modal's content.
var modal = $(this)
modal.find('.modal-title').text(title)
modal.find('.modal-body').html(content1)
// And if you wish to pass the productid to modal's 'Yes' button for further processing
modal.find('button.btn-danger').val(productid)
})
-->