Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

here all the questions I need only PHP Exercise 3-3 PHP Exercise 3-1 In this exercise, you will create a script that validates whether a

here all the questions I need only PHP Exercise 3-3

PHP Exercise 3-1

In this exercise, you will create a script that validates whether a credit card number contains only integers. The script will remove dashes and spaces from the string. After the dashes and spaces are removed, the script should reject the credit card number if it contains any other non-numeric characters.

  1. Create a folder named PHPEx3 on your h drive or on your home computer if you are completing this at home. Create a new html document in your text editor.
  2. Be sure to include all the appropriate html tags for a basic document. Add id comments at the top containing: your name, the date, and the words PHP Exercise 3-1
  3. Add the following text and elements to the document body:

Validate Credit Card


  1. Add the following script section to the document body:

?>

  1. Declare a $CreditCard array that contains three values: an empty string, a valid credit card number with numbers and dashes, and a credit card number with four initial uppercase

letter Os.

$CreditCard = array(

"",

"8910-1234-5678-6543",

"OOOO-9123-4567-0123");

  1. Add the following statements to iterate through each of the elements in the

$CreditCardarray to determine if the element contains a value.

foreach ($CreditCard as $CardNumber) {

if (empty($CardNumber))

echo "

This Credit Card Number is

invalid because it contains an empty

string.

";

  1. Add the following else clause to validate the credit card number. The code uses str_replace()

functions to remove any dashes and spaces in the number. Then, a nested if...else

statement checks whether the new value is numeric. If the number is not numeric, a warning is displayed. If the number is numeric, the modified credit card number is displayed in the Web browser.

else {

$CreditCardNumber = $CardNumber;

$CreditCardNumber = str_replace("-", "",

$CreditCardNumber);

$CreditCardNumber = str_replace(" ", "",

$CreditCardNumber);

if (!is_numeric($CreditCardNumber))

echo "

Credit Card Number " .

$CreditCardNumber . " is not a valid

Credit Card number because it contains

a non-numeric character.

";

else

echo "

Credit Card Number " .

$CreditCardNumber . " is a valid

Credit Card number.

";

}

}

  1. Save the document as ValidateCreditCard.php in the PHPEx3 folder.

PHP Exercise 3-2 In this exercise, you will create a script that uses comparison operators and functions to compare two strings to see if they are the same. You will use this same technique in Lab 2.

  1. Create a new document in your text editor.
  2. Be sure to include all the appropriate html tags for a basic document. Add id comments at the top containing: your name, the date, and the words PHP Exercise 3-1
  3. Add the following text and elements to the document body:

Compare Strings


  1. Add the following script section to the document body:

?>

  1. In the script section, declare and initialize two string variables:

$firstString = "Geek2Geek";

$secondString = "Geezer2Geek";

  1. Add the following if statement to the script section. If both the $firstString and $secondString

contain a value, the statements in the ifstatement execute. The nested if statement uses the comparison operator (==) to determine if both strings are the same. If the strings are not the same, the elseclause uses the similar_text()and levenshtein()functions to compare the strings.

if ( !empty($firstString) && !empty($secondString)) {

if ($firstString == $secondString)

echo "

Both strings are the same.

";

else {

echo "

Both strings have "

. similar_text($firstString,

$secondString)

. " character(s) in common.
";

echo "

You must change " .

levenshtein($firstString,

$secondString) . " character(s) to

make the strings the same.
";

}

}

  1. At the end of the script section, add the following else clause, which executes if either the

$firstString or the $secondStringcontains an empty value.

else

echo "

Either the \$firstString variable or

the \$secondString variable does not

contain a value so the two strings cannot

be compared.

";

  1. Save the document as CompareStrings.php in the PHPEx3 folder

