');
});
$("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("Read More");
$("section.widget.recentcontent.section_114 .ct").css("position","relative");
$("section.widget.recentcontent.section_114 .ct > h1").prepend("Visit the blog");
/* Add wrapper around tables to allow horizontal scroll */
$('table').wrap('');
$(".marquee").html("ITCloudFormsERPInfrastructureTechnologyBusiness");
/* 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.
*/
if (document.referrer.indexOf("renaps.com") === -1) {
localStorage.setItem('userReferrer', document.referrer);
}
$(".actions .action.popupleadform").on('click',function(){
localStorage.setItem('leadFormSubject', $(this).attr("data-subject"));
localStorage.setItem('leadFormButtonText', $(this).html().replace(/(<([^>]+)>)/gi, ""));
});
$(document).ajaxComplete(function(event,xhr,options){
console.info('Lead detected, sending event to GA for url = '+options.url);
if (options.url == 'https://renaps.com/en/api/contactus/widget/form/contactusformwidgetsend') {
const leadFormSubject = localStorage.getItem('leadFormSubject');
const leadFormButtonText = localStorage.getItem('leadFormButtonText');
const url = window.location.href;
let mainCategory = 'Home';
if (url.indexOf("https://renaps.com/en/products") !== -1 || url.indexOf("https://renaps.com/fr/produits") !== -1) mainCategory = 'Products';
if (url.indexOf("https://renaps.com/en/services") !== -1 || url.indexOf("https://renaps.com/fr/services") !== -1) mainCategory = 'Services';
if (url.indexOf("https://renaps.com/en/careers") !== -1 || url.indexOf("https://renaps.com/fr/carrieres") !== -1) mainCategory = 'Careers';
if (url.indexOf("https://renaps.com/en/blog") !== -1 || url.indexOf("https://renaps.com/fr/blog") !== -1) mainCategory = 'Blog';
let subCategory = '';
if (url.indexOf("fr/produits/ormit-analyzer-outil-d-analyse-oracle-forms-and-reports") !== -1 || url.indexOf("en/products/ormit-analyzer-oracle-forms-and-reports-analysis-tool") !== -1) subCategory = 'ORMIT Analyzer';
if (url.indexOf("fr/produits/oracle-forms-upgrades") !== -1 || url.indexOf("en/products/oracle-forms-upgrades") !== -1) subCategory = 'ORMIT Forms';
if (url.indexOf("fr/produits/ormit-java") !== -1 || url.indexOf("en/products/ormit-java") !== -1) subCategory = 'ORMIT Java';
if (url.indexOf("fr/produits/OracleForms-to-Angular") !== -1 || url.indexOf("en/products/OracleForms-to-Angular") !== -1) subCategory = 'ORMIT OpenJava';
if (url.indexOf("fr/produits/OracleReports-to-JasperReports-Migration") !== -1 || url.indexOf("en/products/OracleReports-to-JasperReports-Migration") !== -1) subCategory = 'ORMIT Jasper';
if (url.indexOf("fr/produits/OracleReports-to-BIPublisher") !== -1 || url.indexOf("en/products/OracleReports-to-BIPublisher") !== -1) subCategory = 'ORMIT Jasper';
if (url.indexOf("fr/produits/OracleDB-Upgrade") !== -1 || url.indexOf("en/products/OracleDB-Upgrade") !== -1) subCategory = 'ORMIT DB';
if (url.indexOf("fr/produits/Oracle-a-postgreSQL") !== -1 || url.indexOf("en/products/Oracle-to-postgreSQL") !== -1) subCategory = 'ORMIT Cortex';
if (url.indexOf("fr/produits/OracleAPEX-to-Java-Migration") !== -1 || url.indexOf("en/products/OracleAPEX-to-Java") !== -1) subCategory = 'ORMIT APEX';
if (url.indexOf("fr/produits/postgrespure") !== -1 || url.indexOf("en/products/postgrespure") !== -1) subCategory = 'PostgresPure';
if (url.indexOf("fr/produits/Oracle-Compliance-Solution") !== -1 || url.indexOf("en/products/Oracle-Compliance-Solution") !== -1) subCategory = 'ROCS';
if (url.indexOf("fr/produits/Forms-SSH") !== -1 || url.indexOf("en/products/Forms-SSH") !== -1) subCategory = 'Forms SSH';
if (url.indexOf("fr/services/developpement-applications-sur-mesure") !== -1 || url.indexOf("en/services/application-development-and-maintenance") !== -1) subCategory = 'Application Development';
if (url.indexOf("fr/services/infrastructure-ti") !== -1 || url.indexOf("en/services/it-infrastructure") !== -1) subCategory = 'Infrastructure TI';
if (url.indexOf("fr/services/Cloud-Services") !== -1 || url.indexOf("en/services/Cloud-Services") !== -1) subCategory = 'Cloud Services';
if (url.indexOf("fr/services/oracle-managed-services/oracle-e-business-suite-applications-managed-services") !== -1 || url.indexOf("en/services/oracle-managed-services/oracle-e-business-suite-applications-managed-services") !== -1) subCategory = 'E-Business Suite';
if (url.indexOf("fr/services/Hyperion-EPM") !== -1 || url.indexOf("en/services/Hyperion-EPM") !== -1) subCategory = 'Hyperion';
if (url.indexOf("fr/sur-demande") !== -1 || url.indexOf("en/on-demand") !== -1) subCategory = 'RENAPS On-Demand Hub';
if (url.indexOf("fr/services/services-geres-hybride") !== -1 || url.indexOf("en/services/hybrid-managed-services") !== -1) subCategory = 'Hybrid Services Hub';
if (url.indexOf("fr/managed-services-hub-page") !== -1 || url.indexOf("en/managed-services") !== -1) subCategory = 'Managed Services Hub';
if (url.indexOf("fr/services/RHOD-fr") !== -1 || url.indexOf("en/services/RHOD-en") !== -1) subCategory = 'RENAPS Hiring On Demand';
if (url.indexOf("fr/services/boutique-de-recrutement-ti") !== -1 || url.indexOf("en/services/IT-hiring-solutions") !== -1) subCategory = 'IT Hiring Solutions';
if (url.indexOf("fr/services/oracle-engineered-systems") !== -1 || url.indexOf("en/services/oracle-engineered-systems") !== -1) subCategory = 'Oracle Engineered Systems';
if (url.indexOf("fr/Forms-Reports-hub-page") !== -1 || url.indexOf("en/Forms-Reports-hub-page") !== -1) subCategory = 'Oracle Forms Hub Page';
if (url.indexOf("fr/services/license-management-services") !== -1 || url.indexOf("en/services/Oracle-license-management-services") !== -1) subCategory = 'ROCS';
if (url.indexOf("fr/carrieres") !== -1 || url.indexOf("en/careers") !== -1) subCategory = 'Careers';
if (url.indexOf("fr/blog/forms-and-java") !== -1 || url.indexOf("en/blog/forms-and-java") !== -1) subCategory = 'Forms and Java';
if (url.indexOf("fr/blog/how-to") !== -1 || url.indexOf("en/blog/how-to") !== -1) subCategory = 'Database';
if (url.indexOf("fr/blog/middleware") !== -1 || url.indexOf("en/blog/middleware") !== -1) subCategory = 'Middleware';
if (url.indexOf("fr/blog/nouvelles") !== -1 || url.indexOf("en/blog/news") !== -1) subCategory = 'Nouvelles';
const userReferer = localStorage.getItem('userReferrer');
let domain = (new URL(userReferer));
domain = domain.hostname.replace('www.','');
gtag("event", "generate_lead", {
currency: "USD",
value: 100.00,
lead_source: (domain)?domain:"direct",
lead_type: mainCategory,
lead_sub_type: subCategory,
lead_source: (domain)?domain:"direct",
lead_referrer: userReferer,
lead_page: url,
lead_subject: leadFormSubject,
lead_button_text: leadFormButtonText
});
gtag('event', 'conversion', {'send_to': 'AW-1057850088/0RAFCLLs3r8ZEOiFtvgD'});
}
});
$("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);
//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);
var LucidEffect = (LucidEffect)?LucidEffect:[];
LucidEffect.Typewriter = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 500;
this.txt = '';
this.tick();
this.isDeleting = false;
};
LucidEffect.Typewriter.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i].trim();
if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML = this.txt+'<'+'span class="wrap">';
var that = this;
var delta = 100 - Math.random() * 100;
if (this.isDeleting) { delta /= 3; }
if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 300;
}
setTimeout(function() {
that.tick();
}, delta);
};
window.onload = function() {
var elements = document.getElementsByClassName('lucid-effect-typewriter');
for (var i=0; i