|
@@ -9,6 +9,15 @@
|
|
|
|
|
|
|
|
<script src="js/jquery-1.10.2.js"></script>
|
|
<script src="js/jquery-1.10.2.js"></script>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+jQuery.fn.center = function () {
|
|
|
|
|
+ this.css("position","absolute");
|
|
|
|
|
+ this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) +
|
|
|
|
|
+ $(window).scrollTop()) + "px");
|
|
|
|
|
+ this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
|
|
|
|
|
+ $(window).scrollLeft()) + "px");
|
|
|
|
|
+ return this;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
@@ -64,11 +73,16 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
getData();
|
|
getData();
|
|
|
|
|
+ $(window).resize(function() {
|
|
|
|
|
+ $("#descripcion_completa").center();
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
function getDesc(){
|
|
function getDesc(){
|
|
|
$.get('vermas.php', {id : expand}).done(function(data){
|
|
$.get('vermas.php', {id : expand}).done(function(data){
|
|
|
$("#descripcion_completa").html(data);
|
|
$("#descripcion_completa").html(data);
|
|
|
$("#overlay-contact").css("display","block");
|
|
$("#overlay-contact").css("display","block");
|
|
|
$("#descripcion_completa").css("display", "block");
|
|
$("#descripcion_completa").css("display", "block");
|
|
|
|
|
+ $("#descripcion_completa").center();
|
|
|
$("#overlay-contact").css("height",$(document).height()+"px");
|
|
$("#overlay-contact").css("height",$(document).height()+"px");
|
|
|
$('#overlay-contact').click(function(){
|
|
$('#overlay-contact').click(function(){
|
|
|
$('#descripcion_completa, #overlay-contact').hide();
|
|
$('#descripcion_completa, #overlay-contact').hide();
|
|
@@ -76,7 +90,6 @@ $(document).ready(function() {
|
|
|
$('#exit').click(function(){
|
|
$('#exit').click(function(){
|
|
|
$('#descripcion_completa, #overlay-contact').hide();
|
|
$('#descripcion_completa, #overlay-contact').hide();
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|