1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- @()
- <!DOCTYPE html>
- <html ng-app="taboo">
- <head>
- <title>Game n' Chat</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" media="screen" href="@routes.Assets.at("components/bootstrap/dist/css/bootstrap.min.css")">
- <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
- <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
- </head>
- <body ng-controller="ViewCtrl">
- <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
- <div class="container">
- <div class="navbar-header">
- <span class="brand navbar-brand">Game n' Chat</span>
- </div>
- <ul class="nav navbar-nav collapse navbar-collapse ng-cloak">
- <li ng-repeat="li in nav" class="{{li.partial == view ? 'active' : ''}}">
- <a href ng-click="setView(li.partial)">{{li.name}}</a>
- </li>
- </ul>
- <div class="navbar-right collapse navbar-collapse ng-cloak" ng-controller="LoginCtrl">
- <p class="navbar-text" ng-show="!service.isConnected() && view != 'chatRoom'">
- <a href class="navbar-link" ng-click="setView('chatRoom')">Play!</a>
- </p>
- <p class="navbar-text" ng-show="service.isConnected()">
- Logged in as {{service.username}} —
- <a href class="navbar-link" ng-click="service.disconnect()">Disconnect</a>
- </p>
- </div>
- </div>
- </nav>
- <div class="container">
- <div class="content" ng-include="partial(view)"> </div>
- <hr>
- <footer>
- <p><a href="http://twitter.com/pleasantprog" target="_blank">@@pleasantprog</a></p>
- </footer>
- </div>
- <script src="@routes.Application.javascriptRoutes" type="text/javascript"></script>
- <script src="@routes.Assets.at("components/jquery/jquery.min.js")" type="text/javascript"></script>
- <script src="@routes.Assets.at("components/angular/angular.min.js")" type="text/javascript"></script>
- <script src="@routes.Assets.at("javascripts/chatServices.js")" type="text/javascript"></script>
- <script src="@routes.Assets.at("javascripts/tabooServices.js")" type="text/javascript"></script>
- <script src="@routes.Assets.at("javascripts/main.js")" type="text/javascript"></script>
- </body>
- </html>
|