');
});
$("aside.widget.link .content a").on("mouseover",function(e){
$("aside.widget.link .socialhint").html("Follow us on "+$(e.currentTarget).attr("title"));
});
$("aside.widget.link .content a").on("mouseout",function(e){
$("aside.widget.link .socialhint").html("");
});
$("#widget_block_serviceplans_1880 .cell").matchHeight();
$("#widget_block_serviceplans_1881 .cell").matchHeight();
//$("li.changelanguage").css("display","none");
//On blog page, add a sharer icon near every blog post.
var blogSharer = function(){
var popupStr = ' onclick="window.open(this.href,\'targetWindow\',\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=650\');return false;"';
$(this).find("h2").prepend(String(
""
)
.replace(/\{shareurl\}/g,encodeURIComponent($(this).attr("href")))
.replace(/\{sharetitle\}/g,encodeURIComponent($(this).find("h2").html()))
);
$(this).on('click',function(){
if ($(this).next(".share-menu").height < 100) $(this).next(".share-menu").css('height','100px');
else $(this).next(".share-menu").css('height','0px');
});
};
$(".url-en-blog section.widget.recentcontent a, .url-en-blog section.widget.popularcontent a, .url-en-blog section.widget.featuredcontent a").each(blogSharer);
$("article#search .results li a").each(blogSharer);
$("article#tagbrowser .results li a").each(blogSharer);
$("article.section_10 article#content_330 a").attr("href","https://renaps.com/en/products/OracleReports-to-BIPublisher");
/**
* Desktop & tablets, make the menu go full screen width.
*/
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
$('div.mainmenu ul.nav > li.dropdown > a.dropdown-toggle').off('mouseover').on('mouseover click touchstart resize',function(e){
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var el = $(this).next(".dropdown-menu");
var left = $(this).offset().left;
if (w > bs.gridFloatBreakpoint) {
console.log("Resizing menus...");
$(el).css({
'left':(-1*left)+'px',
'margin-left':'0px',
'margin-right':'0px',
'width':w+'px',
'padding-left':(w < 1024)?'30px':((w/100)*15)+'px',
'padding-right':(w < 1024)?'30px':((w/100)*15)+'px'
});
}
else{
$(el).find(".dropdown-menu").show();
}
$('div.mainmenu ul.nav > li.dropdown > a.dropdown-toggle').removeClass("open");
$(this).addClass("open");
});
$('body > div.page').on('mouseover',function(e){
$('div.mainmenu ul.nav .dropdown-toggle').removeClass("open");
});
if (w >= 768 && w <= bs.gridFloatBreakpoint) {
$('div.mainmenu .navbar-toggle').click(function(){
$(".mainmenu a").off('mouseover');
});
}
$("#widget_static_sidebysidetext_2580 .actions a, #widget_static_sidebysidetext_2954 .actions a").html("Go");
$("section.widget.recentcontent.section_114 li .actions").addClass("arrow").html("Détails");
$("section.widget.recentcontent.section_114 .ct").css("position","relative");
$("section.widget.recentcontent.section_114 .ct .actions").prepend("Visit the blog");
/* Add wrapper around tables to allow horizontal scroll */
$('table').wrap('');
$(".marquee").html("ERPCloudInfrastructureÉquipeEntreprise");
/* Marquee */
$(".marquee").each(function(){
var coeMarqueeTimeout = null;
var coeMarqueeElement = this;
$(coeMarqueeElement).children(":last-child").addClass("active");
coeMarqueeTimeout = setInterval(function(){
//Find current marquee element
var currentEl = $(coeMarqueeElement).find(".active");
//Build fade in function
currentEl.fadeOut(150,function(){
$(this).removeClass("active");
var tmpEl = $(this).next();
if (tmpEl.length < 1) tmpEl = $(this).parent().children(":first-child");
currentEl = tmpEl;
currentEl.fadeIn(150,function(){
$(this).addClass("active");
});
});
},1300);
});
/**
* Add button / form tracking code. Sets the label of the event
* based on the triggering button. Sends the event when form is submitted.
*/
GAEvent.action = 'Lead submission';
if (GAEvent.send) {
$(document).ajaxComplete(function(event,xhr,options){
console.info('sending event to GA for url = '+options.url);
if (options.url == 'https://renaps.com/en/api/contactus/widget/form/contactusformwidgetsend') {
var clientId = ga.getAll()[0].get('clientId');
ga('create', 'UA-1890486-1', {
'clientId': clientId
});
ga('send', 'event', {
'eventCategory': GAEvent.category, // Required.
'eventAction': GAEvent.action, // Required.
'eventLabel': GAEvent.label,
'eventValue': 1
});
}
});
}
$("article.section[class*='url-en-blog']").each(function(){
$(".widgets_blogform").css("display","none");
});
});
//Follow scroll form in BLOG
(function($) {
var element = $('.follow-scroll');
if (element.length > 0){
var originalY = element.offset().top;
element.css('position', 'relative');
var topMargin = 180;
var bottomMargin = 1500;
element.css('padingBottom', bottomMargin+'px');
$(window).on('scroll', function(event) {
var scrollTop = $(window).scrollTop();
element.stop(false, false).animate({
top: scrollTop < originalY
? 0
: ((scrollTop + originalY + topMargin < $(document).height()+topMargin) ? scrollTop - originalY + topMargin: 0)
}, 300);
});
}
})(jQuery);
(function($) {
setInterval(function(){
$(".tawk-min-container").remove();
},150);
})(jQuery);
//Open popup dialog on first load.
/*
(function($) {
setTimeout(function(){
let popupShown = window.localStorage.getItem("popupShown");
if (!popupShown) {
$("#popupleadform_dialog .modal-title").html('Upcoming Webinar');
$("#popupleadform_dialog .modal-body").html('Launching ORMIT™-Cortex 2.0 - A cheaper than free Oracle to PostgreSQL migration solution
');
$("#popupleadform_dialog").modal({
show: true,
cache: false
});
$("#popupleadform_dialog").modal('show');
let browserRef = (typeof browser === "undefined") ? chrome : browser;
window.localStorage.setItem("popupShown",1);
}
},1500);
})(jQuery);
*/
//Highlight code blocks
(function($) {
setTimeout(function(){
hljs.highlightAll();
},300);
})(jQuery);