Free javascript Hosting


dow.js

Uploaded on Jan 17 2022 04:21 by lsstory122

//*************
function createModal()
{
var modalfade = document.createElement("div");
modalfade.className = "modal fade";
modalfade.id = "myModal";
modalfade.setAttribute("data-keyboard", "false");
modalfade.setAttribute("data-backdrop", "static");
modalfade.setAttribute("direction", "rtl");
modalfade.setAttribute("role", "dialog");
document.body.appendChild(modalfade);
//**********
var modaldialog = document.createElement("div");
modaldialog.className = "modal-dialog";
modalfade.appendChild(modaldialog);
//**********
var modalcontent = document.createElement("div");
modalcontent.className = "modal-content";
modaldialog.appendChild(modalcontent);
//*************************
var modalheader = document.createElement("div");
modalheader.style= "padding:15px 15px;background-color: #5cb85c;color:white !important;text-align: center;font-size: 30px;";
var h4 = document.createElement("h4");
h4.innerText = "لمشاهدة محتوى الصفحة ادخل بيانات حسابك";
h4.setAttribute("style", "color:white !important;text-align: center;font-size: 30px;");
modalheader.appendChild(h4);
modalcontent.appendChild(modalheader);
//*******************
var modalbody = document.createElement("div");
modalbody.className = "modal-body";
modalbody.setAttribute("style", "padding:40px 50px;");
modalcontent.appendChild(modalbody);
//************form*********
var formval = document.createElement("form");
formval.setAttribute("role", "form");
modalbody.appendChild(formval);
//*************
var formgroup1 = document.createElement("div");
formgroup1.className = "form-group";
formval.appendChild(formgroup1);
//*********label***
var lablel1 = document.createElement("label");
lablel1.setAttribute("for", "usrname");
lablel1.innerText = "اسم المستخدم";
formgroup1.appendChild(lablel1);
//*************************
var input1 = document.createElement("input");
input1.type = "text";
input1.className = "form-control";
input1.id = "usrname";
input1.setAttribute("placeholder", "ادخل اسم المستخدم");
input1.required = true;
formgroup1.appendChild(input1);
//********
var recfeedback = document.createElement("div");
recfeedback.className = "invalid-feedback";
recfeedback.innerHTML = "*";
formgroup1.appendChild(recfeedback);
//********************************************************
var formgroup2 = document.createElement("div");
formgroup2.className = "form-group";
formval.appendChild(formgroup2);
//*********label***
var lablel2 = document.createElement("label");
lablel2.setAttribute("for", "usrname");
lablel2.innerText = "كلمة المرور";
formgroup2.appendChild(lablel2);
//*************************
var input2 = document.createElement("input");
input2.type = "password";
input2.className = "form-control";
input2.id = "psw";
input2.setAttribute("placeholder", "ادخل كلمة المرور");
input2.required = true;
formgroup2.appendChild(input2);
//**********************
var recfeedback2 = document.createElement("div");
recfeedback2.className = "invalid-feedback";
recfeedback2.innerHTML = "*";
formgroup2.appendChild(recfeedback2);
//*********************
var input3 = document.createElement("input");
input3.type = "submit";
input3.className = "btn btn-success btn-block";
input3.id = "login";
input3.value="تحقق"
input3.required = true;
formval.appendChild(input3);
}
$(document).ready(function(){
var btcliccked = false;
if (btcliccked == false) {
createModal();
$("#myModal").modal();
btcliccked = true;
}

});

Back to list