ComputerScope on 30 years of technology in Ireland

Celebrating 30 years of continuous publication of ComputerScope and Techpro in the Irish IT sector

Thirty years — three decades — is a long time in business. It is veritable aeons in the world of technology. And yet, that is how long ComputerScope, and now TechPro, has been the publication of record for the Irish information technology sector.

“Defining technology for businesses” was the tag line for quite some time, and remains a central plank of the publication’s mission. “Insight for IT leadership” now graces the masthead, reflecting the fact that information technology has gone from being a business support to a force that can drive the business, enabling agility previously undreamt of.

An awful lot has happened in Ireland since 1985, and even more has happened in the world of information technology. To capture something of the time and the future, we asked key figures in industry, some from the giants with decades of history as well as those that represent the new generation of tech companies, to give us their reminiscences of those technologies that made an impact since 1985, and for those that may have a similar effect in the future.

 

advertisement

 

The result is a record in itself of breakthroughs, discoveries and some unexpected successes — with a few failures — as well as keen insights for businesses in the future.

 

 

IBM — from CEO Watson to cognitive analytics Watson
In the span of a century, IBM has evolved from a small business that made weighing scales, time clocks and tabulating machines to a globally integrated enterprise with a strong vision for the future.IBM has been in Ireland since 1956 and grown to occupy a key position within Irish industry. Many of the country’s leading businesses, large and small, benefit from IBM ideas, business innovation, technologies and people.Through the years, the company has changed the ideas about how businesses should operate, and contributed cultural touchstones from the IBM Selectric typewriter to the System/360 mainframe, from punch cards to the Personal Computer, from CEO Watson to Watson cognitive analytics. The world, as well as technology, never stops moving onwards.

Influential technology the past 30 years

During the early 80s, IBM installed the first Irish retail laser scanner system in L&N’s new supermarket in Cork. While at Bank of Ireland, its Computer Centre became home to an IBM 3084, which was the largest IT system to be installed in Ireland at the time. Meanwhile, the results of a technological revolution that had been in the making for four decades was quite literally, hitting Irish homes and businesses — Ireland was being introduced to the IBM PC.Before the PC arrived, the effort to tear down the wall between professional and personal computing had been a movement — the PC made it a standard. The PC era also created an ecosystem for technology introduction and changed how businesses manage computer systems, applications and add-on hardware developments, plus how they approached distribution channels.Since the 80s, laptop and desktop computers have become substantially commodity products — low-cost means for accessing data and information. It is a sign of IBM’s ability to continually transform itself that it divested its PC business in 2004, to focus on higher value systems and solutions.

Transformation and growth

When IBM began its operations in Ireland there were just three employees. Over the years IBM has grown to be one of the largest employers in the country with close to 4000 full-time employees.

In 1996, IBM announced the development of its Technology Campus in Damastown, Dublin. Since then the portfolio of operations at the Campus has transformed from its initial manufacturing base to now include: IBM Research, Software Development, the European Digital Sales Centre; plus an ever-expanding set of services businesses that includes Data Centres, Cloud Computing, Business Analytics and Security Services supporting clients in Ireland and around the world.
More recently the company announced the launch of IBM Watson and IBM Studios-Dublin bringing design thinking and cognitive computing analytics to its research scientists, engineers, consultants, sales professionals and clients in Ireland.

Into the future

IBM’s view of the future centres on the impact of data. We have all seen the statistics about the vast quantities of data now being produced on a continuous basis. Data has always been at the heart of computing, but the challenge has been how to make sense of the huge volumes now available, and the fact that most of it is unstructured. Crucially, the technologies to deal with those issues are now becoming available, allowing all that data to be used for informed decision-making. IBM believes that entire industries will be transformed by this shift.

While computing systems to date have delivered tremendous business and societal benefits by automating data processing to deliver enterprise and personal productivity, the machines of tomorrow — cognitive systems — will forever change the way businesses & people interact with computing systems and data.

Cognitive computing systems learn and interact naturally with people to extend what either humans or machine could do on their own. These systems will help industries expand their expertise across their domains of knowledge such as healthcare, science, engineering, and legal, in a fraction of the time it currently takes.

This was demonstrated when IBM Watson won Jeopardy!, the TV gameshow challenge in 2011. With Watson’s cognitive analytics it is clear that a new kind of computing system is emerging — one that can learn, reason, and understand natural language, making complex decisions involving extraordinary volumes of fast moving Big Data.

Far from replacing our thinking, cognitive systems will extend our cognition and free us to think more creatively. In so doing, they will speed innovations and ultimately help build a Smarter Planet.

 

Intel Ireland

