Question: Please do task one. All instructions are written below. Code is java. Thanks! import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import javax.swing.*; /** * * ==========================================================================

Please do task one. All instructions are written below. Code is java. Thanks!

import java.awt.*;

import java.awt.event.*;

import java.util.ArrayList;

import javax.swing.*;

/**

*

* ==========================================================================

* CODING INSTRUCTIONS!

* ==========================================================================

*

*

<code><pre></strong></p> <p><strong>*</strong></p> <p><strong>* Task 0:</strong></p> <p><strong>* compile and run SnakeGame as a Java Application.</strong></p> <p><strong>*</strong></p> <p><strong>* Task 1: (in class Snake)</strong></p> <p><strong>* create a class called Snake in a separate Java source file.</strong></p> <p><strong>* import java.awt.*;</strong></p> <p><strong>*</strong></p> <p><strong>* required fields (or instance variables):</strong></p> <p><strong>* int size, direction, bodyAdd;</strong></p> <p><strong>* Rectangle head;</strong></p> <p><strong>* ArrayList<rectangle>body;</strong></p> <p><strong>* ArrayList<integer>directionQ;</strong></p> <p><strong>* (note: look up Rectangle in the Java Documentation for more information)</strong></p> <p><strong>* write a default constructor for the Snake Object</strong></p> <p><strong>* size is 20 (the number of pixels for each Snake piece)</strong></p> <p><strong>* direction is 8 (8 is up, 2 down, 4 left, and 6 right.. look at numpad)</strong></p> <p><strong>* bodyAdd is 4 (4 body pieces will be initially added to the Snake</strong></p> <p><strong>* head is a Rectangle that is 20x20 and</strong></p> <p><strong>* is located in the approximate center of the window (i.e. coordinates (300,300))</strong></p> <p><strong>* remember to initialize body and directionQ to new ArrayLists</strong></p> <p><strong>* write method: public void draw(Graphics2D g)</strong></p> <p><strong>* that will render the head of Snake ..use g.draw(head)</strong></p> <p><strong>* and the body of Snake (use a for-loop)</strong></p> <p><strong>*</strong> /</p> <p><strong>public class SnakeGame extends JPanel implements</strong></p> <p><strong> KeyListener, ActionListener {</strong></p> <p><strong> // DECLARE ALL INSTANCE VARIABLES HERE..</strong></p> <p><strong> //private Snake snake;</strong></p> <p><strong> //private Rectangle nibble;</strong></p> <p><strong> private int frameCount;// used for the score</strong></p> <p><strong> private String title = "~~ Snake Game Clone ~~ "</strong></p> <p><strong> + "CONTROLS: arrows = move, r = restart .. ..........";</strong></p> <p><strong> public static final Rectangle border = new Rectangle(0,0,600,600);//size of JPanel</strong></p> <p><strong> private Timer clock;// handles animation</strong></p> <p><strong> private Image offScreenBuffer;// needed for double buffering graphics</strong></p> <p><strong> private Graphics offScreenGraphics;// needed for double buffering graphics</strong></p> <p><strong> </strong></p> <p><strong> /**</strong></p> <p><strong> * main method needed for initialize the game window</strong></p> <p><strong> * .. THIS METHOD SHOULD NOT BE MODIFIED! .. </strong></p> <p><strong> */</strong></p> <p><strong> public static void main(String[] args) {</strong></p> <p><strong> JFrame window = new JFrame("Snake Game Clone");</strong></p> <p><strong> window.setBounds(100, 100, border.width + 7, border.height + 27);//inside Frame will be 600x600</strong></p> <p> <strong> window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);</strong></p> <p> <strong> window.setResizable(false);</strong></p> <p><strong> SnakeGame game = new SnakeGame();</strong></p> <p> <strong> game.setBackground(Color.WHITE);</strong></p> <p> <strong> window.getContentPane().add(game);</strong></p> <p> <strong> window.setVisible(true);</strong></p> <p><strong> game.init();</strong></p> <p> <strong> window.addKeyListener(game);</strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * init() is needed to override the init in JApplet. </strong></p> <p><strong> * THIS METHOD SHOULD NOT BE MODIFIED! .. </strong></p> <p><strong> * you should write all necessary initialization code in initRound()</strong></p> <p><strong> */</strong></p> <p><strong> public void init() {</strong></p> <p><strong>System.out.println(getWidth() + " , " + getHeight());</strong></p> <p><strong> offScreenBuffer = createImage(getWidth(), getHeight());// should be 600x600</strong></p> <p><strong> offScreenGraphics = offScreenBuffer.getGraphics();</strong></p> <p><strong> initRound();</strong></p> <p><strong> clock = new Timer(100, this);// timer fires every 100 milliseconds</strong></p> <p><strong> // ............................and invokes method actionPerformed()</strong></p> <p><strong> // INITIALIZE ALL SOUNDS AND IMAGE VARIABLES HERE...</strong></p> <p><strong> </strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * initializes all fields needed for each round of play (i.e. restart)</strong></p> <p><strong> */</strong></p> <p><strong> public void initRound() {</strong></p> <p><strong> frameCount = 0;</strong></p> <p><strong> </strong></p> <p><strong> // YOUR CODE GOES HERE..</strong></p> <p><strong> // initialize game Objects like Snake</strong></p> <p><strong> </strong></p> <p><strong> </strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * Called automatically after a repaint request </strong></p> <p><strong> * .. THIS METHOD SHOULD NOT BE MODIFIED! .. </strong></p> <p><strong> * you should write all necessary rendering code in method draw()</strong></p> <p><strong> */</strong></p> <p><strong> public void paint(Graphics g) {</strong></p> <p><strong> draw((Graphics2D) offScreenGraphics);</strong></p> <p><strong> g.drawImage(offScreenBuffer, 0, 0, this);</strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * renders all objects to Graphics g (i.e. the window)</strong></p> <p><strong> */</strong></p> <p><strong> public void draw(Graphics2D g) {</strong></p> <p><strong> super.paint(g);// refresh the background</strong></p> <p> <strong> g.setColor(Color.BLACK);</strong></p> <p><strong> g.drawString(title, 100, 20);// draw the title towards the top</strong></p> <p><strong> g.drawString("timer: " + frameCount, 280, 100);// approximate middle</strong></p> <p><strong> // YOUR CODE GOES HERE..</strong></p> <p><strong> // render all game objects here</strong></p> <p><strong> </strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * Called automatically when the timer fires </strong></p> <p><strong> * this is where all the game Objects will be updated</strong></p> <p><strong> */</strong></p> <p><strong> public void actionPerformed(ActionEvent e) {</strong></p> <p><strong> //snake.move();</strong></p> <p><strong> </strong></p> <p><strong> // YOUR CODE GOES HERE..</strong></p> <p><strong> </strong></p> <p><strong>frameCount++;// used for the score</strong></p> <p><strong> repaint();// needed to refresh the animation</strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * handles any key pressed events and updates the player's direction by</strong></p> <p><strong> * setting their direction to either 1 or -1 for right or left respectively</strong></p> <p><strong> * and updates their jumping status by invoking jump()</strong></p> <p><strong> */</strong></p> <p><strong> public void keyPressed(KeyEvent e) {</strong></p> <p><strong>int keyCode = e.getKeyCode();</strong></p> <p><strong>if (keyCode == KeyEvent.VK_LEFT) {</strong></p> <p><strong>//snake.setDirection(4);</strong></p> <p><strong>} //else if (keyCode == KeyEvent.VK_RIGHT) {</strong></p> <p><strong> </strong></p> <p><strong>// YOUR CODE GOES HERE..</strong></p> <p><strong>// more else if statements for all four directions</strong></p> <p><strong>// and any other keystrokes to handle</strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * handles any key released events and restarts the game if</strong></p> <p><strong> * the Timer is not running and user types 'r'</strong></p> <p><strong> */</strong></p> <p><strong> public void keyReleased(KeyEvent e) {</strong></p> <p><strong>int keyCode = e.getKeyCode();</strong></p> <p><strong>if (keyCode == KeyEvent.VK_R && !clock.isRunning()) {</strong></p> <p><strong>clock.start();</strong></p> <p><strong>initRound();</strong></p> <p><strong>} </strong></p> <p><strong> </strong></p> <p><strong> }</strong></p> <p><strong> /**</strong></p> <p><strong> * leave empty.. needed for implementing interface KeyListener</strong></p> <p><strong> */</strong></p> <p><strong> public void keyTyped(KeyEvent e) {</strong></p> <p><strong> }</strong></p> <p> </p> <p><strong>}// end class SnakeGame</strong></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/please-do-task-one-all-instructions-are-written-below-code-13651052" > Please do task one. All instructions are written below. Code is java. Thanks! If there is too much for one question, can you just do the max and let me know what bullet point you ended on? import... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/import-javaawt-import-javaawtevent-import-javautilarraylist-import-javaxswing-13193287" > import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import javax.swing.*; /** * * ========================================================================== * CODING INSTRUCTIONS!... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/need-code-java-that-allows-the-user-to-choose-the-13731236" > Need code (java) that allows the user to choose the color of the snake (red, green, blue). The two classes that are part of the game are listed below. Please highlight any changes made. Thanks! Class... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/in-java-please-these-are-the-concentrationjava-and-drawingpaneljava-of-13683627" > In Java Please These are the Concentration.java and DrawingPanel.java. Of a photo is blurry or hard to read please comment and I'll retake it. Thanks! The goal of this project is to implement:a... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/lab-7-random-walks-the-randomwalk-class-task-simulate-a-12267355" > Lab 7: Random Walks The RandomWalk Class Task Simulate a random walk using a Graphics object. Ask the user for information. Similar to previous programs, your program should start by printing Lab 7... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/help-to-implement-the-solitaire-napoleon-s-grave-in-java-9290098" > Help to implement the solitaire: Napoleon s Grave in Java. Each time the player draws a card from the deck, put it on the throw pile. On each turn, the player ( if he or she wishes ) may take a card... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/lab-5-drawing-and-comparing-circles-the-circles-class-objectives-9110231" > Lab 5: Drawing and Comparing Circles The Circles Class Objectives Call methods with parameters and return values. Use the DrawingPanel and Graphics classes. Use if statements to control return values... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/please-modify-the-java-code-modify-the-java-code-of-13638918" > PLEASE MODIFY THE JAVA CODE: Modify the java code of stopwatch (given below) to make a horizontal stopwatch. The picture of a horizontal stop watch is attached below, which displays time in a single... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/drawingpaneljava-code-stuart-reges-and-marty-stepp-february-24-9499053" > drawingpanel.java -code /* Stuart Reges and Marty Stepp February 24, 2007 Changes by Tom Bylander in 2010 (no anti-alias, repaint on sleep) Changes by Tom Bylander in 2012 (track mouse clicks and... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/hey-guys-i-am-having-trouble-getting-my-table-to-15188326" > Hey guys I am having trouble getting my table to work with a java GUI if anything you can take a look at my code and see where I am going wrong with lines 38-49 it would be greatly appreciated! Under... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/an-important-reaction-in-the-commercial-production-of-hydrogen-is" > An important reaction in the commercial production of hydrogen is CO(g) + H2O(g) H2(g) + CO2(g) How will this system at equilibrium shift in each of the five following cases? a. Gaseous carbon... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/the-following-data-is-taken-from-the-accounting-records-of-279659" > The following data is taken from the accounting records of Mumtaz Industries: 1. Purchase of Raw Material on account Rs. 160,000. 2. Raw Material Account showed a Debit Balance of Rs. 20,000 on Dec... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/rand-inc-has-a-beta-of-12-the-company-has-27899558" > Rand Inc. has a beta of 1.2. The company has just paid a quarterly dividend of $0.33. Rand's dividends will grow by 4% for the next 4 quarters, and then grow by 1.3% thereafter. The risk-free rate is... </a> </div> <div class="relatedQuestionCart "> <p class="heading">Q: </p> <a class="relatedQuestionText" href="/study-help/questions/a-company-is-preparing-completing-their-cash-budget-the-following-11607153" > A company is preparing completing their Cash Budget. The following data has been prepared for cash receipts and payments. January February March Cash receipts $1,061,200 $1,182,400 $1,091,700 Cash... </a> </div> </div> <nav class="navigationButtons"> <a class="previousQuestionButton" href="/study-help/questions/suppose-a-company-builds-two-similar-systems-using-a-large-17381441">Previous Question</a> <a class="nextQuestionButton" href="/study-help/questions/you-should-explain-the-ethics-of-your-student-forum-like-17381443">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/concepts-of-database-management-7th-editoin-671"> <img src="https://dsd5zvtm8ll6.cloudfront.net/si.question.images/book_images/671.jpg" width="100" height="131" alt="Concepts of Database Management" loading="lazy" style="width: 100px !important;"> </a> <a href="/textbooks/computer-science-slip-2591" 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/concepts-of-database-management-7th-editoin-671" style="text-align: left;"> Concepts of Database Management </a> </span> <div class="bookMetaInfo" style="text-align: left;"> <p class="bookAuthor" style="text-align: left;"> <b>Authors:</b> <span>Philip J. Pratt, Joseph J. Adamski</span> </p> <p class="bookEdition" style="text-align: left;"> 7th edition </p> <p class="bookEdition" style="text-align: left;"> 978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591 </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=17381442&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>&copy; 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>