hide/show a div based on a part of the URL string

This project should be a copy-paste kind of project for experienced web developers.

We are building a multilingual website and webstore on the DudaMobile (DudaOne) platform. Although Duda fully supports multilingual features, the content of the webshop surprisingly isn't. In other words: the description of a product can only be shown in one language.

As we can edit the content related HTML code of the website, we want to build a simple workaround by hiding and showing div's, based on the URL of the website. We would then group the product description in a div per language...

The code's logic should be something like this:

Each div has a reference: 'NL', 'EN', 'FR' and 'DE'

Break up the URL: it looks like '[login to view URL]', it should only look at what comes directly after the first dash: the language ref.

By default, 'NL' should be shown, all other divs should be hidden.

IF the content after the first dash contains the following exact strings:

-"en-gb": hide 'NL' and show 'EN'

-"fr": hide 'NL' and show 'FR'

-'de': hide 'NL and show 'DE'

Website's URL and pw (it's not public yet) available upon request.

Last but not least: if you react on this project and want us to take you seriously, type the word "APPLE" in capital letters in the first line of your proposal. This way we know you have actually red our question all the way through.

Skills: CSS, HTML, Javascript, Website Design

See more: hide div based content, hide div based condition jsp, displaying div based url, included div based variable url, hide paragraph based url parameter, php load div based url, show div based url, dynamic menu based url string php, display div content based url, html css div based design, create div based site, text hide div javascript, text based url php, div based layout css creator, html based url parameter

About the Employer:
( 7 reviews ) Wommelgem, Belgium

Project ID: #15442947

Awarded to:


APPLE I have just two questions: 1) you want a pure(core) javascript code or it may be jquery for example? 2) The lang reference in the div wrapper would be done how(so it can be tied with the code)? Relevant Skills a More

€15 EUR in 0 days
(85 Reviews)

16 freelancers are bidding on average €21 for this job

€29 EUR in 1 day
(23 Reviews)

APPLE hi there! i have more than 7 years of experience in wordpress development. Please do not ignore as a new profile. I can give you more quality work on time. Thank you Relevant Skills and Experience web design we More

€23 EUR in 3 days
(88 Reviews)

APPE Hi, I have done several projects like this. And I am well qualified for this job. I will complete the job within a reasonable timeframe. Thanks Kiran Relevant Skills and Experience . Proposed Milestones €2 More

€23 EUR in 1 day
(61 Reviews)

Hi Nice to meet you I have enough experience in javascript I want know more details You can check my profile and reviews Best regards Stay tuned, I'm still working on this proposal.

€23 EUR in 1 day
(45 Reviews)

Hi. I readed your project very carefully. I developed website for 5+ years. Relevant Skills and Experience I am good at PHP, MYSQL, HTML, CSS, JAVASCRIPT. Proposed Milestones €23 EUR - My effort I am sure I can do y More

€23 EUR in 1 day
(36 Reviews)

APPLE Show and hide based on URL parameters Relevant Skills and Experience I am an expert in the following: PHP, WordPress, HTML, CSS, JQUERY, JAVASCRIPT, AJAX, MONGO, DATABASE, Website Design and Development, Respo More

€22 EUR in 1 day
(23 Reviews)

APPLE. I have gone through your project description and I can help you out on this within no time! Relevant Skills and Experience I have been working as a full stack PHP based developer for the last 3+years. You can More

€23 EUR in 1 day
(35 Reviews)

APPLE Hi This task can be done using Javascript/HTML/CSS. Code will show the DIV based on the language (from URL) slug. My code will be placed on top of every page. Plz share URL/pw. Relevant Skills and Experience I h More

€15 EUR in 1 day
(47 Reviews)

APPLE, Hey i can help out. I understand the issue. Aptitudini și experiență relevante Developer 5 years. Plăți intermediare propuse €29 EUR - Job done.

€29 EUR in 1 day
(26 Reviews)

Hello, I am very interested in the project and you would like to apply to it. I'm a web developer with 7 years experience in PHP, MYSQL, CSS3, HTML5 and deep knowledge Wordpress, WP pluggin, development issues More

€23 EUR in 1 day
(16 Reviews)

Hello sir, I can use Java script to do this task. Let me help handle this task for you. Thanks. Relevant Skills and Experience Javascript, HTML/CSS Proposed Milestones €20 EUR - for amount

€20 EUR in 1 day
(10 Reviews)

APPLE I read you job in details and noticed that i can do it. Relevant Skills and Experience html, php, css, bootstrap, ajax calls, javascript, react, angular ruby on rails, postgresql, django, python Proposed Miles More

€23 EUR in 1 day
(0 Reviews)

Please hire me to get the job done, i can fix it for you within one day, i hope you will like my fast work please accept my bid,, so i can get on track in this website. Thanks Relevant Skills and Experience I have mo More

€8 EUR in 0 days
(0 Reviews)

This should be no problem using JS and it will take not so long to complete. Relevant Skills and Experience 3+ years in js technologys, pure js, [login to view URL], react.js and angular.js from frontend development. Proposed More

€23 EUR in 2 days
(0 Reviews)

APPLE A web developer beginner like all the challenge Expérience et Compétences appropriées Javascript / Only personal project Étapes proposées €12 EUR - Javascript , Angular2 , vueJs , nodeJs

€12 EUR in 2 days
(0 Reviews)