Intel Ireland would like to congratulate ComputerScope/TechPro on reaching an important milestone of 30 years of publication. If you cast your mind back to 1985 when ComputerScope made its first appearance, it was almost impossible to imagine the explosion in technology and the impact it would have on society in the years to follow.At a similar time in the late 1980’s the Intel campus in Leixlip looked very different to the leading edge technology facility that it is today, and the eventual location of the Intel’s first advanced manufacturing investment in Europe was in fact a stud farm in an area still considered a small rural village. What was to follow would become the largest private investment in the history of the Irish state and make a significant statement about Ireland’s emerging role as a tech leader on the global stage.

Moore's Law (Image: Intel)Today, we are focusing on our latest upgrade project at the Leixlip campus which has resulted in $5 billion of investment to ready our existing fab facilities to produce Intel’s latest process technology. This latest investment brings the total invested by Intel in Ireland to $12.5 billion over the past 25 years with over 5,000 people employed right across the island of Ireland.Just as the past decades have brought about an incredible revolution for the tech industry, the years to come will hold ever more advancement and continued technology innovation.

A look ahead

2015 is not only a significant milestone for Mediateam but also marks the fiftieth anniversary of a predication that would become the foundation for the entire electronics industry — Moore’s Law.

In 1965 Gordon Moore predicted that the number of transistors on an integrated circuit would double every two years. The continuous pursuit of Moore’s Law over the past 50 years has created a remarkable impact on the tech industry and in turn has transformed our modern society. What is most remarkable perhaps is that Moore’s Law is all about human ingenuity, determination and creativity, which is sustained by talented people and their innovative capabilities. Moore’s Law is as much about belief as anything else, an unwritten agreement between the electronics industry and the world economy that inspires engineers, inventors and entrepreneurs to think about what may be possible. And it is this continued commitment to possibility that will shape the technology landscape of the future — a future that will be characterised by an ever changing world.

Some examples of trends that are shaping the future include:

  • New generations are born connected — the most recent generation has become the first truly tech native generation and this is a trend that will only continue to evolve as future generations experience an ever more innate relationship with technology and an expectation of connectedness that is unparalleled.
  • The Internet of Things (IoT) is considered one of the fastest growing areas of the tech industry today and one which holds enormous potential to drive economic value and social change. IoT is built around the idea of turning any device/object into a smart device/object by having it communicate with other devices, with the cloud and to produce data that can be used to increase value. Technologies that have been designed right here in Ireland, such as the Intel Quark processor, are paving the way for IoT advancement and this will be a transformative lever for the future tech landscape.
  • Transformation of healthcare — the ageing demographic and growth of chronic health diseases are just some of the characteristics of healthcare in our future society. The challenges that will emerge in this space are ones that will not be possible to tackle with traditional healthcare practises and technology enabled solutions will be paramount in the future of healthcare. For example, in 2001 it cost approximately $100 million to sequence the human genome, today, thanks to technology advancements and the application of Moore’s law, that same sequencing is expected to cost just under $1000. Having this data available for allows for personalised medicine specific to each individual.
    It is exciting to think about what the next number of years may hold and we look forward to sharing in the next chapter of Ireland‘s technology story.

 

Microsoft celebrates 30 years in Ireland

This year, Microsoft marks its thirtieth year in Ireland. It is a milestone representing a distinguished track record of continued investment by the company in this country, which stands in the region of €1 billion.Immense change has taken place over that period in the company — and in the wider industry. From being an unknown company back then, Microsoft, and many other multinational and indigenous technology companies, have become global brands, employers of choice and are major contributors to the economy.Microsoft’s presence in Ireland has grown from 100 people at a manufacturing facility 30 years ago to one with 1,200 people working in software development; R&D; engineering; sales and marketing and the data centre.

Cathriona Hallahan_2015
“There really is no knowing the heights we will scale over the next 30 years. Cloud computing has entered popular speech and ever more people and businesses are beginning to appreciate the capabilities it can provide,” Cathriona Hallahan, Microsoft Ireland

As the only location outside our headquarters in Redmond which has every aspect of our business located in one place, the variety of disciplines and roles available offer fantastic career development opportunities. We’ve been in a position to attract and retain talent over the course of the last 30 years — I’ve worked with the company for the last 29 — and today we continue to bring new people with a diverse range of technology and non-technology backgrounds into the company. As a company Microsoft is an exciting and dynamic workplace with innovation at its core. To drive this innovation forward we have almost 50 nationalities represented in Microsoft Ireland today which reflects the diversity of our customers throughout Ireland and the Globe. As a company we are committed to encouraging diversity and inclusion.

From my own perspective, I found tremendous mentors in the company who saw potential in me and encouraged me in innumerable ways. I joined Microsoft without a degree and it was thanks to the support and advice of those mentors that I pursued an accounting qualification, which opened up a lot of doors in my career. Before taking up my current role as Managing Director of Microsoft Ireland, I worked in a variety of positions — both financial and in operations, both global and regionally based.

