made IE lightbox auto display when on IE

This commit is contained in:
Connor Turland 2014-11-02 14:32:42 -05:00
parent fed09404e6
commit 7805871ec2

View file

@ -24,6 +24,46 @@
require.config({baseUrl: '/famous/'});
require(['main']);
</script>
<!--[if (IE)]>
<style type="text/css">
#lightbox_overlay {
display: block;
}
#lightbox_main {
top: 50%;
margin-top: -281px;
}
#lightbox_screen {
height: 100%;
opacity: 0.42;
}
.lightboxContent {
display: none;
}
#noIE {
display: block;
}
#lightbox_close {
display: none;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("#lightbox_screen").unbind().click(function(event){
event.preventDefault();
event.stopPropagation();
return false;
});
});
</script>
<![endif]-->
</head>
<body data-env="<%= Rails.env %>">