Sha256: 8f6d35f5e4adb7f0e519beb34c6615e8389951c76452302a1e8bac2e90859ebf

Contents?: true

Size: 1.69 KB

Versions: 9

Compression:

Stored size: 1.69 KB

Contents

<!doctype html>
<html lang="en-US">
<head>
  <meta charset="UTF-8">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
  <script src="result_view.js"></script>
  <title>MonkeyTest Result</title>
  <style type="text/css">
      <!--
      .warning {
          color: red;
          font-size: 20px;
      }
      .event_box {
          position: relative;
          display: inline;
      }

      .event_text {
          font-size: 12px;
          position: absolute;
          display: none;
          width: 300px;
          height: 300px;
          padding: 3px;
          border: #000066 groove thick;
          background-color: #ffdead;
          border-radius: 10px;        /* CSS3草案 */
          -webkit-border-radius: 10px;    /* Safari,Google Chrome用 */
          -moz-border-radius: 10px;   /* Firefox用 */
      }

      .event_box:hover .event_text {
          left: 0px;
          display: inline;
          z-index: 10000;
      }
      -->
  </style>
</head>
<body>
<% if crashed %>
  <div class="warning">Application was Crashed!</div>
<% end %>

<p>
  <a href="console.log">console log</a>
  <% if crash_report %>
    | <a href="<%= crash_report %>">crash report</a>
  <% end %>
</p>



<% log_list.each_with_index do |_, i| %>
<div class="event_box"><canvas id="log-<%= i %>"></canvas><div class="event_text" id="text-<%= i %>"></div></div>
<% end %>
<script type="text/javascript">
$(function() {
    MonkeyResult().configure({
        log_list: log_list_json(),
        view_prefix: 'log',
        text_prefix: 'text',
        image_size_rate: 0.7
    }).draw();
})

var log_list_json = function() {
    return <%= log_list_json %>;
}
</script>
</body>
</html>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
crash_monkey-0.3.1 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.3.0 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.2.5 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.2.3 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.2.1 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.2.0 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.1.7 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.1.6 lib/crash_monkey/templates/result.html.erb
crash_monkey-0.1.5 lib/crash_monkey/templates/result.html.erb