Enter your email if you'd like us to contact you regarding with your feedback.
Back
Submit
Thank you for submitting your feedback!
jQuery(document).ready(function() {
if (!sessionStorage.getItem("langselectpopUpShown")) {
// If not, create a elements for the pop up window
var popUp = document.createElement("div"),
buttonContainer = document.createElement("div"),
buttonContainerheader = document.createElement("p"),
leftButton = document.createElement("div"),
rightButton = document.createElement("div"),
closebtn = document.createElement("span");
popUp.className = "languageselectpopUp";
buttonContainer.className = "languageselectbuttonContainer";
buttonContainerheader.className = "languageselectheader"
closebtn.className = "languageselectclose";
leftButton.className = "languageselectbuttonleft";
rightButton.className = "languageselectbuttonright";
// Add an onclick event to close the pop up window
closebtn.onclick = function() {
document.body.removeChild(popUp);
};
// Add some text content for the close button
closebtn.innerHTML = "X";
// Append the close button to the pop up window
popUp.appendChild(closebtn);
buttonContainerheader.innerHTML = "Select Language"
leftButton.innerHTML = "ENGLISH";
rightButton.innerHTML = "ARABIC";
leftButton.onclick = function() {
window.location.href = "https://panda-electric.com/"
};
rightButton.onclick = function() {
window.location.href = "https://panda-electric.com/ar"
};
// Add a class name for styling
// Add some text content
// Add an onclick event
// Append the buttons to the button container
buttonContainer.appendChild(buttonContainerheader);
buttonContainer.appendChild(leftButton);
buttonContainer.appendChild(rightButton);
// Append the button container to the pop up window
popUp.appendChild(buttonContainer);
// Set the flag to true
sessionStorage.setItem("langselectpopUpShown", true);
// Append the pop up window to the body of the document
document.body.appendChild(popUp);
}
Reviews
There are no reviews yet.