Strategically, as technology has changed and enhanced more and more how we live and work, as citizens, doctors, artists, scientists, business and IT people, Microsoft has evolved its focus. We’ve transformed from being a software company to a devices and services company embracing a Cloud First, Mobile First world.

Innovation has been the one constant. Bringing new things to our customers like Windows 10, Office 365 and Azure as well as our Surface and phone devices, we continue to push at the boundaries of technology and ask how we can help people and organisations achieve more and do more.

In Ireland, we’ve been fortunate to be able to put together a great team of people who are flexible and enjoy working in a transformative, fast paced environment. It is an environment that allows you to make a significant contribution — you can determine where the company goes and what it does next.

For instance, our Irish team has steered innovation in the development and operation of leading edge Cloud Services such as Azure and Office 365.

There really is no knowing the heights we will scale over the next 30 years. Cloud computing has entered popular speech and ever more people and businesses are beginning to appreciate the capabilities it can provide.

One trend we will certainly see evolve further is the Internet of Things. It’s already with us today as organisations grapple with gaining business insight through big data, and considering where sensors can play a role in their product or service solutions to bring more value to their customers. It’s something which is going to touch every business and consumer in the Country. The potential is big and exciting, and Microsoft is poised to help customers decode and take advantage of this opportunity.

It will also be thrilling to see the impact of all the young coding enthusiasts that are being created through organisations such as CoderDojo. Clubs around the country are introducing children to technology at a young age and ensuring that this interaction is enjoyable and creative. If you have an idea, the attitude is, go and turn it into a reality.

It’s a very natural way to promote the acquisition of IT skills and I’d be surprised if it did not give rise to an increase in the number of people pursuing STEM type courses such as engineering as well as entrepreneurial careers in the years to come.

Microsoft has come on board as the official European partner for the CoderDojo Foundation and Movement, and we think that with our support, the experience will be enriched for participants and volunteers alike.

Our children are our future, and, ultimately, where technology takes us in the next 30 years is up to them.

At Microsoft Ireland, armed with 30 years of experience innovating in this country, we’re looking forward to playing our part in reaching that frontier.

Cathriona Hallahan, managing director, Microsoft Ireland

 

Google — Transformation of Irish business

The world has changed utterly in the 30 years since ComputerScope/TechPro first published, and technology has been a huge driver of that change. The rapid evolution of the Internet and mobile is phenomenal. Consider that Google as a company is only 17 years old; with that came Google search and YouTube, the platform on which 300 hours of video is uploaded every minute is celebrating its tenth birthday this year.

Ronan Harris, Google.                                Picture by Shane O'Neill / Copyright Fennell Photography 2015.
“The biggest technological change yet to come from an Irish SME perspective will be the transformation of Irish businesses that fully adopt the online marketplace as a driver of sales and business growth. At our current digital adoption rates, the Internet is expected to account for 10% of our GDP by 2020, or €21 billion euros,” Ronan Harris, Google

Google took some big bets on emerging businesses early on that have paid off, not least Android, the mobile operating platform. Indeed Google’s innovation in creating the Android open platform was a game changer in driving the development of mobile. The average Irish consumer is now using three connected devices daily to search, read news and shop.

The ability to analyse and track large quantities of raw data (Big Data) has given organisations deeper insights into their businesses than ever before. Even very small companies, using the range of free Analytics tools available can track web site engagement in order to deliver more online sales. Indeed the biggest and most impactful change which the internet has wrought over the past few years has been the breaking down of the traditional barriers to selling products across borders. It is now easier than ever to access far flung customers online and sell to them.

In my time at Google, I have seen first-hand the impact of working with businesses to advertise online. Small businesses our teams in Dublin work with on a daily basis go on to hire more people, build out more units and increase their revenues. I have long advocated for businesses to get online, and Irish businesses are taking heed — 75% of them now have a web site. But the next step is to ensure these businesses are selling online, and selling globally. Research shows that only 24% of these SMEs are currently doing so — and fewer still, just 11%, export.

The biggest technological change yet to come from an Irish SME perspective will be the transformation of Irish businesses that fully adopt the online marketplace as a driver of sales and business growth. At our current digital adoption rates, the Internet is expected to account for 10% of our GDP by 2020, or €21 billion euros. By next year estimates suggest over 20% of retail sales in G-20 countries will be made online. This is only going to grow in the years ahead and speeding up the adoption of online by Irish companies would mean even greater economic gains for our country.

We have all the components in Ireland to be the best in class at exporting online. A strong national brand abroad and trade links into the world’s largest consumer markets, an English speaking marketplace, a young, educated workforce and most importantly, a culture of entrepreneurship and innovation. The Internet means that Ireland’s businesses have the opportunity to be global players more than ever before.


Ronan Harris is VP Sales and Operations, Google EMEA, head of Google in Ireland

