Permalink
Browse files

Random

  • Loading branch information...
Cosmo committed Oct 21, 2012
1 parent 7e40dfe commit 957dd1b55a4b7fb1670d9e9fe3db0d2efa2c197c
View
BIN .DS_Store
Binary file not shown.
@@ -34,11 +34,11 @@
$('<div class="comment-entry" id="comment_'+comment_id +'">'+
'<span class="image"><img src="https://graph.facebook.com/' +
$(element).attr("data-uid") +
- '/picture/" style="float:left; margin-right:5px;" /></span><span class="name">'+
+ '/picture/" style="float:left; margin-right:5px;" /></span><span class"bubble"><span class="name">'+
$(element).attr("data-name")+
'</span><span class="message">' +
$(element).attr("data-text") +
- '</span></div>').appendTo(entries);
+ '</span></span></div>').appendTo(entries);
}
}
@@ -7,9 +7,11 @@ $(document).ready(function(){
$("#infocard").slideUp(400);
$("#video-trigger-minified").css({"background-color" : "#ff4300"});
$("#info-trigger-minified").css({"background-color" : "#222"});
+ $("object").get(0).playVideo();
} else {
$("#video").animate({"margin-top" : "-323px"}, 300, 'swing');
$("#video-trigger-minified").css({"background-color" : "#222"});
+ $("object").get(0).pauseVideo();
}
});
@@ -18,6 +20,7 @@ $(document).ready(function(){
$("#infocard").slideUp(400);
$("#video-trigger-minified").css({"background-color" : "#ff4300"});
$("#info-trigger-minified").css({"background-color" : "#222"});
+ $("object").get(0).playVideo();
});
$("#info-trigger-minified").click(function() {
@@ -30,5 +33,6 @@ $(document).ready(function(){
$("#infocard").slideUp('fast');
$("#info-trigger-minified").css({"background-color" : "#222"});
}
+ $("object").get(0).pauseVideo();
});
});
@@ -37,12 +37,12 @@
.controlDiv{
/* Centering the control div */
position:absolute;
- width:120px;
- height:120px;
+ width:570px;
+ height:300px;
cursor:pointer;
top:50%;
left:50%;
- margin:-60px 0 0 -60px;
+ margin:-170px 0 0 -285px;
}
/*
@@ -83,13 +83,4 @@
}
#members {
-}
-
-#members li {
- width: 44px;
- height: 44px;
- background-color: green;
- margin-right: 4px;
- display: inline-block;
- overflow: hidden;
}
@@ -196,39 +196,76 @@ body.ui
#comment-entries
float: left
+ width: 324px
+ margin-top: 20px
.comment-entry
float: left
- width: 564px
+ width: 100%
margin-left: 20px
margin-bottom: 10px
+ background: red
.image
width: 50px
height: 50px
background: #fff
float: left
- @include border-radius(25px)
@include box-shadow(rgba(0,0,0,.8) 0 2px 8px)
img
- width: 44px
- height: 44px
+ width: 46px
+ height: 46px
float: left
- margin: 3px
- @include border-radius(22px)
+ margin: 2px 16px 2px 2px
- .name
- color: #fff
+ .bubble
+ @include background-image(linear-gradient(#f6f6f6, #c8c8c8))
+ width: 20px
float: left
- margin: 8px 0 0 12px
- width: 486px
+ background: yellow
+
+ .name
+ color: #fff
+ float: left
+ margin: 8px 0 0 12px
+
+ .message
+ color: #222
+ float: left
+ margin: 0 0 0 12px
+
+ #members
+ float: left
+ width: 160px
+ background: #222
+ padding: 10px 20px
+ margin-top: 4px
+
+ p
+ color: #fff
+ margin-bottom: 10px
+
+ li
+ float: left
+ margin-bottom: 10px
- .message
- color: #222
+ .time
+
+ .name
+
+ .profile
+ width: 50px
+ height: 50px
+ background: #fff
float: left
- margin: 0 0 0 12px
- width: 486px
+ @include box-shadow(rgba(0,0,0,.8) 0 2px 8px)
+
+ img
+ width: 46px
+ height: 46px
+ float: left
+ margin: 2px
#column_left
width: 220px
@@ -254,22 +291,32 @@ body.ui
z-index: 0
overflow: hidden
+ .bookmark
+ width: 12px
+ height: 14px
+ background: image-url("ui/bookmark-default-minified.png")
+ position: absolute
+ top: 0
+ right: 6px
+ z-index: 40
+
+ .arte7
+ width: 29px
+ height: 11px
+ background: image-url("ui/arte7.png")
+ position: absolute
+ bottom: 6px
+ right: 6px
+ z-index: 40
+
.sidebar-video
width: 180px
@include background-image(linear-gradient(#f6f6f6, #c8c8c8))
padding: 10px 20px
float: left
color: $orange
margin-bottom: 4px
-
- .arte7
- width: 12px
- height: 12px
- background: image-url("ui/arte7.png")
- position: absolute
- top: 157px
- left: 5px
- z-index: 40
+ position: relative
.sidebar-title
margin-bottom: 4px
@@ -300,24 +347,6 @@ body.ui
h3
color: #ccc
- .bookmark
- width: 12px
- height: 14px
- background: image-url("ui/bookmark-default-minified.png")
- position: absolute
- top: 0
- right: 10px
- z-index: 40
-
- .arte7
- width: 29px
- height: 11px
- background: image-url("ui/arte7.png")
- position: absolute
- top: 0
- left: 0
- z-index: 40
-
.sidebar-video-minified:hover
@include background-image(linear-gradient(#f6f6f6, #c8c8c8))
@@ -383,6 +412,6 @@ body.ui
@include border-radius(18px)
float: right
background: #3B5998
- display: inline-block
border: none
+ font-size: 12px
margin: 9px 9px 9px 0
Binary file not shown.
View
@@ -0,0 +1,57 @@
+#!/bin/sh
+#usage BID email flag_set_reminder flag_set_rebroadcast flag_one_day_before flag_on_day flag_two_hours_before flag_arteplus7
+set -e
+set -x
+
+BID=${1:?"need bid as first param"}
+EMAIL=${2:?"need urlencoded email adress as second param"}
+FLAG_REMINDER=${3:-true}
+FLAG_REBROADCAST=${4:-true}
+FLAG_ONEDAYBEFORE=${5:-false}
+FLAG_ONDAY=${6:-false}
+FLAG_TWOHOURS=${7:-false}
+FLAG_ARTE7P=${8:-true}
+
+BASEURL='http://www.arte.tv'
+URL_PATHS="$(curl --silent "http://www.arte.tv/de/program/244,broadcastingNum=${BID},day=2,week=43,year=2012,CmPart=com.arte-tv.www.html" | grep 'var uri_re.*_revoir_' | sed 's:^.* = "\([^"]*\)";.*$:\1:')" || true
+
+
+for path in $URL_PATHS; do
+ case $path in
+ *Erinnerung*)
+ URL_REMINDER=$path
+ ;;
+ *Wiederholung*)
+ URL_REBROADCAST=$path
+ esac
+done
+
+have_reminder() {
+ test -n "$URL_REMINDER";
+}
+
+have_rebroadcast() {
+ test -n "$URL_REBROADCAST";
+}
+
+
+set_reminder() {
+ local email="${1:-test%40domain}"
+ local one_day_ahead="${2:-true}"
+ local on_day="${3:-true}"
+ local two_hours_before="${4:-true}"
+ local arteplus7="${5:-true}"
+ have_reminder && curl --silent -d 'method=get' -d "email=$email" -d "time1=$one_day_ahead" -d "time2=$on_day" -d "time3=$two_hours_before" -d "artePlus7=$arteplus7" -d 'process=false' "${BASEURL}${URL_REMINDER}" > /dev/null 2>&1
+}
+
+set_rebroadcast() {
+ local email="${1:-test%40domain}"
+ have_rebroadcast && curl --silent -d 'method=get' -d "email=$email" -d 'process=false' "${BASEURL}${URL_REBROADCAST}" > /dev/null 2>&1
+}
+
+#set -x
+test "true" = "${FLAG_REMINDER}" && { set_reminder "${EMAIL}" "${FLAG_ONEDAYBEFORE}" "${FLAG_ONDAY}" "${FLAG_TWOHOURS}" "${FLAG_ARTE7P}" && echo "reminder set" || echo "ERROR reminder"; }
+
+test "true" = "${FLAG_REBROADCAST}" && { set_rebroadcast "${EMAIL}" && echo "rebroadcast set" || echo "ERROR rebroadcast" ; }
+
+#set +x

0 comments on commit 957dd1b

Please sign in to comment.