indiancine.ma home screen: make byline clickable; update pad.ma home screen

This commit is contained in:
rolux 2013-02-20 01:15:37 +05:30
parent 30013931bf
commit cd4c7b62a1
2 changed files with 14 additions and 6 deletions

View file

@ -68,13 +68,13 @@ pandora.ui.home = function() {
margin: '0 auto 0 auto', margin: '0 auto 0 auto',
cursor: 'pointer' cursor: 'pointer'
}) })
.on({ .bindEvent({
click: function() { anyclick: function() {
$browseButton.triggerEvent('click'); $browseButton.triggerEvent('click');
} }
}) })
.appendTo($box), .appendTo($box),
$line = $('<img>') $line = Ox.Element('<img>')
.attr({src: '/static/png/line.indiancinema.png'}) .attr({src: '/static/png/line.indiancinema.png'})
.css({ .css({
position: 'absolute', position: 'absolute',
@ -88,7 +88,15 @@ pandora.ui.home = function() {
}) })
.one({ .one({
load: function() { load: function() {
$line.animate({opacity: 1}, 250); $line.animate({opacity: 1}, 250, function() {
$line
.options({tooltip: 'Visit Pad.ma'})
.bindEvent({
anyclick: function() {
document.location.href = '/url=https://pad.ma';
}
});
});
} }
}) })
.appendTo($box), .appendTo($box),

View file

@ -68,8 +68,8 @@ pandora.ui.home = function() {
margin: '0 auto 0 auto', margin: '0 auto 0 auto',
cursor: 'pointer' cursor: 'pointer'
}) })
.on({ .bindEvent({
click: function() { anyclick: function() {
$browseButton.triggerEvent('click'); $browseButton.triggerEvent('click');
} }
}) })