%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/jHackHistory/ROOT/
Upload File :
Create Path :
Current File : //home/waritko/jHackHistory/ROOT/index.jsp

<%@ page import="net.varak.HackHistory.model.HackProvider" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    // Create XSRF cookie
    Cookie xsrfCookie = new Cookie("WHH-XSRF-Token", java.util.UUID.randomUUID().toString());

    // Set expiry date after 7 days for both the cookies.
    xsrfCookie.setMaxAge(60*60*24*7);

    // Add both the cookies in the response header.
    response.addCookie(xsrfCookie);
%>
<!DOCTYPE html>
<html lang="en" data-ng-app="hackHistoryApp">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="./static/ingress.svg">

    <title>Hack History</title>

    <!-- Bootstrap core CSS -->
    <link href="./static/css/bootstrap.min.css" rel="stylesheet">

    <!-- My Design CSS -->
    <link href="./static/css/design.css" rel="stylesheet">


    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="./static/js/ie10-viewport-bug-workaround.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var pageLen = <%=HackProvider.PAGE_SIZE%>;
    </script>
</head>

<body data-ng-controller="HackHistoryCtrl">

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Hack History</a>
        </div>
        <div class="navbar-collapse collapse">
            <div class="navbar-right">
                <span data-ng-if="showPrev" data-ng-click="prevPage()" id="get-prev-page" class="btn btn-success">Previous</span>
                <span data-ng-click="reloadPage()" id="reload-page" class="btn btn-info">Reload</span>
                <span data-ng-if="showNext" data-ng-click="nextPage()" id="get-next-page" class="btn btn-success">Next</span>
            </div>
        </div>
    </div>
</div>
<div style="height: 50px;"></div>

<div class="container">
    <!-- Example row of columns -->
    <div id="rows-end" data-ng-repeat="hack in hacks">
        <div class="row">
            <h4>{{formatDate(hack.serverDate)}}</h4>
            <table width="95%" style="margin-left: auto; margin-right: auto; border: 0;">
                <tbody>
                    <tr>
                        <td width="50%">AP Gain: {{hack.apGained}}</td>
                        <td width="40%">Items gained: {{getItemCount(hack.hackItems)}}</td>
                        <td width="10%"><span style="font-size: 75%; color: silver; float: right;">&#22;{{hack.id}}</span></td>
                    </tr>
                    <tr data-ng-if="hack.glyphBonus">
                        <td width="50%">Base items gained: {{getItemCount(hack.baseHackItems)}}</td>
                        <td width="40%">Bonus items gained: {{getItemCount(hack.bonusHackItems)}}</td>
                        <td width="10%">&nbsp;</td>
                    </tr>
                </tbody>
            </table>
            <div style="height: 0.2em;"></div>
            <div style="margin-left: auto; margin-right: auto; border: 0; width: 95%;">
                <div style="width: 50%" data-ng-repeat="item in hack.hackItems" data-ng-class-even="'dept-right'" data-ng-class-odd="'dept-left'">
                    <span class="item-level-{{item.level}}" data-ng-if="item.level > 0">L{{item.level}} </span>
                    <span class="item-rarity-{{item.itemRarity.replace('_', '-').toLowerCase()}}">{{getItemType(item.itemType)}}</span>
                    <span class="item-count" data-ng-if="item.count > 1"> x{{item.count}}</span>
                </div>
            </div>
            <div style="clear: both;"></div>
            <div data-ng-if="hack.glyphBonus">
                <span class="btn btn-success btn-xs {{hack.style ? hack.style : 'glyphicon glyphicon-zoom-in'}}" style="float: right; margin-right: 2em; font-size: 1em;" data-ng-click="showDetail(hack.id)"></span>
                <div style="clear: both;"></div>
                <div data-ng-if="hack.showBonus">
                    <div style="width: 95%; margin-right: auto; margin-left: auto;">
                        <h4>Base items</h4>
                        <div style="width: 50%" data-ng-repeat="item in hack.baseHackItems" data-ng-class-even="'dept-right'" data-ng-class-odd="'dept-left'">
                            <span class="item-level-{{item.level}}" data-ng-if="item.level > 0">L{{item.level}} </span>
                            <span class="item-rarity-{{item.itemRarity.replace('_', '-').toLowerCase()}}">{{getItemType(item.itemType)}}</span>
                            <span class="item-count" data-ng-if="item.count > 1"> x{{item.count}}</span>
                        </div>
                    </div>
                    <div style="clear: both;"></div>
                    <div style="width: 95%; margin-right: auto; margin-left: auto;">
                        <h4>Bonus items</h4>
                        <div style="width: 50%" data-ng-repeat="item in hack.bonusHackItems" data-ng-class-even="'dept-right'" data-ng-class-odd="'dept-left'">
                            <span class="item-level-{{item.level}}" data-ng-if="item.level > 0">L{{item.level}} </span>
                            <span class="item-rarity-{{item.itemRarity.replace('_', '-').toLowerCase()}}">{{getItemType(item.itemType)}}</span>
                            <span class="item-count" data-ng-if="item.count > 1"> x{{item.count}}</span>
                        </div>
                    </div>
                    <div style="clear: both;"></div>
                </div>
            </div>
        </div>
    </div>
    <hr>

    <footer>
        <p>&copy; Waritko 2014</p>
    </footer>
</div>
<!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./static/js/stringformat.min.js"></script>
<script src="./static/js/jquery-1.11.1.min.js"></script>
<script src="./static/js/bootstrap.min.js"></script>
<script src="./static/js/angular.min.js"></script>
<script src="./static/js/controllers.js"></script>
</body>
</html>

Zerion Mini Shell 1.0