Anyone know the JavaScript to show/hide content based on the country field?

Hi, I need to display a different number on a site according to the area of the country (com.au or co.nz). I figured out that the module {module_urlcountrycode} can be used to do this with javascript.

Because I'm not exactly an ACE to js, is there anyone who could share the code?

See you soon

Jerun

Place the module as a class-{module_urcountrycode} country, then you can simply the elements to give their own class and then you see depend on.

. Country-nz .nzelement {display: block ;}}

And by default all elements of the country have a class contryelement or something and all hidden by default.

Tags: Business Catalyst

Similar Questions

  • Show / hide content based on access levels (php)

    I have an area of a web page that is visible to users with level 'level 1' access registered - I want to change this code and add a second level of access user 'level 2 '.

    So basically I want access "level1" and "level2" users to see 'X' content.

    Here's the code...

    <? PHP if (isset($_SESSION['MM_UserGroup']) & & $_SESSION ['MM_UserGroup'] == 'level1') {? >}

    "content here".

    <? PHP}? >

    I tried modifying the code of what follows, but without success:

    <? PHP if (isset($_SESSION['MM_UserGroup']) & & $_SESSION ['MM_UserGroup'] =='level1, level2') {? >}

    Any help would be appreciated!

    >$_SESSION ['MM_UserGroup'] == "level 1, 2"

    You want to test for users who are in a group called '' level 1, 2 ''?  Or test if the user is in the level 1 or level 2? If the latter, then of course, your code will not work. You will need to check each condition.

    $_SESSION ['MM_UserGroup'] == 'level2')) { ?>

  • Anyone know the reason for the change in content of list TDMS in 2015 of LabVIEW?

    Hello

    In LabVIEW 2014 and earlier, when the TDMS content list function is used, if no group or no channel in the PDM, the function file to view the contents of the DDHN will display an empty string for the name or the name of the channel. However in 2015 of LabVIEW, for the same situation, the TDMS function content list the previous contents for group names or output channel and generate an error message (error code:-2532). Anyone know the reason for this change?

    Thank you

    Steve

    So I used a file Virgin PDM with any group and contained content in 2014 and no error and output was empty.  I then opened that VI in 2015 and it automatically inserted manifest error of the-2532.  I'm guessing that NEITHER changed something which can cause this error be seen, they will have to chime explain why.

    I tried listing the contents of the Virgin TDMS in 2015 with and without clear errors, no error is generated and the release of the content of the list was always empty.  Can you post an example of when this error occurs, as well as the odd output.

    EDIT: Also a decent work around just wouldn't be, if this generated output an error, then clear the output of this function?  An example is attached.

  • Anyone know the bottom DC Adobe sign - in URL?

    I tried to solve this during the conversation of support but think that there was a language barrier slight that prevented the representative understand what I was asking.

    We just purchased and installed Adobe DC (2015) on some members of the staff of PCs. When the software is opened, a small window prompts you for a sign-in. We cannot go beyond this stage as our internet content filter (managed by our ISP) seems to block the login page for a reason any. I tested it on another unblocked line and it works fine.

    Does anyone know the exact URL of the login page so I can go to our ISP to release?

    Hi garyr70974732,

    This is a subscription to a perpetual license for Acrobat DC?

    If it is a subscription sign using the Adobe ID, in which you have the subscription.

    Follow the steps in troubleshooting connectivity in order to activate Acrobat DC Solutions to connection errors, activation and connection with Creative Suite and creative Cloud applications.

    If you need your account you can log on Adobe: Creative, marketing and document management solutions

    Kind regards

    Nicos

  • Anyone know the reference number of the card mother M40x-149?

    Hello

    Anyone know the part number for a motherboard satellite M40x-149 and a good place to buy a home?

    Thank you
    Neil

    Reference number is an internal information, and I really don't think that someone can help here.
    I don't know in which country you live, but I imagine you can find many online PC shops in your country. Google all over the place.
    From time to time to check eBay. Here you can find many different hardware parts for all types of Toshiba laptops.

  • Satellite 1900-303: does anyone know the plug of HARD drive

    Hard drive crashed... anyone know the spec of the HD in a Sat 1900 303... His hard drive a 30 GB but just need more in detail to give the data recovery company. Woman in a panic because she is a classic home user and never save anything...

    Hello

    Maybe I'm wrong, but you don't need all the data. Each professional company can deal with each HARD drive that is given to the recovery of the data. If I'm wrong please let me know.

    HARD drive broke down, or perhaps your wife has deleted all the important data by mistake?

  • Hello everyone, I just bought a Thunderbolt Apple display to use with my 2012 15 "27" Macbook Pro, Win10/Bootcamp. Is anyone know the procedure to get the display to work with Bootcamp Windows 10?  I have connected screen but no picture. TY

    Hi all

    I just bought a Thunderbolt Apple display to use with my 2012 15 "27" Macbook Pro Win10/Boot Camp running. Is anyone know the procedure to get the display to work with Bootcamp/Windows 10? Is there a setting in the training Camp that must be turned on to make it work? I have connected screen but could not get a desktop display.  Any help would be really appreciated! TY

    The monitor should have a TB and adapter power connector. The monitor works on both OSX. ? If so, shut down of windows, connect monitor and start Windows. Your TB 2012 monitor is not plug-and-play with Windows.

    Please see ports Thunderbolt and views: frequently asked questions (FAQ) - Apple Support .

    1. the "hot pluggable" Thunderbolt devices using Windows with Boot Camp?

    Thunderbolt hot plugging is supported under Windows 8 or 8.1 on all Macs from 2014 and later.

    For all other Mac computers, Windows 7, 8 and 8.1 scans and active them Thunderbolt devices connected to ports Thunderbolt during the Windows startup process. If your device has been plugged in not at startup, Windows detects not without a reboot.

  • I got an Acer Aspire M1201 Office anyone know the brand of motherboard?

    Anyone know the brand and model of the motherboard installed in the desktop Acer Aspire M1201?

    Thanks for your help, but I was unable to find the part numbers you have listed, but I found a code label long bar with the following text printed on it:

    "04VD83611339 PC RS740M03A1-8EKRS2H.

    The complete label not found search results, but "RS740M03A1-8EKRS2H" found the manufacturer 'Foxconn' all that I have need now is to find a specification for the motherboard.

    Wish me good luck

  • Is anyone know the device driver network right to install on a Hewlett Packard desktop computer that is running Windows XP Professional 2002?

    The network for computer device driver installation

    Did anyone know the right network device driver to install on a Hewlett Packard desktop computer that is running Windows XP Professional 2002 and he seems to have a processor Intel Pentium CPU RF?

    You can start here:

    You know do. But you must also give us the model and model number!
    Example:
    HP Pavilion a6827c
    A guide on finding drivers:
    More information:
  • Anyone know the links for Devcon videos?

    I need to re - visit one of the devcon videos. Anyone know the links for them?

    Try this and select the BlackBerry DevCon

  • Does anyone know the height and width that a dreamweaver layout grid can go?

    Does anyone know the height and width that a dreamweaver layout grid can go? (in pixels)

    To try:

    {body

    height: 36000px;

    Width: 40000px;

    }

    Nancy O.

  • Does anyone know the phone for Customer Service? Im trying to install an app and will not let me

    Does anyone know the phone for Customer Service? Im trying to install an app and will not let me

    There is no support for this phone.

    you could get help if you could explain or you can try to contact support Adobe by clicking here and, when available, click on "still need help," https://helpx.adobe.com/contact.html

  • Does anyone know the latest version of the Director who will open a file manager 4?

    Does anyone know the latest version of the Director who will open a file manager 4?

    I think it would be around 7 Director. However, see Colin Holgate response in this thread

  • I want to talk to someone real does anyone know the number?

    I want to talk to someone real does anyone know the number?

    Here's one for activation problems, etc.

    http://www.Adobe.com/support/download-install/supportinfo/

    We help you here in the forum?

  • Captivate: Using Javascript to show/hide captions text

    Hello

    I want to show/hide a legend of text using javascript. I can't find the way to do it with advanced actions. I don't know if it's because it belongs to a question slide in a pool. Anyone know if this is possible and how this can be done?

    There is nothing wrong with your English - no need to apologize :-)

    I just tested it. Seems to work for me to create a tip action that will show my custom legend if I set a variable of personalized tour. Rather than xplain, I have attached a word with some screen shots doc and an example of file CPTX. File is Captivate 5, but even should work in 5.5

    Steve

Maybe you are looking for