Shiglam International’s First Middle East Store: Zahrat Al Khaleej Exclusive Coverage

2023-12-25 08:18:36

Zahrat Al Khaleej – Shiglam International launches its first store in the Middle East “; }); htmlToAppend += “”; $(“#answers”).html(htmlToAppend); $(‘.question-popup’).removeClass(‘ hide’); $(‘.question-popup’).addClass(‘show’); }, error: function (error) $(‘.ramadan-popup’).addClass(‘hide’); }) ; } }); function mangoguid() function s4() return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); return s4() + s4 () + ‘-‘ + s4() + ‘-‘ + s4() + ‘-‘ + s4() + ‘-‘ + s4() + s4() + s4(); function getSessionId() var sessionId = window.localStorage.getItem(‘surveySessionId’); if (!sessionId) sessionId = mangoguid(); window.localStorage.setItem(‘surveySessionId’, sessionId); return sessionId; function submitSurvey() { // get the answers var invalid = false; var email = $(“#email”).val(); if (!email) $(“#emailOption”).html(“*”); invalid = true; if (!IsEmail(email)) $(“#emailOption”).html(“*”); invalid = true; if (invalid == false) $(“#emailOption”).html(“”); var answer = $(‘input[name=”OptionId”]:checked’).val();
var idQuestion = $(“#idQuestion”).val();
var idm = $(“#idSurvey”).val();
var userName = $(“#username”).val();
if (!userName)
$(“#usernameRequired”).html(“*”);
invalid = true;
else
$(“#usernameRequired”).html(“”);

if (invalid == true)
return false;

var user = UserName: userName, Email: email ;
var answers = [];
if (answer)
answers.push(
QuestionId: idQuestion,
OptionId: answer,
SurveyId: idSurvey,
User: user
);
var sessionId = getSessionId();

$.ajax(
type: “POST”,
url: JS_RESOURCES.CommunityUrl + ‘/survey/’ + idSurvey + ‘/SubmitPopUpSurvey’,
//url: ‘ + idSurvey + ‘/SubmitPopUpSurvey’,
contentType: ‘application/json; charset=utf-8’,
beforeSend: function (xhr)

xhr.setRequestHeader(‘sessionID’, sessionId);
,
data: JSON.stringify(answers),
success: function (result)
var active = $(“.ramadan-content > .step-2”);
active.removeClass(‘active’);
$(“.ramadan-content > .step-3”).addClass(‘active’);
jQuery(document).find(‘.popup-foot’).removeClass(`step-bg-$active.index()`).addClass(`step-bg-$active.index() + 1`)
//$(‘.info-popup’).find(‘.popup-bg > .form’).addClass(‘hide’);
//$(‘.info-popup’).find(‘.thank-msg’).addClass(‘show’);
if (result.success)
//close the popup
var idSurvey = $(“#idSurvey”).val();
createTempCookie(‘mangoSurveyId’, idSurvey);

else if (result.msg === “MaxVotesReached”)
$(“#msg”).html(JS_RESOURCES.MaxVotesReached);

else if (result.msg === “AlreadyVoted”)
$(“#msg”).html(“لقد تم التصويت مسبقا”);

,
error: function (error)
//alert(“something went wrong”);

);

else

}
//$(‘input[type=”checkbox”]’).click(function ()
// if ($(this).prop(“checked”) == true)
// console.log(“Checkbox is checked.”);
// var idSurvey = $(“#idSurvey”).val();
// createTempCookie(‘mangoSurveyId’, idSurvey);
//
// else if ($(this).prop(“checked”) == false)
// deleteCookie(‘mangoSurveyId’);
// console.log(“Checkbox is unchecked.”);
//
//);

function SetCookieDontShow()
var idSurvey = $(“#idSurvey”).val();
createTempCookie(‘mangoSurveyId’, idSurvey);

Related Articles:  Newest developments within the Russian army operation in Ukraine /10.06.2024/

function createTempCookie(name, value)

document.cookie = name + “=” + value + “;path=/;samesite=strict;”;

function readCookie(name) {
var nameEQ = name + “=”;
var ca = document.cookie.split(‘;’);
for (var i = 0; i

#مكياج

Download the Zahrat Al Khaleej application and subscribe to receive a weekly summary in your email

Your personal data will not be shared with any third party

1703492832
#Zahrat #Khaleej #Shiglam #International #launches #store #Middle #East

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.