beez3 hide.js errors

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
nagaho1
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Dec 01, 2015 8:03 pm

beez3 hide.js errors

Post by nagaho1 » Mon Mar 29, 2021 3:52 pm

My site was created several years ago using beez3 template which I customized. I did not touch any of the javascript files originally.

Now the template is causing an issue with a new extension (BreezingForms). My custom template only shows one error at the very end of hide.js, Parsing Error: Unexpected token.

The original beez3 template that I left on the site has several errors. I can not find an updated beez3 to load. I was hoping to find a fixed version that I could just replace with the one on my site.
Forum Post Assistant (v1.6.2) : 29-Mar-2021 wrote:
Last PHP Error(s) Reported :: wrote:[29-Mar-2021 02:15:29 America/Boise] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home4/thestate/public_html/johnboukis/blog/components/com_phocadownload/views/category/tmpl/default.php on line 98
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.9.25-Stable (Amani) 02-March-2021
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (444) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: Is Not Empty | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.9.25: Yes | Database Supports J! 3.9.25: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 4.19.150-76.ELK.el7.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate, br | System TMP Writable: Yes | Free Disk Space : 139.01 GiB |

PHP Configuration :: Version: 7.4.16 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 32759 | Log Errors To: error_log | Last Known Error: 29th March 2021 02:15:29. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 512M | Max. POST Size: 516M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 256M

Database Configuration :: Version: 5.7.23-23 (Client:mysqlnd 7.4.16) | Database Size: 13.58 MiB | #of Tables with config prefix:  144 | #of other Tables:  0 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.16) | date (7.4.16) | libxml (7.4.16) | openssl (7.4.16) | pcre (7.4.16) | zlib (7.4.16) | filter (7.4.16) | hash (7.4.16) | pcntl (7.4.16) | readline (7.4.16) | Reflection (7.4.16) | SPL (7.4.16) | session (7.4.16) | standard (7.4.16) | cgi-fcgi (7.4.16) | bcmath (7.4.16) | bz2 (7.4.16) | calendar (7.4.16) | ctype (7.4.16) | curl (7.4.16) | dom (20031129) | mbstring (7.4.16) | fileinfo (7.4.16) | ftp (7.4.16) | gd (7.4.16) | gettext (7.4.16) | gmp (7.4.16) | iconv (7.4.16) | imap (7.4.16) | intl (7.4.16) | json (7.4.16) | exif (7.4.16) | mysqlnd (mysqlnd 7.4.16) | odbc (7.4.16) | PDO (7.4.16) | pgsql (7.4.16) | Phar (7.4.16) | posix (7.4.16) | pspell (7.4.16) | SimpleXML (7.4.16) | soap (7.4.16) | sockets (7.4.16) | sqlite3 (7.4.16) | tidy (7.4.16) | tokenizer (7.4.16) | xml (7.4.16) | xmlwriter (7.4.16) | xsl (7.4.16) | zip (1.15.6) | mysqli (7.4.16) | pdo_mysql (7.4.16) | PDO_ODBC (7.4.16) | pdo_pgsql (7.4.16) | pdo_sqlite (7.4.16) | xmlreader (7.4.16) | xmlrpc (7.4.16) | imagick (3.4.3) | SourceGuardian (12.0.0) | ionCube Loader (10.4.5) | Zend Engine (3.4.0) |
Potential Missing Extensions ::

Switch User Environment :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (---) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 4169718 | Threads: 6 | Questions: 2436169388 | Slow queries: 0 | Opens: 120264622 | Flush tables: 1 | Open tables: 20000 | Queries per second avg: 584.252 |
Extensions Discovered :: wrote:Components :: Site ::
Core :: com_wrapper (3.0.0) 1 | com_mailto (3.0.0) 1 |
3rd Party::

