Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
gaarf committed Aug 1, 2010
1 parent e2e6f55 commit 2d269eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions Rakefile
Expand Up @@ -13,6 +13,12 @@ class LineCommands
compressor.compress(file.read)
end

def include(line, path)
puts " - INCLUDE #{path}"
file = File.new(path)
file.read
end

def inline(line,a)
return line unless path = line[/(link rel="stylesheet"|script).*(href|src)="([^"]+)"/i,3]
case extract_suffix(path)
Expand Down
9 changes: 2 additions & 7 deletions index.html
Expand Up @@ -15,7 +15,7 @@
<link rel="stylesheet" type="text/css" href="style.css" /> <!-- ### RAKE inline ### -->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://platform.twitter.com/anywhere.js?id=6OBf6rxxfj8QrWs5T3tHw&amp;v=1"></script>
<script type="text/javascript" src="http://platform.twitter.com/anywhere.js?id=6OBf6rxxfj8QrWs5T3tHw&amp;v=1"></script> <!-- use your own!-->

<script type="text/javascript" src="lib/jqDnR-touch/jqdnr.js"></script> <!-- ### RAKE inline ### -->
<script type="text/javascript" src="grfModuleSet.js"></script> <!-- ### RAKE inline ### core page code -->
Expand Down Expand Up @@ -55,12 +55,7 @@ <h1>Hi, I'm Adrien, maker of browser stuffs.</h1>
</noscript>
<ul id="modules"></ul>

<div class="adsense banner">
<script type="text/javascript"><!-- /* 728x90, created 7/31/10 */
google_ad_client = "pub-5820903865687837"; google_ad_slot = "4413408909";
google_ad_width = 728; google_ad_height = 90; //--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<!-- ### RAKE include google.inc.html ### -->

</body>
</html>
3 changes: 3 additions & 0 deletions style.css
Expand Up @@ -8,6 +8,9 @@ body {
}
.adsense {
text-align:center;
background-color:white;
border:1px inset gray;
margin:0 5px;
}
strong {
font-weight:bold;
Expand Down

0 comments on commit 2d269eb

Please sign in to comment.