Commit bfcb21d2 authored by amandaghassaei's avatar amandaghassaei

attribution

parent 38fbd162
......@@ -410,4 +410,43 @@ a.seeMore.closed>.fui-triangle-down{
height: 10px;
margin-right: 10px;
margin-bottom: 2px;
}
#authorMoreInfo{
display: none;
position: absolute;
top:0px;
left:100px;
z-index: 5;
}
#authorMoreInfo>#authorContent{
font-size: 14px;
background: #f5f5f5;
padding: 15px 25px;
margin-left: 20px;
color:#34495e;
white-space: normal;
width: 300px;
border: 2px solid #a8a6ae;
}
#authorMoreInfo a, #authorMoreInfo a:hover,#authorMoreInfo a:visited,#authorMoreInfo a:focus{
color: #ec008b !important;
}
#authorMoreInfo:after {
content: '';
display: block;
position: absolute;
top: 20px;
left:10px;
width: 20px;
height: 20px;
background: #f5f5f5;
border-left:2px solid #a8a6ae;
border-bottom:2px solid #a8a6ae;
-ms-transform: rotate(45deg); /* IE 9 */
-moz-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
transform: rotate(45deg);
}
\ No newline at end of file
This diff is collapsed.
......@@ -14,6 +14,41 @@ function initControls(globals){
$("#activeLogo").hide();
});
$(".author").hover(function(e){
var $target = $(e.target);
var $moreInfo = $("#authorMoreInfo");
if (!$target.hasClass("demo")) {
$moreInfo.hide();
return;
}
var offset = $target.position();
var width = $target.outerWidth();
if (width == 0) {
$moreInfo.hide();
return;
}
var author = $target.data("author");
$("#authorContent").children().hide();
$("#authorContent>#" + author).show();
$moreInfo.css({top:offset.top-13+"px", left:width+"px"});
$moreInfo.show();
$target.parent().append($moreInfo);
});
$(".author").mouseout(function(e){
var $moreInfo = $("#authorMoreInfo");
if ($(e.target).parent().is(":hover")) return;
if ($moreInfo.is(":hover")) return;
$moreInfo.hide();
});
$("#authorMoreInfo").mouseout(function(e){
var $moreInfo = $("#authorMoreInfo");
if ($moreInfo.is(":hover")) return;
if ($moreInfo.find("#element:hover").length>0) return;
$moreInfo.hide();
});
setLink("#menuVis", function(){
if (globals.menusVisible){
$("#controls").fadeOut();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment