Skip to content

Commit

Permalink
wtf?
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangenieur committed Dec 15, 2012
2 parents 6ecf9a5 + 14a24d5 commit d99da84
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
4 changes: 3 additions & 1 deletion public/javascripts/hvidio.js
@@ -1,5 +1,5 @@
(function() {
var loader, socket, scroller,
var loader, socket, scroller, counter = 0,
$main = $('#main'),
$form = $('#form'),
$keyword = $('#keyword'),
Expand Down Expand Up @@ -178,6 +178,8 @@
this.embed = this.embed.substr(0, pos);
}

$('#counter').text(counter++);

if (typeof search.initiated == "undefined") {
search.initiated = true;
scroll = false;
Expand Down
17 changes: 12 additions & 5 deletions public/stylesheets/style.css
Expand Up @@ -117,6 +117,14 @@ p.tagline {
width: 32px;
height: 32px;
}
#counter {
color: #5c7a1e;
font-weight: bold;
font-style: italic;
font-size: 30px;
position: absolute;
left: 40px;
}
#close {
position: fixed;
top: 20px;
Expand All @@ -129,9 +137,6 @@ p.tagline {
display: none;
cursor: pointer;
}
.visible {
visibility: visible !important;
}
#results {
height: 0;
position: relative;
Expand All @@ -144,6 +149,7 @@ p.tagline {
position: relative;
}
#results .video {
visibility: hidden;
float: left;
margin: 10px 10px;
min-height: 200px;
Expand Down Expand Up @@ -176,7 +182,7 @@ p.tagline {
#results .video .video-cell .video-wrapper {
display: block;
position: relative;
height: 150px;
height: 140px;
}
#results .video .video-cell .tip {
background: #99cc32;
Expand Down Expand Up @@ -206,6 +212,7 @@ p.tagline {
font: bold 11px/1.8 Arial;
color: #FFF;
text-shadow: 0px 1px 1px black;
margin-top: 10px;
}
#results .video .video-cell .video-meta h5 {
font-weight: bold;
Expand All @@ -227,7 +234,7 @@ p.tagline {
}
#results .video .video-cell img.preview {
width: 210px;
height: 150px;
height: 140px;
border: 1px solid gray;
box-shadow: 0px 5px 30px black;
}
22 changes: 16 additions & 6 deletions public/stylesheets/style.less
Expand Up @@ -139,6 +139,15 @@ p.tagline {
height: 32px;
}

#counter {
color: darken(@color-main, 20);
font-weight: bold;
font-style: italic;
font-size: 30px;
position: absolute;
left: 40px;
}

#close {
position: fixed;
top: 20px;
Expand All @@ -152,9 +161,9 @@ p.tagline {
cursor: pointer;
}

.visible {
visibility: visible !important;
}
// .visible {
// visibility: visible !important;
// }

#results {
height: 0;
Expand All @@ -169,7 +178,7 @@ p.tagline {
}

.video {

visibility: hidden;
float: left;
margin: 10px 10px;
min-height: @cell-height;
Expand Down Expand Up @@ -206,7 +215,7 @@ p.tagline {
.video-wrapper {
display: block;
position: relative;
height: 150px;
height: 140px;
}

.tip {
Expand Down Expand Up @@ -251,6 +260,7 @@ p.tagline {
font: bold 11px/1.8 Arial;
color: #FFF;
text-shadow: 0px 1px 1px black;
margin-top: 10px;

h5 {
font-weight: bold;
Expand Down Expand Up @@ -278,7 +288,7 @@ p.tagline {

img.preview {
width: 210px;
height: 150px;
height: 140px;
border: 1px solid gray;
box-shadow: 0px 5px 30px black;
}
Expand Down
1 change: 1 addition & 0 deletions views/index.jade
Expand Up @@ -19,6 +19,7 @@ block content
div#results

div#loading
div#counter

div#close

Expand Down

0 comments on commit d99da84

Please sign in to comment.