PHP Exercise 3-3 In this exercise, you will create a script that uses regular expressions to validate that an e-mail address is valid for delivery to a user at example.org. For an e-mail address to be in the correct format, only username or first.last may appear before the @ symbol, and only example.org or mail.example.org may appear after the @ symbol.

  1. Create a new document in your text editor.
  2. Be sure to include all the appropriate html tags for a basic document. Add id comments at the top containing: your name, the date, and the words PHP Exercise 3-3. Use Validate Local Address as the content of the element.</li> <li>Add the following text and elements to the document body:</li> </ol> <p><h1>Validate Local Address</h1><hr /></p> <ol start="4"> <li>Add the following script section to the document body:</li> </ol> <p><?php</p> <p style="margin-left:48px;">?></p> <ol start="5"> <li>In the script section, declare an $email array that contains </li> </ol> <p>five e-mail addresses:</p> <p>$email = array(</p> <p>"jsmith123@example.org",</p> <p>"john.smith.mail@example.org",</p> <p>"john.smith@example.org",</p> <p>"john.smith@example",</p> <p>"jsmith123@mail.example.org");</p> <p> </p> <ol start="6"> <li>Add the following statements to iterate through each of the elements in the $emailarray to determine if it is in the correct format:</li> </ol> <p>foreach ($email as $emailAddress){</p> <p>echo "The email address “" . $emailAddress . </p> <p>"” ";</p> <p>if (preg_match("/^(([A-Za-z]+\d+)|" .</p> <p>"([A-Za-z]+\.[A-Za-z]+))" .</p> <p>"@((mail\.)?)example\.org$/i",</p> <p>$emailAddress)==1)</p> <p>echo " is a valid e-mail address.";</p> <p>else</p> <p>echo " is not a valid e-mail address.";</p> <p>}</p> <ol start="7"> <li>Save the document as <strong>ValidateLocalAddress.php</strong> in the Projects directory for Chapter 3 and upload the file to the server.in the PHPEx3 folder.</li> <li>Zip all three files in the PHPEx3 folder. Upload the zipped file to the PHP Ex3 file upload folder.</li> </ol> </div> </section> <section class="answerHolder"> <div class="answerHolderHeader"> <div class="answer-heading"> <h2>Step by Step Solution</h2> </div> <div class="answerReviews"> <div class="starReview"> <div class="starIcon"> </div> <div class="starText"> </div> </div> </div> </div> <div class="answerSteps"> <p>There are <span>3</span> Steps involved in it</p> <div class="step"> <h3>Step: 1</h3> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-text-image.webp" width="759" height="271" alt="blur-text-image" decoding="async" fetchpriority="high"> <div class="step1Popup"> <h3>Get Instant Access to Expert-Tailored Solutions</h3> <p>See step-by-step solutions with expert insights and AI powered tools for academic success</p> <button class="view_solution_btn step1PopupButton">View Solution</button> </div> </div> <div class="step"> <h3 class="accordion">Step: 2</h3> <div class="panel"> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp" width="975" height="120" alt="blur-text-image_2" loading="lazy" decoding="async" fetchpriority="low"> <button class="view_solution_btn stepPopupButton">Sign Up to view</button> </div> </div> <div class="step"> <h3 class="accordion">Step: 3</h3> <div class="panel"> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp" width="975" height="120" alt="blur-text-image_3" loading="lazy" decoding="async" fetchpriority="low"> <button class="view_solution_btn stepPopupButton">Sign Up to view</button> </div> </div> </div> </section> </div> <div class="expertRight"> <section class="AIRedirect"> <div class="AIHolder"> <h2>Ace Your Homework with AI</h2> <p>Get the answers you need in no time with our AI-driven, step-by-step assistance</p> <a class="AILink" href="/ask_ai">Get Started</a> </div> </section> <section class="relatedBook"> <div class="bookHolder" > <div class="relatedBookHeading" > <h2>Recommended Textbook for</h2> <object class="freeTagImage" type="image/svg+xml" data="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/document_product_info/free.svg" name="free-book-icon"></object> </div> <div class="bookMainInfo" > <div class="bookImage" > <a href="/textbooks/machine-learning-and-knowledge-discovery-in-databases-european-conference-ecml-pkdd-2017-skopje-macedonia-september-18-22-2017-proceedings-part-3-lnai-10536-1st-edition-978-3319712727-176131"> <img src="https://dsd5zvtm8ll6.cloudfront.net/si.question.images/book_images/2024/01/6597ef1f3e457_9676597ef1f3a064.jpg" width="100" height="131" alt="Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536" loading="lazy"> </a> </div> <div class="bookInfo" > <h3 class="bookTitle"> <a href="/textbooks/machine-learning-and-knowledge-discovery-in-databases-european-conference-ecml-pkdd-2017-skopje-macedonia-september-18-22-2017-proceedings-part-3-lnai-10536-1st-edition-978-3319712727-176131"> Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536 </a> </h3> <div class="bookMetaInfo" > <p class="bookAuthor"> <b>Authors:</b> <span>Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski</span> </p> <p class="bookEdition"> 1st Edition </p> <p class="bookEdition"> 3319712721, 978-3319712727 </p> </div></div></div> <a href="/textbooks/computer-science-computational-geometry-2384" class="viewMoreBooks">More Books</a> </div> </section> </div> </div> <section class="relatedQuestion"> <div class="relatedQuestionHolder"> <h4>Students also viewed these Databases questions</h4> <div class="relatedQuestionSliderHolder"> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/a-what-is-the-difference-between-the-purpose-of-descriptive" > (a) What is the difference between the purpose of descriptive and inferential statistics? (b) When should you should use a parametric versus a nonparametric inferential procedure? </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/the-company-abc-has-hired-you-to-improve-security-of-12419565" > The Company ABC has hired you to improve security of its corporate network using the packet filtering firewall they have just purchased. Your job is to configure a static rule set that reflects ABC s... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/inventories/following-are-selected-statement-of-financial-position-accounts-of-sander-2064223" > Following are selected statement of financial position accounts of Sander Bros. Corp. at December 31, 2019 and 2018, and the increases or decreases in each account from 2018 to 2019. Also presented... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/on-february-1-2010-pat-weaver-inc-pwi-issued-10-116197" > 1. On February 1, 2010, Pat Weaver Inc. (PWI) issued 10%, $1,000,000 bonds for $1,116,000. PWI retired all of these bonds on January 1, 2011, at 102. Unamortized bond premium on that date was... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/here-all-the-questions-i-need-only-php-exercise-33-12367045" > here all the questions I need only PHP Exercise 3-3 PHP Exercise 3-1 In this exercise, you will create a script that validates whether a credit card number contains only integers. The script will... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/a-nike-compra-una-mquina-por-12-500-plazo-210-10401159" > A) Nike compra una mquina por $12 500, plazo 2/10, n/60, punto de envo FOB. Nike pag dentro del perodo de descuento y tom el descuento de $250. Nike pag los costos de transporte de $360. La mquina... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/its-artprint-corporation-owns-a-small-printing-press-that-prints-6998017" > ts work iz/Test Artprint Corporation owns a small printing press that prints leaflets, brochures, and advertising materials. Artprint classifies its various printing jobs as standard jobs or special... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/e1019-lo3-nonmonetary-exchange-santana-sa-exchanged-equipment-used-in-5519261" > E10.19 (LO3) (Non-Monetary Exchange) Santana SA exchanged equipment used in its manufacturing operations plus R$2,000 in cash for similar equipment used in the operations of Delaware Co. The... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/the-ceo-said-every-six-months-or-so-my-senior-4717617" > The CEO said, "Every six months or so, my senior management team and I meet to discuss the goals that will be achieved over the next year, three years, and beyond. We then make sure we are clear on... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/you-are-the-new-team-leader-of-a-department-one-5103449" > You are the new team leader of a department. One of your team members, Jane, has been consistently underperforming and causing tension among the team. How do you address this situation through... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/questions/question-3-5-points-compute-the-limits-of-the-following-1015307" > Question 3: 5 points Compute the limits of the following function ratios. Your answers should always fall into one of three categories limn (...) = lim()Some Constant Number (Determine specific... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/intercultural-communication/3-would-your-assessment-of-sus-doctors-competence-be-different-2117281" > 3 Would your assessment of Sus doctors competence be different if you knew that, for instance, most of his patients shared Sus cultural and socioeconomic background? Would you feel differently about... </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/intercultural-communication/what-other-classical-compositions-are-you-comfortable-playing-specific-2117277" > What other classical compositions are you comfortable playing? (specific) </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> <div class="relatedQuestionCart "> <div class="relatedQuestionCartHeader"> <h3>Question</h3> <div class="relatedStarRating"> <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span> </div> </div> <a class="relatedQuestionText" href="/study-help/intercultural-communication/did-you-perform-a-mozart-piece-for-your-piano-recital-2117276" > Did you perform a Mozart piece for your piano recital in junior high school? (very specific) </a> <div class="relatedQuestionCartFooter"> <div class="relatedHistory"> <p> Answered: <span>1 week ago</span> </p> </div> </div> </div> </div> </div> </section> <hr class="expert-separator"> <div class="next-previous-button"> <div class="navigationButtons"> <a class="previousQuestionButton" href="/study-help/questions/write-a-c-function-that-takes-an-array-of-characters-12367044">Previous Question</a> <a class="nextQuestionButton" href="/study-help/questions/signgroups-ari-leo-sag-tauvircap-gem-lib-12367046">Next Question</a> </div> </div> </div> <div class="promo items-center justify-center hidden" style="margin-left:-15px;"> <div class="app_promo"> <div class="app_promo_headline"> <img class="app_promo_icon" alt="Mobile App Logo" width="40" height="40" loading="lazy" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png"> <p class="app_promo_title font-sans items-center">View Answer in SolutionInn App</p> </div> <button class="app_promo_action redirection question_open_url='q_id=12367045&q_type=2'"> Download on the App Store </button> <button class="btn btn-default app_promo_dismiss"> Continue with the mobile website </button> </div> </div> </main> </div> <div class="blank-portion"></div> <footer> <div class="container footerHolder"> <div class="footerLinksFlex"> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6"> <p>Services</p> <ul> <li><a href="/site-map">Sitemap</a></li> <li><a href="/fun/">Fun</a></li> <li><a href="/study-help/definitions">Definitions</a></li> <li><a href="/tutors/become-a-tutor">Become Tutor</a></li> <li><a href="/study-help/categories">Study Help Categories</a></li> <li><a href="/study-help/latest-questions">Recent Questions</a></li> <li><a href="/study-help/questions-and-answers">Expert Questions</a></li> </ul> </div> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6"> <p>Company Info</p> <ul> <li><a href="/security">Security</a></li> <li><a href="/copyrights">Copyrights</a></li> <li><a href="/privacy">Privacy Policy</a></li> <li><a href="/conditions">Terms & Conditions</a></li> <li><a href="/solutioninn-fee">SolutionInn Fee</a></li> <li><a href="/scholarships">Scholarship</a></li> </ul> </div> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6"> <p>Get In Touch</p> <ul> <li><a href="/about-us">About Us</a></li> <li><a href="/support">Contact Us</a></li> <li><a href="/career">Career</a></li> <li><a href="/jobs">Jobs</a></li> <li><a href="/support">FAQ</a></li> <li><a href="/campus-ambassador-program">Campus Ambassador</a></li> </ul> </div> <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-12"> <p>Secure Payment</p> <div class="footerAppDownloadRow"> <div class="downloadLinkHolder"> <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/common/footer/secure_payment_method.png" class="img-fluid mb-3" width="243" height="28" alt="payment-verified-icon" loading="lazy"> </div> </div> <p>Download Our App</p> <div class="footerAppDownloadRow"> <div class="downloadLinkHolder mobileAppDownload col-md-6 col-lg-6 col-sm-6 col-6 redirection" data-id="1"> <img style="cursor:pointer;" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/home_page/google-play-svg.svg" alt="SolutionInn - Study Help App for Android" width="116" height="40" class="img-fluid mb-3 " loading="lazy"> </div> <div class="downloadLinkHolder mobileAppDownload col-md-6 col-lg-6 col-sm-6 col-6 redirection" data-id="2"> <img style="cursor:pointer;" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/home_page/apple-store-download-icon.svg" alt="SolutionInn - Study Help App for iOS" width="116" height="40" class="img-fluid mb-3" loading="lazy"> </div> </div> </div> </div> </div> <div class="footer-bottom"> <p>© 2024 SolutionInn. All Rights Reserved</p> </div></footer> <script> window.addEventListener("load",function(){jQuery(document).ready(function(t){t.ajax({type:"POST",url:"/",data:{trackUserActivity:!0,reqUri:document.URL,referer:document.referrer},success:function(t){}})})},!1),window.addEventListener("load",function(){jQuery(document).ready(function(t){t.ajax({type:"POST",url:"/",data:{insertCrawler:!0,reqUri:document.URL,parseTime:"0.056",queryTime:"0.01654768548584",queryCount:"30"},success:function(t){}})})},!1),window.addEventListener("load",function(){jQuery(document).ready(function(){function t(t="",n=!1){var i="itms-apps://itunes.apple.com/app/id6462455425",e="openApp://action?"+t;isAndroid()?(setTimeout(function(){return window.location="market://details?id=com.solutioninn.studyhelp",!1},25),window.location=e):isIOS()?(setTimeout(function(){return window.location=i,!1},25),window.location=e):(i="https://apps.apple.com/in/app/id6462455425",n&&(i="https://play.google.com/store/apps/details?id=com.solutioninn.studyhelp"),window.open("about:blank","_blank").location.href=i)}jQuery("#appModal").modal("show"),jQuery(".download-app-btn").click(function(){t(jQuery(this).attr("question_open_url"))}),jQuery(".redirection").click(function(){var n=jQuery(this).attr("question_open_url"),i=jQuery(this).attr("data-id");void 0!=n?1==i?t(n,!0):t(n,!1):1==i?t("",!0):t("",!1)}),jQuery(".app-notification-close").click(function(){jQuery(".app-notification-section").css("visibility","hidden");var t=new FormData;t.append("hide_notification",!0),jQuery.ajax({type:"POST",url:"/",data:t,cache:!1,contentType:!1,processData:!1,beforeSend:function(){},success:function(t){location.reload()}})})})},!1); </script> </body> </html>