public
Description: I eat URLs. RAWRRRRR!
Clone URL: git://github.com/bottlecaplabs/zombieurl.git
zombieurl / app / views / links / show.rhtml
100644 68 lines (53 sloc) 1.367 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<style>
  body {
      overflow:hidden;
  }
 
  #lightbox-image {
    position:absolute;
    bottom: 0;
    height: 500px;
    height: 100%;
  }
  
  #jquery-overlay{
    background-color: none;
  }
  
  .hide{
    display: none;
  }
  
  #lightbox-image {
    bottom:0pt;
    left:auto;
    position:absolute;
    right:25%;
    height:100%;
  }
  
  #jquery-lightbox {
    background-color: none;
  }
  
  #message {
    position:fixed;
    top: 0;
    padding: 20px;
    height: 50px;
/*    padding: 20px;*/
    background-color:#f00;
    text-align:right;
    display: none;
    z-index: 999;
    color: #fff;
  }
  
  #zombiecap{float: left; border: none;}
  
  #message a {color: #000;}
  #message a:hover {color:#fff;}
  
  a#hide-message{
    color:#FFFFFF;
    font-size:12px;
  }
  
</style>
 
 
<iframe src="<%= @link.website_url %>" style="position: fixed; top:0; left:0; width: 100%; height: 100%" frameborder='0' marginheight='0' marginwidth='0' scrolling='auto' class="viewing"></iframe>
 
<script type="text/javascript">
  Zombie.images = <%= ZOMBIE_IMAGES.collect{|i| "/images/zombies/#{i}"}.to_json -%>;
  Zombie.sounds = <%= ZOMBIE_SOUNDS.collect{|i| "/sounds/zombies/#{i}"}.to_json -%>;
  Zombie.mailto_link = '<%= mailto( "Share the terror", "Check out this cool link", "I found this and thought you would find it interesting:\n\n#{@link.permalink}\n\nEnjoy!" ) %>';
  Zombie.spread_url = '<%= @link.permalink %>';
</script>