Question: 1) DiceRoll.php Program: You will need to complete, save and submit all versions of the program in php created by following the instructions on pages

1) DiceRoll.php Program: You will need to complete, save and submit all versions of the program in php created by following the instructions on pages 85, 89,90,94,99,102,105,107 of your Textbook. You need to save all the 8 versions of the program as separate files and name them as different versions. For each version of the file you will execute it in the browser and take a screenshot of the output. You can submit each screen shot individually or you can paste them all in one word document and label them appropriately.

Could you please help me with these php codes, thank you! It is so confusing to me.

In the next steps, you will create a script to roll a pair of dice and

evaluate the outcome. For this exercise, you will use the function

rand(1,6), which generates a random integer from 1 to 6.

To create the dice script:

1. Create a new document in your text editor. Type the

declaration, element, header information,

and element. Use the strict DTD and Dice Roll as

the content of the element.</p> <p>2. Add the following script section to the document body:</p> <p><?php</p> <p>?></p> <p>3. Add the following code to the beginning of the script</p> <p>section. Th is will create the $FaceNamesSingular and</p> <p>$FaceNamesPlural arrays and populate them with text.</p> <p>$FaceNamesSingular = array("one", "two", "three",</p> <p>"four", "fi ve", "six");</p> <p>$FaceNamesPlural = array("ones", "twos", "threes",</p> <p>"fours", "fi ves", "sixes");</p> <p>4. Now create the CheckForDoubles function. It takes two</p> <p>parameters, $Die1 and $Die2, and uses echo statements and</p> <p>the global $FaceNamesSingular and $FaceNamesPlural</p> <p>arrays to display one of two diff erent messages, depending on</p> <p>whether $Die1 equals $Die2 (doubles were rolled).</p> <p>To simplify the DiceRoll.php script by replacing two if statements</p> <p>with one if . . . else statement:</p> <p>1. Return to the DiceRoll.php document in your text editor.</p> <p>2. Because you only need the if statement to test for doubles,</p> <p>you can display the message for rolls that are not doubles</p> <p>in the else clause. Modify the CheckForDoubles() function</p> <p>so that the two if statements are replaced with a single</p> <p>if . . . else statement. Th e following code shows how the</p> <p>statements for the CheckForDoubles() function should look:</p> <p>if ($Die1 == $Die2) // Doubles</p> <p>echo "The roll was double ",</p> <p>$FaceNamesPlural[$Die1-1], ".<br />";</p> <p>else // Not Doubles</p> <p>echo "The roll was a ",</p> <p>$FaceNamesSingular[$Die1-1],</p> <p>" and a ", $FaceNamesSingular[$Die2-1],</p> <p>".<br />";</p> <p>3. Save and upload the DiceRoll.php document.</p> <p>4. Open the DiceRoll.php fi le in your Web browser by entering</p> <p>the following URL: http://<yourserver>/PHP_Projects/</p> <p>Chapter.02/Chapter/DiceRoll.php. You should still see a</p> <p>Web page similar to the one shown in Figure 2-4. Use the</p> <p>refresh button to verify that both doubles and nondoubles are</p> <p>displayed correctly.</p> <p>5. Close your Web browser window.</p> <p>To modify the DiceRoll.php program so it uses nested if . . . else</p> <p>statements to display the score text:</p> <p>1. Return to the DiceRoll.php document in your text editor.</p> <p>2. Modify the CheckForDoubles() function to return a Boolean</p> <p>value indicating whether doubles were rolled by adding the</p> <p>text shown in bold.</p> <p>function CheckForDoubles($Die1, $Die2) {</p> <p>global $FaceNamesSingular;</p> <p>global $FaceNamesPlural;</p> <p>$ReturnValue = false;</p> <p>if ($Die1 == $Die2) { // Doubles</p> <p>echo "The roll was double ",</p> <p>$FaceNamesPlural[$Die1-1], ".<br />";</p> <p>$ReturnValue = true;</p> <p>}</p> <p>else { // Not Doubles</p> <p>echo "The roll was a ",</p> <p>$FaceNamesSingular[$Die1-1],</p> <p>" and a ",</p> <p>$FaceNamesSingular[$Die2-1], ".<br />";</p> <p>$ReturnValue = false;</p> <p>}</p> <p>return $ReturnValue;</p> <p>}</p> <p>To modify the DiceRoll.php script to use a switch statement for the</p> <p>score text:</p> <p>1. Return to the DiceRoll.php document in your text editor.</p> <p>2. Replace the nested if . . . else statements with the following</p> <p>switch statement in the DisplayScoreText() function. Note</p> <p>the use of the nested if . . . else statement in the default</p> <p>case that allows the DisplayScoreText() function to display</p> <p>a message for all of the possible rolls:</p> <p>switch ($Score) {</p> <p>case 2:</p> <p>echo "You rolled snake eyes!<br />";</p> <p>break;</p> <p>case 3:</p> <p>echo "You rolled a loose deuce!<br />";</p> <p>break;</p> <p>case 5:</p> <p>echo "You rolled a fever fi ve!<br />";</p> <p>break;</p> <p>case 7:</p> <p>echo "You rolled a natural!<br />";</p> <p>break;</p> <p>case 9:</p> <p>echo "You rolled a nina!<br />";</p> <p>break;</p> <p>To modify the DiceRoll.php script to evaluate fi ve rolls using a while</p> <p>statement:</p> <p>1. Return to the DiceRoll.php document in your text editor.</p> <p>2. Immediately after the declaration of the $Dice array, declare</p> <p>and initialize two new variables: $DoublesCount and</p> <p>$RollNumber.</p> <p>$DoublesCount = 0;</p> <p>$RollNumber = 1;</p> <p>3. After the new variable declarations, create a while loop by</p> <p>adding the code shown in bold. Also, revise the echo statement</p> <p>by making the change shown in bold.</p> <p>while ($RollNumber <= 5) {</p> <p>$Dice[0] = rand(1,6);</p> <p>$Dice[1] = rand(1,6);</p> <p>$Score = $Dice[0] + $Dice[1];</p> <p>echo "<p>";</p> <p>echo "The total score for roll $RollNumber was</p> <p>$Score.<br />";</p> <p>$Doubles = CheckForDoubles($Dice[0],$Dice[1]);</p> <p>DisplayScoreText($Score, $Doubles);</p> <p>echo "</p>";</p> <p>if ($Doubles)</p> <p>++$DoublesCount;</p> <p>++$RollNumber;</p> <p>} // End of the while loop</p> <p>To use a do . . . while statement:</p> <p>1. Return to the DiceRoll.php document in your text editor.</p> <p>2. Change the while statement to a do . . . while statement, as</p> <p>follows:</p> <p>do {</p> <p>$Dice[0] = rand(1,6);</p> <p>$Dice[1] = rand(1,6);</p> <p>$Score = $Dice[0] + $Dice[1];</p> <p>echo "<p>";</p> <p>echo "The total score for roll $RollNumber was</p> <p>$Score.<br />";</p> <p>$Doubles = CheckForDoubles($Dice[0],$Dice[1]);</p> <p>DisplayScoreText($Score, $Doubles);</p> <p>echo "</p>";</p> <p>if ($Doubles)</p> <p>++$DoublesCount;</p> <p>++$RollNumber;</p> <p>} while ($RollNumber <= 5); /* End of the do . . .</p> <p>while loop */</p> <p>To replace the do . . . while statement in DiceRoll.php with a for</p> <p>statement:</p> <p>1. Return to the DiceRoll.php document in your text editor.</p> <p>2. Change the do . . . while statement to a for statement, as</p> <p>follows:</p> <p>for ($RollNumber = 1; $RollNumber <= 5;</p> <p>++$RollNumber) {</p> <p>$Dice[0] = rand(1,6);</p> <p>$Dice[1] = rand(1,6);</p> <p>$Score = $Dice[0] + $Dice[1];</p> <p>echo "<p>";</p> <p>echo "The total score for roll $RollNumber was</p> <p>$Score.<br />";</p> <p>$Doubles = CheckForDoubles($Dice[0],$Dice[1]);</p> <p>DisplayScoreText($Score, $Doubles);</p> <p>echo "</p>";</p> <p>if ($Doubles)</p> <p>++$DoublesCount;</p> <p>} // End of the for loop</p> <p>3. Save and upload the DiceRoll.php document.</p> <p>4. Open the DiceRoll.php fi le in your Web browser by entering</p> <p>the following URL: http://<yourserver>/PHP_Projects/</p> <p>Chapter.02/Chapter/DiceRoll.php. Th e output should still</p> <p>appear as shown in Figure 2-8.</p> <p>5. Close your Web browser window.</p> <p>To create a fi nal version of DiceRoll.php that displays all possible outcomes</p> <p>of rolling two dice:</p> <p>1. Return to the DiceRoll.php document in your text editor.</p> <p>2. Immediately after the declaration of the $FaceNamesSingular</p> <p>and $FaceNamesPlural arrays, declare a new array named</p> <p>$FaceValues, as follows:</p> <p>$FaceValues = array( 1, 2, 3, 4, 5, 6);</p> <p>3. Delete the declaration of the $Dice array and add a new declaration</p> <p>for a variable named $RollCount, as follows:</p> <p>$RollCount = 0;</p> <p>4. Create a new array called $ScoreCount and initialize it using</p> <p>the following for loop:</p> <p>$ScoreCount = array();</p> <p>for ($PossibleRolls = 2; $PossibleRolls <= 12;</p> <p>++$PossibleRolls) {</p> <p>$ScoreCount[$PossibleRolls] = 0;</p> <p>}</p> </div> <div class="question-answer-divider"></div> <section class="answerHolder" itemscope itemtype="http://schema.org/Answer"> <div class="answerHolderHeader"> <h2>Step by Step Solution</h2> <div class="answerReviews"> <div class="starIcon"> </div> </div> </div> <div class="questionProperties"> <p>There are 3 Steps involved in it</p> <div class="cart-flex"> <div class="cart cart1"> 1 Expert Approved Answer </div> </div> </div> <div class="step org_answer"> <span class="view_solution_btn view-solution-btn-cursor"> <strong class="step-heading step-1">Step: 1 <span>Unlock <i class="fa-solid fa-lock"></i></span></strong> </span> <img src="https://www.solutioninn.com/includes/images/document_product_info/blur-text-image.webp" class="blured-ans-image" width="759" height="271" alt="blur-text-image" decoding="async" fetchpriority="high"> <div class="step1Popup"> <span class="heading">Question Has Been Solved by an Expert!</span> <p>Get step-by-step solutions from verified subject matter experts</p> <button class="view_solution_btn step1PopupButton">View Solution</button> </div> </div> <div class="step"> <span class="view_solution_btn view-solution-btn-cursor"> <strong class="accordion step-heading">Step: 2 <span>Unlock <i class="fa-solid fa-lock"></i></span></strong> </span> </div> <div class="step"> <span class="view_solution_btn view-solution-btn-cursor"> <strong class="accordion step-heading">Step: 3 <span>Unlock <i class="fa-solid fa-lock"></i></span></strong> </span> </div> </section> <section class="relatedQuestion"> <h3>Students Have Also Explored These Related Databases Questions!</h3> <div class="relatedQuestionSliderHolder"> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/western-region-original-price-sale-price-days-to-sell-82-17760928" > Western Region Original Price Sale Price Days to Sell 82 60 20 140 123 26 80 70 16 89 50 72 135 120 18 146 143 109 80 80 79 125 100 130 70 60 100 81 52 96 103 95 14 118 100 33 136 100 101 101 50 55... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/multiple-choice-questions-question-80-some-filesystems-require-tools-17385765" > Multiple CHoice QUestions Question 80 Some filesystems require ______________ tools to restore the performance on mechanical drives, which have sections of the filesystem become non-contiguous. Save... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/039-root-entry-17876631" > ##################>### ############################################# ####################### ### ####### ####################################################################### ###!###"#######$###... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/instructions-for-emailing-homework-please-follo-1-do-not-17527102" > Instructions for Emailing Homework - Please follo 1. Do NOT send your homework to my email address. Excel homework must be emailed to huxleyqba time and due date shown on the homework. Late homework... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/directions-for-problem-4-in-excel-the-goal-of-this-17722216" > Directions for Problem #4 in Excel The goal of this problem is to have you: Use Excel to generate the future value of each of the various investments made over the course of the 25 years. Use Excel... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/please-write-in-c-language-aim-of-the-project-in-12550235" > Please write in C language. Aim of the Project In this project you will first encrypt a message on an image by using the fact that the pixels of the image carry some specific data that is ordinarily... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/i-really-need-help-please-help-mei-need-get-them-6387201" > i really need help, please help me,I need get them done before 9:00pm tonight.I will thumb up. Thank you so much 2020 State of Nebraska Payroll Project Bugeater's Corporation Federal EIN: 47-9876543... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/i-want-a-answer-of-4th-part-like-pros-and-13794365" > I want a answer of 4th part like pros and cons of these charts after creation signment Instructions 1. Set up up a virtual introduction meeting with your group. 2. Download a copy of the data here.... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/may-someone-help-me-this-please-i-will-put-the-5742393" > may someone help me this please! I will put the thumb up 2020 State of Nebraska Payroll Project Bugeater's Corporation Federal EIN: 47-9876543 Nebraska ID: 20-658790 Nebraska Unemployment Account... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/please-see-the-attached-instructions-forwhat-is-required-for-this-4079464" > Please see the attached instructions forwhat is required for this question For this assignment, you will complete the Financial Overview component of Amazon. To complete this assignment, use the... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/sizzling-fryers-has-just-made-an-announcement-that-it-will-488890" > Sizzling Fryers has just made an announcement that it will be repurchasing $240,000 worth of its common shares. If Sizzling Fryers has 44,444 of common shares outstanding currently selling trading at... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/1-michael-jordan-is-considered-by-many-the-greatest-basketball-447053" > 1. Michael Jordan is considered by many the greatest basketball players, his career free-throw percentage is 83.5%. Lebron James is also considered by many a great basketball player, with a career... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/question-2-1-5-marks-begin-27862757" > Question 2 ( 1 5 Marks ) \ begin { tabular } { | l | l | } \ hline Normal Working days ( 6 days ) & 4 5 hours \ \ \ hline Number of hours worked & 4 9 hours \ \ \ hline Monday & 8 hours \ \ \ hline... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/when-a-project-team-member-acts-as-a-fiduciary-of-21075409" > When a project team member acts as a fiduciary of the organization, diligently overseeing organization and team matters, they are demonstrating compliancetrustworthinessintegritycare </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/research-methods-business/complete-any-necessary-ethical-scrutiny-processes-required-by-your-organisation-2106468" > complete any necessary ethical scrutiny processes required by your organisation and/or study centre. </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/research-methods-business/identify-and-address-ethical-issues-arising-from-your-research-and-2106467" > identify and address ethical issues arising from your research and the research of others; </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/research-methods-business/explain-the-development-of-national-and-international-standards-for-hr-2106465" > explain the development of national and international standards for HR practice; </a> </div> </div> <nav class="navigationButtons"> <a class="previousQuestionButton" href="/study-help/questions/landlords-provide-the-following-covenant-in-leases-and-7271626">Previous Question</a> <a class="nextQuestionButton" href="/study-help/questions/determine-the-spending-variance-using-the-following-data-and-indicate-7271628">Next Question</a> </nav> </section> </main> <aside class="expertRight"> <section class="relatedBook" style="margin-bottom:40px; width: 100%;" > <div class="bookHolder" > <div class="relatedBookHeading" > <h2 class="heading">Recommended Textbook</h2> </div> <div class="bookMainInfo" > <div class="bookImage" style="width: 100px !important; min-width: 100px; flex-shrink: 0; margin-right: 20px;"> <a href="/textbooks/sql-server-t-sql-recipes-4th-edition-9781484200612"> <img src="https://dsd5zvtm8ll6.cloudfront.net/si.question.images/book_images/2022/02/61fa2d4b064ba_54661fa2d4a689d6.jpg" width="100" height="131" alt="SQL Server T-SQL Recipes" loading="lazy" style="width: 100px !important;"> </a> <a href="/textbooks/computer-science-jscript-2363" style="margin-top: 8px; display: block; text-align: left;">More Books</a> </div> <div class="bookInfo" style="text-align: left;"> <span class="bookTitle" style="text-align: left;"> <a href="/textbooks/sql-server-t-sql-recipes-4th-edition-9781484200612" style="text-align: left;"> SQL Server T-SQL Recipes </a> </span> <div class="bookMetaInfo" style="text-align: left;"> <p class="bookAuthor" style="text-align: left;"> <b>Authors:</b> <span>David Dye, Jason Brimhall</span> </p> <p class="bookEdition" style="text-align: left;"> 4th Edition </p> <p class="bookEdition" style="text-align: left;"> 1484200616, 9781484200612 </p> </div></div></div> </div> </section> <div class="post-question-section"> <div class="description-question-section"> <span class="post-question-section-title">Ask a Question and Get Instant Help!</span> </div> <div class="text-area-post-question"> <form action="/study-help/post-question?ref=search" method="post" enctype="multipart/form-data"> <textarea rows="4" class="form-control form-posting-margin" name="textarea-question-content" id="textarea-question-content" placeholder="Type Your Question ...."></textarea> <button type="submit" class="btn btn-sm btn-submit-post-question text-center">Get Answer</button> </form> </div> </div> </aside> </div> </div> <div class="promo items-center justify-center hidden"> <div class="app_promo"> <span class="app_promo_dismiss"> <i class="fa-solid fa-x"></i> </span> <div class="app-button"> <div class="image-wrapper"> <img width="30" height="30" src="https://www.solutioninn.com/includes/images/rewamp/common/mobile-app-logo.png" decoding="async" fetchpriority="high" alt="SolutionInn App Logo"> <strong>Study Help</strong> </div> <button class="app_promo_action redirection" data-question-open-url='q_id=7271627&q_type=2'> Open in App </button> </div> </div> </div> </div> </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="/books/used-textbooks">Used Textbooks</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> <li><a href="/clothing">Campus Wear</a></li> <li><a href="/sell-books">Sell Your Books</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> <li><a href="/online-quiz">Online Quiz</a></li> <li><a href="/study-feedback">Give Feedback, Get Rewards</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="https://www.studentbeans.com/en-us/us/beansid-connect/hosted/solutioninn" target="_blank" rel="noopener nofollow">Student Discount</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>© 2026 SolutionInn. All Rights Reserved</p> </div></footer> <script> window.addEventListener("load",function(){jQuery(document).ready(function(t){ // Clarity tracking (function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); })(window, document, "clarity", "script", "sjv6tuxsok"); // Helper to read a cookie by name function getCookie(name) { return document.cookie .split('; ') .map(v => v.split('=')) .reduce((acc, [k, val]) => (k === name ? decodeURIComponent(val || '') : acc), ''); } // Read cookies var si = getCookie('si_u_id'); var uid = getCookie('u_id'); var zen = getCookie('zenid'); // Send to Clarity if (si) clarity('set', 'si_u_id', si); if (uid) clarity('set', 'u_id', uid); if (zen) clarity('set', 'zenid', zen); clarity('set', 'ip_address', '216.73.216.134'); 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("data-question-open-url"))}),jQuery(".redirection").click(function(){var n=jQuery(this).attr("data-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>