From 34ab34bc3e5ca6d41baccde5f2df4c25f82760cc Mon Sep 17 00:00:00 2001 From: Laurent Giovannoni <laurent.giovannoni@maarch.org> Date: Tue, 15 May 2012 14:04:03 +0000 Subject: [PATCH] evo: facebook div. --- core/trunk/install/js/merged_js.js | 191 +++++++++++------------- core/trunk/install/view/resume_view.php | 4 +- 2 files changed, 94 insertions(+), 101 deletions(-) diff --git a/core/trunk/install/js/merged_js.js b/core/trunk/install/js/merged_js.js index fbde39a9e5e..c74278a789e 100755 --- a/core/trunk/install/js/merged_js.js +++ b/core/trunk/install/js/merged_js.js @@ -63,104 +63,6 @@ function ajax( } -/* heightOfLicenceOverflow.js */ -function heightOfLicenceOverflow() -{ - $(document).ready(function() { - var heightOfSection = $('#section').css('minHeight') - var substringMax = heightOfSection.length - 2; - var heightOfSection = heightOfSection.substring(0, substringMax); - - var newHeightOfLicenceOverflow = heightOfSection - 350; - - if ($('#licenceOverflow').height() > 0) { - $('#licenceOverflow').height(newHeightOfLicenceOverflow+'px'); - } - }); -} - - -/* goTo.js */ -function goTo( - link -) -{ - $(document).ready(function() { - window.top.location.href=link; - }) -} - - -/* createDocservers.js */ - - - -/* checkForm.js */ -function checkLanguage( - value -) -{ - $(document).ready(function() { - if (value != 'default') { - $('#returnCheckLanguage').css("display","none"); - } else { - $('#returnCheckLanguage').css("display","block"); - } - }); -} - - -/* checkCreateDB.js */ - - - -/* checkLanguage.js */ -function checkLanguage( - value -) -{ - $(document).ready(function() { - if (value != 'default') { - $('#returnCheckLanguage').css("display","block"); - } else { - $('#returnCheckLanguage').css("display","none"); - } - }); -} - - -/* checkDataDB.js */ - - - -/* slide.js */ -function slide( - idDiv -) -{ - $(document).ready(function() { - $('#'+idDiv).slideToggle('slow'); - }) -} - - -/* checkLicence.js */ -function checkLicence() -{ - $(document).ready(function() { - if ($('#checkboxLicence').attr('checked')) { - $('#returnCheckLicence').css("display","block"); - } else { - $('#returnCheckLicence').css("display","none"); - } - }) -} - - -/* checkDatabaseInfo.js */ - - - /* ajaxDB.js */ function ajaxDB( url, @@ -228,6 +130,88 @@ function ajaxDB( } +/* checkForm.js */ +function checkLanguage( + value +) +{ + $(document).ready(function() { + if (value != 'default') { + $('#returnCheckLanguage').css("display","none"); + } else { + $('#returnCheckLanguage').css("display","block"); + } + }); +} + + +/* checkLanguage.js */ +function checkLanguage( + value +) +{ + $(document).ready(function() { + if (value != 'default') { + $('#returnCheckLanguage').css("display","block"); + } else { + $('#returnCheckLanguage').css("display","none"); + } + }); +} + + +/* checkLicence.js */ +function checkLicence() +{ + $(document).ready(function() { + if ($('#checkboxLicence').attr('checked')) { + $('#returnCheckLicence').css("display","block"); + } else { + $('#returnCheckLicence').css("display","none"); + } + }) +} + + +/* facebook.js */ + +(function(d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); js.id = id; + js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1"; + fjs.parentNode.insertBefore(js, fjs); +}(document, 'script', 'facebook-jssdk')); + + +/* goTo.js */ +function goTo( + link +) +{ + $(document).ready(function() { + window.top.location.href=link; + }) +} + + +/* heightOfLicenceOverflow.js */ +function heightOfLicenceOverflow() +{ + $(document).ready(function() { + var heightOfSection = $('#section').css('minHeight') + var substringMax = heightOfSection.length - 2; + var heightOfSection = heightOfSection.substring(0, substringMax); + + var newHeightOfLicenceOverflow = heightOfSection - 350; + + if ($('#licenceOverflow').height() > 0) { + $('#licenceOverflow').height(newHeightOfLicenceOverflow+'px'); + } + }); +} + + /* minHeightOfSection.js */ function minHeightOfSection() { @@ -247,7 +231,14 @@ function minHeightOfSection() } -/* checkLoadDatas.js */ - +/* slide.js */ +function slide( + idDiv +) +{ + $(document).ready(function() { + $('#'+idDiv).slideToggle('slow'); + }) +} diff --git a/core/trunk/install/view/resume_view.php b/core/trunk/install/view/resume_view.php index 9ca4620e3d6..9ce9dabeae3 100755 --- a/core/trunk/install/view/resume_view.php +++ b/core/trunk/install/view/resume_view.php @@ -11,7 +11,9 @@ <p> <?php echo _INSTALL_SUCCESS; ?><br /> <br /> - <iframe src="http://www.facebook.com/plugins/like.php?href=https://www.facebook.com/pages/Maarch/53918706268&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe> + <div align="center"> + <div class="fb-like" data-href="http://www.facebook.com/pages/Maarch/53918706268" data-send="true" data-width="850" data-show-faces="true"></div> + </div> </p> </div> </div> -- GitLab