Components :: Admin ::
Core :: com_modules (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_redirect (3.0.0) 1 | com_users (3.0.0) 1 | com_media (3.0.0) 1 | com_checkin (3.0.0) 1 | com_finder (3.0.0) 1 | com_plugins (3.0.0) 1 | com_fields (3.7.0) 1 | com_search (3.0.0) 1 | com_cache (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_actionlogs (3.9.0) 1 | com_associations (3.7.0) 1 | com_ajax (3.2.0) 1 | com_newsfeeds (3.0.0) 1 | com_tags (3.1.0) 1 | com_postinstall (3.2.0) 1 | com_categories (3.0.0) 1 | com_templates (3.0.0) 1 | com_login (3.0.0) 1 | com_config (3.0.0) 1 | com_admin (3.0.0) 1 | com_content (3.0.0) 1 | com_installer (3.0.0) 1 | com_privacy (3.9.0) 1 | com_banners (3.0.0) 1 | com_languages (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_menus (3.0.0) 1 | com_messages (3.0.0) 1 |
3rd Party:: Akeeba (8.0.1) 1 | com_jDownloads (3.9.7.3) 1 | COM_CREATIVECONTACTFORM (4.6.2) 1 | COM_FORMMAKER (3.6.9) 0 | com_phocadownload (3.1.2) 1 | COM_OSMAP (4.3.1) 1 | COM_BREEZINGFORMS ((build 939)) 1 | sysbreezingforms (1.0.0) 0 |

Modules :: Site ::
Core :: mod_whosonline (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_menu (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_search (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_finder (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_articles_popular (3.0.0) 1 | mod_login (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_category (3.0.0) 1 |
3rd Party:: MOD_CREATIVECONTACTFORM_NAME (4.6.2) 1 | Form Maker Module (3.6.9) 1 | jDownloads Latest (3.9.7) 1 | jDownloads Most Recently Downloaded (3.9.6) 1 | jDownloads Last Updated (3.9.7) 1 | jDownloads Top (3.9.7) 1 | jDownloads Tree (3.9.3) 1 | Mini Frontpage (2.2.3) 1 | jDownloads Featured (3.9.7) 1 | jDownloads View Limits (3.9.0) 1 | jDownloads Stats (3.9.3) 1 | Nice Social Bookmark (2.5.2) 0 | BreezingForms (1.8.4) 1 | jDownloads Related (3.9.7) 1 | sigplus (1.4.2.19) 1 | jDownloads Rated (3.9.7) 1 |

Modules :: Admin ::
Core :: mod_privacy_dashboard (3.9.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_title (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_custom (3.0.0) 1 | mod_login (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_logged (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_version (3.0.0) 1 | mod_status (3.0.0) 1 |
3rd Party:: mod_jdownloads_admin_stats (3.9.6) 1 | mod_jdownloads_admin_monitoring (3.9.0) 1 |

Libraries ::
Core ::
3rd Party:: file_fof30 (3.6.2) ? | file_fof40 (4.0.2) ? | Regular Labs Library (21.3.19623) 1 |

Plugins ::
Core :: plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_privacy_message (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_user_terms (3.9.0) 0 | plg_user_profile (3.0.0) 1 | plg_user_contactcreator (3.0.0) 1 | plg_user_joomla (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 0 | plg_editors-xtd_module (3.5.0) 0 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 1 | plg_authentication_gmail (3.0.0) 1 | PLG_ACTIONLOG_JOOMLA (3.9.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_twofactorauth_yubikey (3.2.0) 1 | plg_twofactorauth_totp (3.2.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_finder (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_webinstaller (2.1.2) 1 | plg_system_remember (3.0.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_p3p (3.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_logout (3.0.0) 1 | plg_system_redirect (3.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 0 | plg_system_log (3.0.0) 1 | plg_system_stats (3.5.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_sef (3.0.0) 1 | plg_system_languagecode (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_tags (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 |
3rd Party:: plg_quickicon_akeebabackup (8.0.1) 1 | plg_editors_tinymce (4.5.12) 1 | plg_editors_codemirror (5.56.0) 1 | PLG_EDITORS-XTD_MODULESANYWHERE (7.12.0) 1 | PLG_EDITORS-XTD_ARTICLESANYWHERE (10.6.0) 1 | plg_editors-xtd_jdownloads (3.9.0) 0 | PLG_ACTIONLOG_AKEEBABACKUP (8.0.1) 0 | Content - Load Form Maker (3.6.9) 1 | plg_content_jdownloads (3.9.0.6) 0 | Content - Image gallery - sigplus (1.4.2.19) 1 | plg_jdownloads_example (3.9.0) 0 | jDownloads Example (3.2) 0 | plg_finder_folder (3.9.6) 0 | plg_finder_jdownloads (3.9.6) 0 | PLG_OSMAP_JOOMLA (4.3.1) 1 | sysbreezingforms (1.0.0) 0 | plg_system_ossystem (1.3.1) 1 | PLG_SYSTEM_MODULESANYWHERE (7.12.0) 1 | PLG_SYSTEM_ARTICLESANYWHERE (10.6.0) 1 | PLG_SYSTEM_REGULARLABS (21.3.19623) 1 | PLG_CWGEARS (0.6.3) 1 | plg_system_jdownloads (3.9.6) 1 | PLG_SYSTEM_BACKUPONUPDATE (8.0.1) 1 | Creative Contact Form (4.6.2) 1 | plg_search_jdownloads (3.9.0) 0 |
Templates Discovered :: wrote:Templates :: Site :: jcb_beez_books (3.1.0) 1 | protostar (1.0) ? | beez3 (3.1.0) 1 | jcb_beez_curve (3.1.0) 1 | jcb_black (3.1.0) 1 |
Templates :: Admin :: hathor (3.0.0) 1 | isis (1.0) 1 |

nagaho1
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Dec 01, 2015 8:03 pm

Re: beez3 hide.js errors

Post by nagaho1 » Mon Mar 29, 2021 3:56 pm

This is the hide.js
// Angie Radtke 2009 - 2012 thanks to daniel //

/*global window, localStorage, Cookie, altopen, altclose, big, small, rightopen, rightclose, bildauf, bildzu */

function saveIt(name) {
var x = document.getElementById(name).style.display;

if (!x) {
alert('No cookie available');
} else if (localStorage) {
localStorage[name] = x;
}
}

function readIt(name) {
if (localStorage) {
return localStorage[name];
}
}

function wrapperwidth(width) {
jQuery('#wrapper').css('width', width);
}

// add Wai-Aria landmark-roles
jQuery(function($) {
$('#nav').attr('role', 'navigation');
$('#mod-search-searchword').closest('form').attr('role', 'search');
$('#main').attr('role', 'main');
$('#right').attr('role', 'contentinfo');
});

jQuery(function($) {
// get ankers
var $myankers = $('a.opencloselink');
$myankers.each(function() {
var $element = $(this);
$element.attr('role', 'tab');
var myid = $element.attr('id');
myid = myid.split('_');
myid = 'module_' + myid[1];
$element.attr('aria-controls', myid);
});

var $list = $('div.moduletable_js');
$list.each(function() {
var $element = $(this);
if ($element.find('div.module_content').length) {
var $el = $element.find('div.module_content');
$el.attr('role', 'tabpanel');
var myid = $el.attr('id');
myid = myid.split('_');
myid = 'link_' + myid[1];
$el.attr('aria-labelledby', myid);
var myclass = $el.attr('class');
var one = myclass.split(' ');
// search for active menu-item
var $listelement = $el.find('a.active').first();
var unique = $el.attr('id');
var nocookieset = readIt(unique);
if (($listelement.length) || ((one[1] == 'open') && (nocookieset == null))) {
$el.show();
var $eltern = $el.parent();
var $elternh = $eltern.find('h3').first();
var $elternbild = $eltern.find('img').first();
$elternbild.attr('alt', altopen).attr('src', bildzu);
$elternbild.focus();
} else {
$el.hide();
$el.attr('aria-expanded', 'false');
}

unique = $el.attr('id');
var cookieset = readIt(unique);
if (cookieset === 'block') {
$el.show();
$el.attr('aria-expanded', 'true');
}

}
});
});

jQuery(function($) {
var $what = $('#right');
// if rightcolumn
if ($what.length) {
var whatid = $what.attr('id');
var rightcookie = readIt(whatid);
if (rightcookie === 'none') {
$what.hide();
$('#nav').addClass('leftbigger');
wrapperwidth(big);
var $grafik = $('#bild');
$grafik.html(rightopen);
$grafik.focus();
}
}
});

function auf(key) {
var $ = jQuery.noConflict();
var $el = $('#' + key);

if (!$el.is(':visible')) {
$el.show();
$el.attr('aria-expanded', 'true');

if (key !== 'right') {
$el.hide().toggle('slide');
$el.parent().attr('class', 'slide');
$eltern = $el.parent().parent();
$elternh = $eltern.find('h3').first();
$elternh.addClass('high');
$elternbild = $eltern.find('img').first();
$el.focus();
$elternbild.attr('alt', altopen).attr('src', bildzu);
}

if (key === 'right') {
$('#right').show();
wrapperwidth(small);
$('#nav').removeClass('leftbigger');
$grafik = $('#bild');
$('#bild').html(rightclose);
$grafik.focus();
}
} else {
$el.hide();
$el.attr('aria-expanded', 'false');

$el.removeClass('open');

if (key !== 'right') {
$eltern = $el.parent().parent();
$elternh = $eltern.find('h3').first();
$elternh.removeClass('high');
$elternbild = $eltern.find('img').first();
$elternbild.attr('alt', altclose).attr('src', bildauf);
$elternbild.focus();
}

if (key === 'right') {
$('#right').hide();
wrapperwidth(big);
$('#nav').addClass('leftbigger');
$grafik = $('#bild');
$grafik.html(rightopen);
$grafik.focus();
}
}
// write cookie
saveIt(key);
}

// ########### Tabfunctions ####################

jQuery(function($) {
var $alldivs = $('div.tabcontent');
var $outerdivs = $('div.tabouter');
//outerdivs = outerdivs.getProperty('id');

$outerdivs.each(function() {
var $alldivs = $(this).find('div.tabcontent');
var count = 0;
var countankers = 0;
$alldivs.each(function() {
var $el = $(this);
count++;
$el.attr('role', 'tabpanel');
$el.attr('aria-hidden', 'false');
$el.attr('aria-expanded', 'true');
elid = $el.attr('id');
elid = elid.split('_');
elid = 'link_' + elid[1];
$el.attr('aria-labelledby', elid);

if (count !== 1) {
$el.addClass('tabclosed').removeClass('tabopen');
$el.attr('aria-hidden', 'true');
$el.attr('aria-expanded', 'false');
}
});

$allankers = $(this).find('ul.tabs').first().find('a');

$allankers.each(function() {
countankers++;
var $el = $(this);
$el.attr('aria-selected', 'true');
$el.attr('role', 'tab');
linkid = $el.attr('id');
moduleid = linkid.split('_');
moduleid = 'module_' + moduleid[1];
$el.attr('aria-controls', moduleid);

if (countankers != 1) {
$el.addClass('linkclosed').removeClass('linkopen');
$el.attr('aria-selected', 'false');
}
});
});
});

function tabshow(elid) {
var $ = jQuery.noConflict();
var $el = $('#' + elid);
var $outerdiv = $el.parent();

var $alldivs = $outerdiv.find('div.tabcontent');
var $liste = $outerdiv.find('ul.tabs').first();

$liste.find('a').attr('aria-selected', 'false');

$alldivs.each(function() {
var $element = $(this);
$element.addClass('tabclosed').removeClass('tabopen');
$element.attr('aria-hidden', 'true');
$element.attr('aria-expanded', 'false');
});

$el.addClass('tabopen').removeClass('tabclosed');
$el.attr('aria-hidden', 'false');
$el.attr('aria-expanded', 'true');
$el.focus();
var getid = elid.split('_');
var activelink = '#link_' + getid[1];
$(activelink).attr('aria-selected', 'true');
$liste.find('a').addClass('linkclosed').removeClass('linkopen');
$(activelink).addClass('linkopen').removeClass('linkclosed');
}

function nexttab(el) {
var $ = jQuery.noConflict();
var $outerdiv = $('#' + el).parent();
var $liste = $outerdiv.find('ul.tabs').first();
var getid = el.split('_');
var activelink = '#link_' + getid[1];
var aktiverlink = $(activelink).attr('aria-selected');
var $tablinks = $liste.find('a');

for (var i = 0; i < $tablinks.length; i++) {
if ($($tablinks).attr('id') === activelink) {
if ($($tablinks[i + 1]).length) {
$($tablinks[i + 1]).click();
break;
}
}
}
}

// mobilemenuheader
var mobileMenu = function(){

var $ = jQuery.noConflict(), displayed = false, $mobile, $menu, $menuWrapper;

var getX = function() {
return $(document).width();
};

var createElements = function () {
var Openmenu=Joomla.JText._('TPL_BEEZ3_OPENMENU');
var Closemenu=Joomla.JText._('TPL_BEEZ3_CLOSEMENU');
$menu = $("#header").find('ul.menu').first();
$menuWrapper = $('<div>', {id : 'menuwrapper', role: 'menubar'});

// create the menu opener and assign events
$mobile = $('<div>', {id: 'mobile_select'}).html('<h2><a href="#" id="menuopener" onclick="return false;"><span>'+Openmenu+'</span></a></h2>').show();
$mobile.on('click', function(){
var state = $menuWrapper.css('display');
$menuWrapper.slideToggle();

if (state === 'none') {
$('#menuopener').html(Closemenu);
$('#menuwrapper').attr('aria-expanded', 'true').attr('aria-hidden','false');
} else {
$('#menuopener').html(Openmenu);
$('#menuwrapper').attr('aria-expanded', 'false').attr('aria-hidden', 'true');
}
});

// add the menu to the dom
$menu.wrap($menuWrapper);

// add the menuopener to the dom and hide it
$('#header').find('#menuwrapper').first().before($mobile.hide());
$menuWrapper = $('#menuwrapper');
$mobile = $('#mobile_select');

};
var display = function () {
$menuWrapper.hide();
$mobile.show();
displayed = true;
};

var initialize = function () {
// create the elements once
createElements();

// show the elements if the browser size is smaller
if (getX() <= 461 && !displayed) {
display();
}




//For discussion and comments, see: http://remysharp.com/2009/01/07/html5-enabling-script/
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,canvas,datalist,details,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.length;while(i--){document.createElement(e)}})()

}


Locked

Return to “Extensions for Joomla! 3.x”