RELATED ARTICLES
#mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: px;} /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block. We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
Sign up for the
Technology Minute
(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='MMERGE2';ftypes[2]='text';fnames[3]='MMERGE3';ftypes[3]='text';fnames[4]='MMERGE4';ftypes[4]='text';fnames[5]='SIGNUP';ftypes[5]='text';fnames[6]='MMERGE6';ftypes[6]='imageurl';}(jQuery));var $mcj = jQuery.noConflict(true); // SMS Phone Multi-Country Functionality if(!window.MC) { window.MC = {}; } window.MC.smsPhoneData = { defaultCountryCode: 'IE', programs: [], smsProgramDataCountryNames: [] }; function getCountryUnicodeFlag(countryCode) { return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397)) }; // HTML sanitization function to prevent XSS function sanitizeHtml(str) { if (typeof str !== 'string') return ''; return str .replace(/&/g, '&') .replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/\//g, '/'); } // URL sanitization function to prevent javascript: and data: URLs function sanitizeUrl(url) { if (typeof url !== 'string') return ''; const trimmedUrl = url.trim().toLowerCase(); if (trimmedUrl.startsWith('javascript:') || trimmedUrl.startsWith('data:') || trimmedUrl.startsWith('vbscript:')) { return '#'; } return url; } const getBrowserLanguage = () => { if (!window?.navigator?.language?.split('-')[1]) { return window?.navigator?.language?.toUpperCase(); } return window?.navigator?.language?.split('-')[1]; }; // getBrowserLanguageCode() and getSmsProgramForCountryAndLanguage() are provided globally // by the external mc-sms-phone.js script loaded alongside this inline form script. function getDefaultCountryProgram(defaultCountryCode, smsProgramData) { if (!smsProgramData || smsProgramData.length === 0) { return null; } var browserCountryCode = getBrowserLanguage(); var browserLangCode = getBrowserLanguageCode(); if (browserCountryCode) { var match = getSmsProgramForCountryAndLanguage(smsProgramData, browserCountryCode, browserLangCode); if (match) { return match; } } if (defaultCountryCode) { var match = getSmsProgramForCountryAndLanguage(smsProgramData, defaultCountryCode, browserLangCode); if (match) { return match; } } return smsProgramData[0]; } function updateSmsLegalText(countryCode, fieldName) { if (!countryCode || !fieldName) { return; } var programs = window?.MC?.smsPhoneData?.programs; if (!programs || !Array.isArray(programs)) { return; } var browserLangCode = getBrowserLanguageCode(); var program = getSmsProgramForCountryAndLanguage(programs, countryCode, browserLangCode); if (!program || !program.requiredTemplate) { return; } var smsConsentHtmlRenderingFixEnabled = true; const legalTextElement = document.querySelector('#legal-text-' + fieldName); if (!legalTextElement) { return; } const divRegex = new RegExp(']*>', 'gi'); const blockWrapperRegex = new RegExp(']*>', 'gi'); const fullAnchorRegex = new RegExp('<a.*?', 'g'); const anchorRegex = new RegExp('(.*?)'); const template = smsConsentHtmlRenderingFixEnabled ? program.requiredTemplate .replace(/\s*

]*>/gi, ' ') .replace(blockWrapperRegex, '') : program.requiredTemplate.replace(divRegex, ''); legalTextElement.textContent = ''; const parts = template.split(/(.*?)/g); parts.forEach(function(part) { if (!part) { return; } const anchorMatch = part.match(/(.+?)/); if (anchorMatch) { const linkElement = document.createElement('a'); linkElement.href = sanitizeUrl(anchorMatch[1]); linkElement.target = anchorMatch[2] ? sanitizeHtml(anchorMatch[2]) : '_blank'; linkElement.rel = 'noopener noreferrer'; linkElement.textContent = sanitizeHtml(anchorMatch[3]); legalTextElement.appendChild(linkElement); } else { legalTextElement.appendChild(document.createTextNode(part)); } }); } function generateDropdownOptions(smsProgramData) { if (!smsProgramData || smsProgramData.length === 0) { return ''; } var programs = true ? smsProgramData.filter(function(p, i, arr) { return arr.findIndex(function(q) { return q.countryCode === p.countryCode; }) === i; }) : smsProgramData; return programs.map(program => { const flag = getCountryUnicodeFlag(program.countryCode); const countryName = getCountryName(program.countryCode); const callingCode = program.countryCallingCode || ''; // Sanitize all values to prevent XSS const sanitizedCountryCode = sanitizeHtml(program.countryCode || ''); const sanitizedCountryName = sanitizeHtml(countryName || ''); const sanitizedCallingCode = sanitizeHtml(callingCode || ''); return '' + sanitizedCountryName + ' ' + sanitizedCallingCode + ''; }).join(''); } function getCountryName(countryCode) { if (window.MC?.smsPhoneData?.smsProgramDataCountryNames && Array.isArray(window.MC.smsPhoneData.smsProgramDataCountryNames)) { for (let i = 0; i < window.MC.smsPhoneData.smsProgramDataCountryNames.length; i++) { if (window.MC.smsPhoneData.smsProgramDataCountryNames[i].code === countryCode) { return window.MC.smsPhoneData.smsProgramDataCountryNames[i].name; } } } return countryCode; } function getDefaultPlaceholder(countryCode) { if (!countryCode || typeof countryCode !== 'string') { return '+1 000 000 0000'; // Default US placeholder } var mockPlaceholders = [ { countryCode: 'US', placeholder: '+1 000 000 0000', helpText: 'Include the US country code +1 before the phone number', }, { countryCode: 'GB', placeholder: '+44 0000 000000', helpText: 'Include the GB country code +44 before the phone number', }, { countryCode: 'CA', placeholder: '+1 000 000 0000', helpText: 'Include the CA country code +1 before the phone number', }, { countryCode: 'AU', placeholder: '+61 000 000 000', helpText: 'Include the AU country code +61 before the phone number', }, { countryCode: 'DE', placeholder: '+49 000 0000000', helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein', }, { countryCode: 'FR', placeholder: '+33 0 00 00 00 00', helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone', }, { countryCode: 'ES', placeholder: '+34 000 000 000', helpText: 'Incluya el código de país ES +34 antes del número de teléfono', }, { countryCode: 'NL', placeholder: '+31 0 00000000', helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer', }, { countryCode: 'BE', placeholder: '+32 000 00 00 00', helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone', }, { countryCode: 'CH', placeholder: '+41 00 000 00 00', helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein', }, { countryCode: 'AT', placeholder: '+43 000 000 0000', helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein', }, { countryCode: 'IE', placeholder: '+353 00 000 0000', helpText: 'Include the IE country code +353 before the phone number', }, { countryCode: 'IT', placeholder: '+39 000 000 0000', helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono', }, { countryCode: 'NO', placeholder: '+47 000 00 000', helpText: 'Inkluder NO landskode +47 før telefonnummeret', }, { countryCode: 'SE', placeholder: '+46 00 000 00 00', helpText: 'Inkludera SE landskod +46 före telefonnumret', }, { countryCode: 'DK', placeholder: '+45 00 00 00 00', helpText: 'Inkluder DK landekode +45 før telefonnummeret', }, { countryCode: 'FI', placeholder: '+358 00 000 0000', helpText: 'Sisällytä FI-maakoodi +358 ennen puhelinnumeroa', }, { countryCode: 'EE', placeholder: '+372 0000 0000', helpText: 'Lisage EE riigikood +372 telefoninumbri ette', }, { countryCode: 'PL', placeholder: '+48 000 000 000', helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu', }, { countryCode: 'SK', placeholder: '+421 000 000 000', helpText: 'Pred telefónne číslo uveďte kód krajiny SK +421', }, { countryCode: 'LV', placeholder: '+371 0000 0000', helpText: 'Iekļaujiet LV valsts kodu +371 pirms tālruņa numura', }, { countryCode: 'LT', placeholder: '+370 0000 0000', helpText: 'Įtraukite LT šalies kodą +370 prieš telefono numerį', }, { countryCode: 'GR', placeholder: '+30 000 000 0000', helpText: 'Συμπεριλάβετε τον κωδικό χώρας GR +30 πριν από τον αριθμό τηλεφώνου', }, { countryCode: 'PT', placeholder: '+351 000 000 000', helpText: 'Inclua o código de país PT +351 antes do número de telefone', }, { countryCode: 'HR', placeholder: '+385 00 000 0000', helpText: 'Uključite HR pozivni broj države +385 prije telefonskog broja', }, { countryCode: 'SI', placeholder: '+386 00 000 000', helpText: 'Vključite SI kodo države +386 pred telefonsko številko', }, { countryCode: 'IS', placeholder: '+354 000 0000', helpText: 'Láttu IS landsnúmer +354 fylgja á undan símanúmerinu', }, { countryCode: 'LU', placeholder: '+352 000 000 000', helpText: 'Incluez le code pays LU +352 avant le numéro de téléphone', }, { countryCode: 'MC', placeholder: '+377 00 00 00 00', helpText: 'Incluez le code pays MC +377 avant le numéro de téléphone', }, { countryCode: 'AD', placeholder: '+376 000 000', helpText: 'Incloeu el codi de país AD +376 abans del número de telèfon', }, { countryCode: 'JE', placeholder: '+44 0000 000000', helpText: 'Include the JE country code +44 before the phone number', }, { countryCode: 'IM', placeholder: '+44 0000 000000', helpText: 'Include the IM country code +44 before the phone number', }, { countryCode: 'GG', placeholder: '+44 0000 000000', helpText: 'Include the GG country code +44 before the phone number', }, { countryCode: 'AL', placeholder: '+355 00 000 0000', helpText: 'Përfshini kodin e vendit AL +355 para numrit të telefonit', }, { countryCode: 'SM', placeholder: '+378 0000 000000', helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono', }, { countryCode: 'FO', placeholder: '+298 000000', helpText: 'Inkluder FO landekode +298 før telefonnummeret', }, { countryCode: 'MT', placeholder: '+356 0000 0000', helpText: 'Include the MT country code +356 before the phone number', }, { countryCode: 'LI', placeholder: '+423 000 0000', helpText: 'Fügen Sie vor der Telefonnummer die LI-Ländervorwahl +423 ein', }, { countryCode: 'GI', placeholder: '+350 000 00000', helpText: 'Include the GI country code +350 before the phone number', }, { countryCode: 'MD', placeholder: '+373 00 000 000', helpText: 'Includeți codul de țară MD +373 înaintea numărului de telefon', }, { countryCode: 'HU', placeholder: '+36 00 000 0000', helpText: 'A telefonszám előtt adja meg a HU országkódot +36', }, { countryCode: 'NZ', placeholder: '+64 00 000 0000', helpText: 'Include the NZ country code +64 before the phone number', }, { countryCode: 'ME', placeholder: '+382 00 000 000', helpText: 'Uključite ME pozivni broj države +382 prije telefonskog broja', }, ]; const selectedPlaceholder = mockPlaceholders.find(function(item) { return item && item.countryCode === countryCode; }); return selectedPlaceholder ? selectedPlaceholder.placeholder : mockPlaceholders[0].placeholder; } function updatePlaceholder(countryCode, fieldName) { if (!countryCode || !fieldName) { return; } const phoneInput = document.querySelector('#mce-' + fieldName); if (!phoneInput) { return; } const placeholder = getDefaultPlaceholder(countryCode); if (placeholder) { phoneInput.placeholder = placeholder; } } function updateCountryCodeInstruction(countryCode, fieldName) { updatePlaceholder(countryCode, fieldName); } function getDefaultHelpText(countryCode) { var mockPlaceholders = [ { countryCode: 'US', placeholder: '+1 000 000 0000', helpText: 'Include the US country code +1 before the phone number', }, { countryCode: 'GB', placeholder: '+44 0000 000000', helpText: 'Include the GB country code +44 before the phone number', }, { countryCode: 'CA', placeholder: '+1 000 000 0000', helpText: 'Include the CA country code +1 before the phone number', }, { countryCode: 'AU', placeholder: '+61 000 000 000', helpText: 'Include the AU country code +61 before the phone number', }, { countryCode: 'DE', placeholder: '+49 000 0000000', helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein', }, { countryCode: 'FR', placeholder: '+33 0 00 00 00 00', helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone', }, { countryCode: 'ES', placeholder: '+34 000 000 000', helpText: 'Incluya el código de país ES +34 antes del número de teléfono', }, { countryCode: 'NL', placeholder: '+31 0 00000000', helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer', }, { countryCode: 'BE', placeholder: '+32 000 00 00 00', helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone', }, { countryCode: 'CH', placeholder: '+41 00 000 00 00', helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein', }, { countryCode: 'AT', placeholder: '+43 000 000 0000', helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein', }, { countryCode: 'IE', placeholder: '+353 00 000 0000', helpText: 'Include the IE country code +353 before the phone number', }, { countryCode: 'IT', placeholder: '+39 000 000 0000', helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono', }, { countryCode: 'NO', placeholder: '+47 000 00 000', helpText: 'Inkluder NO landskode +47 før telefonnummeret', }, { countryCode: 'SE', placeholder: '+46 00 000 00 00', helpText: 'Inkludera SE landskod +46 före telefonnumret', }, { countryCode: 'DK', placeholder: '+45 00 00 00 00', helpText: 'Inkluder DK landekode +45 før telefonnummeret', }, { countryCode: 'FI', placeholder: '+358 00 000 0000', helpText: 'Sisällytä FI-maakoodi +358 ennen puhelinnumeroa', }, { countryCode: 'EE', placeholder: '+372 0000 0000', helpText: 'Lisage EE riigikood +372 telefoninumbri ette', }, { countryCode: 'PL', placeholder: '+48 000 000 000', helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu', }, { countryCode: 'SK', placeholder: '+421 000 000 000', helpText: 'Pred telefónne číslo uveďte kód krajiny SK +421', }, { countryCode: 'LV', placeholder: '+371 0000 0000', helpText: 'Iekļaujiet LV valsts kodu +371 pirms tālruņa numura', }, { countryCode: 'LT', placeholder: '+370 0000 0000', helpText: 'Įtraukite LT šalies kodą +370 prieš telefono numerį', }, { countryCode: 'GR', placeholder: '+30 000 000 0000', helpText: 'Συμπεριλάβετε τον κωδικό χώρας GR +30 πριν από τον αριθμό τηλεφώνου', }, { countryCode: 'PT', placeholder: '+351 000 000 000', helpText: 'Inclua o código de país PT +351 antes do número de telefone', }, { countryCode: 'HR', placeholder: '+385 00 000 0000', helpText: 'Uključite HR pozivni broj države +385 prije telefonskog broja', }, { countryCode: 'SI', placeholder: '+386 00 000 000', helpText: 'Vključite SI kodo države +386 pred telefonsko številko', }, { countryCode: 'IS', placeholder: '+354 000 0000', helpText: 'Láttu IS landsnúmer +354 fylgja á undan símanúmerinu', }, { countryCode: 'LU', placeholder: '+352 000 000 000', helpText: 'Incluez le code pays LU +352 avant le numéro de téléphone', }, { countryCode: 'MC', placeholder: '+377 00 00 00 00', helpText: 'Incluez le code pays MC +377 avant le numéro de téléphone', }, { countryCode: 'AD', placeholder: '+376 000 000', helpText: 'Incloeu el codi de país AD +376 abans del número de telèfon', }, { countryCode: 'JE', placeholder: '+44 0000 000000', helpText: 'Include the JE country code +44 before the phone number', }, { countryCode: 'IM', placeholder: '+44 0000 000000', helpText: 'Include the IM country code +44 before the phone number', }, { countryCode: 'GG', placeholder: '+44 0000 000000', helpText: 'Include the GG country code +44 before the phone number', }, { countryCode: 'AL', placeholder: '+355 00 000 0000', helpText: 'Përfshini kodin e vendit AL +355 para numrit të telefonit', }, { countryCode: 'SM', placeholder: '+378 0000 000000', helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono', }, { countryCode: 'FO', placeholder: '+298 000000', helpText: 'Inkluder FO landekode +298 før telefonnummeret', }, { countryCode: 'MT', placeholder: '+356 0000 0000', helpText: 'Include the MT country code +356 before the phone number', }, { countryCode: 'LI', placeholder: '+423 000 0000', helpText: 'Fügen Sie vor der Telefonnummer die LI-Ländervorwahl +423 ein', }, { countryCode: 'GI', placeholder: '+350 000 00000', helpText: 'Include the GI country code +350 before the phone number', }, { countryCode: 'MD', placeholder: '+373 00 000 000', helpText: 'Includeți codul de țară MD +373 înaintea numărului de telefon', }, { countryCode: 'HU', placeholder: '+36 00 000 0000', helpText: 'A telefonszám előtt adja meg a HU országkódot +36', }, { countryCode: 'NZ', placeholder: '+64 00 000 0000', helpText: 'Include the NZ country code +64 before the phone number', }, { countryCode: 'ME', placeholder: '+382 00 000 000', helpText: 'Uključite ME pozivni broj države +382 prije telefonskog broja', }, ]; if (!countryCode || typeof countryCode !== 'string') { return mockPlaceholders[0].helpText; } const selectedHelpText = mockPlaceholders.find(function(item) { return item && item.countryCode === countryCode; }); return selectedHelpText ? selectedHelpText.helpText : mockPlaceholders[0].helpText; } function setDefaultHelpText(countryCode) { const helpTextSpan = document.querySelector('#help-text'); if (!helpTextSpan) { return; } } function updateHelpTextCountryCode(countryCode, fieldName) { if (!countryCode || !fieldName) { return; } setDefaultHelpText(countryCode); } function initializeSmsPhoneDropdown(fieldName) { if (!fieldName || typeof fieldName !== 'string') { return; } const dropdown = document.querySelector('#country-select-' + fieldName); const displayFlag = document.querySelector('#flag-display-' + fieldName); if (!dropdown || !displayFlag) { return; } const smsPhoneData = window.MC?.smsPhoneData; if (smsPhoneData && smsPhoneData.programs && Array.isArray(smsPhoneData.programs)) { dropdown.innerHTML = generateDropdownOptions(smsPhoneData.programs); } const defaultProgram = getDefaultCountryProgram(smsPhoneData?.defaultCountryCode, smsPhoneData?.programs); if (defaultProgram && defaultProgram.countryCode) { dropdown.value = defaultProgram.countryCode; const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName); if (flagSpan) { flagSpan.textContent = getCountryUnicodeFlag(defaultProgram.countryCode); flagSpan.setAttribute('aria-label', sanitizeHtml(defaultProgram.countryCode) + ' flag'); } updateSmsLegalText(defaultProgram.countryCode, fieldName); updatePlaceholder(defaultProgram.countryCode, fieldName); updateCountryCodeInstruction(defaultProgram.countryCode, fieldName); } var smsNotRequiredRemoveCountryCodeEnabled = true; var smsField = Object.values({"EMAIL":{"name":"EMAIL","label":"Email Address","helper_text":"","type":"email","required":true,"audience_field_name":"Email Address","merge_id":0,"help_text_enabled":false,"enabled":true,"order":0,"field_type":"merge"},"FNAME":{"name":"FNAME","label":"First Name","helper_text":"","type":"text","required":false,"audience_field_name":"First Name","enabled":false,"order":null,"field_type":"merge","merge_id":1},"MMERGE2":{"name":"MMERGE2","label":"Second Name","helper_text":"","type":"text","required":false,"audience_field_name":"Second Name","enabled":false,"order":null,"field_type":"merge","merge_id":2},"MMERGE3":{"name":"MMERGE3","label":"Company Name","helper_text":"","type":"text","required":false,"audience_field_name":"Company Name","enabled":false,"order":null,"field_type":"merge","merge_id":3},"MMERGE4":{"name":"MMERGE4","label":"Job Title","helper_text":"","type":"text","required":false,"audience_field_name":"Job Title","enabled":false,"order":null,"field_type":"merge","merge_id":4},"SIGNUP":{"name":"SIGNUP","label":"Signup form location","helper_text":"","type":"text","required":false,"audience_field_name":"Signup form location","enabled":false,"order":null,"field_type":"merge","merge_id":5},"MMERGE6":{"name":"MMERGE6","label":"Image URL","helper_text":"","type":"imageurl","required":false,"audience_field_name":"Image URL","enabled":false,"order":null,"field_type":"merge","merge_id":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; }); var isRequired = smsField ? smsField.required : false; var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true; var phoneInput = document.querySelector('#mce-' + fieldName); if (phoneInput && defaultProgram.countryCallingCode && shouldAppendCountryCode) { phoneInput.value = defaultProgram.countryCallingCode; } displayFlag?.addEventListener('click', function(e) { dropdown.focus(); }); dropdown?.addEventListener('change', function() { const selectedCountry = this.value; if (!selectedCountry || typeof selectedCountry !== 'string') { return; } const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName); if (flagSpan) { flagSpan.textContent = getCountryUnicodeFlag(selectedCountry); flagSpan.setAttribute('aria-label', sanitizeHtml(selectedCountry) + ' flag'); } const selectedProgram = window.MC?.smsPhoneData?.programs.find(function(program) { return program && program.countryCode === selectedCountry; }); var smsNotRequiredRemoveCountryCodeEnabled = true; var smsField = Object.values({"EMAIL":{"name":"EMAIL","label":"Email Address","helper_text":"","type":"email","required":true,"audience_field_name":"Email Address","merge_id":0,"help_text_enabled":false,"enabled":true,"order":0,"field_type":"merge"},"FNAME":{"name":"FNAME","label":"First Name","helper_text":"","type":"text","required":false,"audience_field_name":"First Name","enabled":false,"order":null,"field_type":"merge","merge_id":1},"MMERGE2":{"name":"MMERGE2","label":"Second Name","helper_text":"","type":"text","required":false,"audience_field_name":"Second Name","enabled":false,"order":null,"field_type":"merge","merge_id":2},"MMERGE3":{"name":"MMERGE3","label":"Company Name","helper_text":"","type":"text","required":false,"audience_field_name":"Company Name","enabled":false,"order":null,"field_type":"merge","merge_id":3},"MMERGE4":{"name":"MMERGE4","label":"Job Title","helper_text":"","type":"text","required":false,"audience_field_name":"Job Title","enabled":false,"order":null,"field_type":"merge","merge_id":4},"SIGNUP":{"name":"SIGNUP","label":"Signup form location","helper_text":"","type":"text","required":false,"audience_field_name":"Signup form location","enabled":false,"order":null,"field_type":"merge","merge_id":5},"MMERGE6":{"name":"MMERGE6","label":"Image URL","helper_text":"","type":"imageurl","required":false,"audience_field_name":"Image URL","enabled":false,"order":null,"field_type":"merge","merge_id":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; }); var isRequired = smsField ? smsField.required : false; var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true; var phoneInput = document.querySelector('#mce-' + fieldName); if (phoneInput && selectedProgram.countryCallingCode && shouldAppendCountryCode) { phoneInput.value = selectedProgram.countryCallingCode; } updateSmsLegalText(selectedCountry, fieldName); updatePlaceholder(selectedCountry, fieldName); updateCountryCodeInstruction(selectedCountry, fieldName); }); } document.addEventListener('DOMContentLoaded', function() { const smsPhoneFields = document.querySelectorAll('[id^="country-select-"]'); smsPhoneFields.forEach(function(dropdown) { const fieldName = dropdown?.id.replace('country-select-', ''); initializeSmsPhoneDropdown(fieldName); }); });

- Advertisment -

Most Popular

- Advertisment -