Skip to content

Commit

Permalink
improved spidering
Browse files Browse the repository at this point in the history
  • Loading branch information
tlossen committed Dec 17, 2009
1 parent a5fe204 commit abc123c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 48 deletions.
46 changes: 0 additions & 46 deletions files.txt

This file was deleted.

2 changes: 1 addition & 1 deletion spider.sh → generate_www.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
wget -r -i files.txt
wget -r http://localhost:8000
cp -r localhost\:8000/* www
rm -rf localhost\:8000
cp www/charts/eu-west-1.linux.m1.small.html www/index.html
12 changes: 11 additions & 1 deletion views/chart.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
h3 { font-size: 110%; }
.navigation { margin-top: 2em; }
.footer { margin-top: 4em; font-size: 70%; text-align: right; }
.invisible { display: none; }
</style>
</head>

Expand All @@ -28,7 +29,6 @@
<div class="clear"></div>

<div class="grid_8">

<script type="text/javascript" src="/amstock/swfobject.js"></script>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
Expand All @@ -41,6 +41,10 @@
so.addVariable("preloader_color", "#999999");
so.write("flashcontent");
</script>

<p>
<a href="/data/<%= @which %>.csv">download data</a>
</p>
</div>

<% @regions.each do |region| %>
Expand Down Expand Up @@ -75,6 +79,12 @@

</div>

<div class="invisible">
<a href="/charts/<%= @which %>.xml">settings</a>
<a href="/favicon.ico">favicon</a>
<a href="/amstock/amstock.swf">flash</a>
</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
Expand Down

0 comments on commit abc123c

Please sign in to comment.