Adding to SP3 : fixing images and others

This commit is contained in:
2014-11-30 17:24:49 +01:00
parent b6ebf33a02
commit c1f4308089
9 changed files with 159 additions and 115 deletions

14
jquery/databap.js vendored
View File

@@ -15,8 +15,8 @@ function Databap()
self.consts.app_image_folder = 'images/';
self.consts.add_code_text = 'Copier le code ici.';
self.consts.search_box_text = 'Recherche...';
self.consts.maxHeight = $(window).height();
self.consts.maxWidth = $(window).width();
self.consts.maxHeight = $(window).innerHeight();
self.consts.maxWidth = $(window).innerWidth();
self.consts.time = (new Date()).getTime();
self.consts.transTime = 200;
@@ -408,15 +408,15 @@ function Databap()
{
//Maximize main div height to fill up the page
var iPageHeight = $('body').outerHeight(true);
var iWindowHeight = $(window).outerHeight(true);
var iWindowHeight = $(window).innerHeight();
self.$main.height('+='+(iWindowHeight - iPageHeight));
self.$menu.height($('#main_container').height());
//Update size
self.consts.maxHeight = $(window).height();
self.consts.maxWidth = $(window).width();
self.consts.pageMaxHeight = self.$main.height();
self.consts.pageMaxWidth = self.$main.width();
self.consts.maxHeight = $(window).innerHeight();
self.consts.maxWidth = $(window).innerWidth();
self.consts.pageMaxHeight = self.$main.innerHeight();
self.consts.pageMaxWidth = self.$main.innerWidth();
//Page event
self.onResize();