UNPKG

micro-app

Version:

(<5kb) [📱iOS] Create Progressive Web App Dynamically.

109 lines (96 loc) • 4.94 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>2048</title> <link href="http://gabrielecirulli.github.io/2048/style/main.css" rel="stylesheet" type="text/css"> <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1, user-scalable=no, minimal-ui"> </head> <body> <div class="container"> <div class="heading"> <h1 class="title">2048</h1> <div class="scores-container"> <div class="score-container">0</div> <div class="best-container">0</div> </div> </div> <div class="above-game"> <p class="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p> <a class="restart-button">New Game</a> </div> <div hidden class="app-notice"><span class="notice-close-button">x</span></div> <div class="game-container"> <div class="game-message"> <p></p> <div class="lower"> <a class="keep-playing-button">Keep going</a> <a class="retry-button">Try again</a> <div class="score-sharing"></div> <div class="mailing-list"> <!-- MailChimp Signup Form --> <form action="http://gabrielecirulli.us8.list-manage.com/subscribe/post?u=991201206817cfb4e4247ed6c&amp;id=7928ea817b" method="post" name="mc-embedded-subscribe-form" class="mailing-list-form" target="_blank"> <strong>Get email updates from Gabriele</strong> <input type="email" value="" name="EMAIL" class="mailing-list-email-field" placeholder="Your email address" spellcheck="false"> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> <div style="position: absolute; left: -9999px;"> <input type="text" name="b_991201206817cfb4e4247ed6c_7928ea817b" value=""> </div> <input type="submit" value="Go" name="subscribe" class="mailing-list-subscribe-button"> </form> </div> </div> </div> <div class="grid-container"> <div class="grid-row"> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> </div> <div class="grid-row"> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> </div> <div class="grid-row"> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> </div> <div class="grid-row"> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> <div class="grid-cell"></div> </div> </div> <div class="tile-container"> </div> </div> <p class="game-explanation"> <strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two tiles with the same number touch, they <strong>merge into one!</strong> </p> <hr> <p> <strong class="important">Note:</strong> The game on <a href="http://git.io/2048">this site</a> is the original version of 2048. Apps for <a href="https://itunes.apple.com/us/app/2048-by-gabriele-cirulli/id868076805" target="_blank">iOS</a> and <a href="https://play.google.com/store/apps/details?id=com.gabrielecirulli.app2048" target="_blank">Android</a> are also available. Other versions are derivatives or fakes, and should be used with caution. </p> <hr> <p> Created by <a href="http://gabrielecirulli.com" target="_blank">Gabriele Cirulli.</a> Based on <a href="https://itunes.apple.com/us/app/1024!/id823499224" target="_blank">1024 by Veewo Studio</a> and conceptually similar to <a href="http://asherv.com/threes/" target="_blank">Threes by Asher Vollmer.</a> </p> </div> <script src="http://gabrielecirulli.github.io/2048/js/bind_polyfill.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/classlist_polyfill.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/animframe_polyfill.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/keyboard_input_manager.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/html_actuator.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/grid.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/tile.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/local_storage_manager.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/game_manager.js"></script> <script src="http://gabrielecirulli.github.io/2048/js/application.js"></script> </body> </html>