Require assistance with displaying a menu on a website using JQuery

Is there a way to create a menu similar to the one shown in the image below?https://i.sstatic.net/QxNPL.png

To learn more about this menu, you can visit their website by clicking on this Link. I have copied some code (HTML code and links to CSS and .js files) from there.

Below is the code I am currently using:

<!DOCTYPE html>
<html>
<head>
    <link href="scripts/gooey.min.css" rel="stylesheet" />
    <script src="jquery-2.2.3.js"></script>

    <script src="scripts/gooey.min.js"></script>

    <script src="scripts/jquery-2.1.1.min.js"></script>
</head>

<body>


    <nav id="gooey-upper">
        <input type="checkbox" class="menu-open" name="menu-open1" id="menu-open1" />

        <label class="open-button" for="menu-open1">
            <span class="burger burger-1"></span>
            <span class="burger burger-2"></span>
            <span class="burger burger-3"></span>
        </label>


        <a href="#features" class="gooey-menu-item">
            <i title="Features" class="fa fa-cog fa-2x"></i> Item 1
        </a>
        <a href="#h-spaced-menu" class="gooey-menu-item">
            <i title="Horizontal Menu" class="fa fa-arrows-h fa-2x"></i>Item 2
        </a>
        <a href="#menu-v-example" class="gooey-menu-item">
            <i title="Vertical Menu" class="fa fa-arrows-v fa-2x"></i>Item 3
        </a>
        <a href="#docs" class="gooey-menu-item">
            <i title="Docs" class="fa fa-book fa-2x"></i>Item 4
        </a>
        <a href="#event-api" class="gooey-menu-item">
            <i title="Event API" class="fa fa-code fa-2x"></i>Item 5
        </a>
        <a href="#round" class="gooey-menu-item">
            <i title="Round Menu" class="fa fa-circle fa-2x"></i>Item 6
        </a>
    </nav>

    <script type="text/javascript">
        $(function () {
            $("#gooey-round").gooeymenu({
                bgColor: "#ffc0cb",
                contentColor: "white",
                style: "circle",
                circle: {
                    radius: 85
                },
                size: 80
            });
        });
    </script>

</body>
</html>

I have downloaded all necessary files and linked the required .css and .js files to my code, but I keep getting an error saying "It doesn't contain property googymenu."

If anyone could help me implement this menu item, I would greatly appreciate it.

Thank you very much.

EDIT: Which file do I need to add from all the Font Awesome files?

https://i.sstatic.net/ojLXA.png

Answer №1

This is functioning properly, please refer to the sample provided.

Update

Additional Font-Awesome icons and some CSS adjustments have been made to reposition the menu.

#gooey-upper{
left : 200px;
top : 50px;
}

Sample

$("#gooey-upper").gooeymenu({
   bgColor: "#ff6666",
   contentColor: "white",
   style: "circle",
   horizontal: {
     menuItemPosition: "glue"
   },
   vertical: {
     menuItemPosition: "spaced",
     direction: "up"
   },
   circle: {
     radius: 80
   },
   margin: "small",
   size: 90,
   bounce: true,
   bounceLength: "small",
   transitionStep: 100,
   hover: "#e55b5b"
 });
#gooey-upper{
left : 200px;
top : 50px;
}
<!--Jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!--font awesome-->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!--plugin style-->
<link rel="stylesheet" type="text/css" href="http://www.htmldrive.net/edit_media/2016/201604/20160421/jQuery-menu/css/gooey.min.css">
<!--plugin js-->
<script type="text/javascript" src="http://www.htmldrive.net/edit_media/2016/201604/20160421/jQuery-menu/js/gooey.min.js"></script>

<nav id="gooey-upper">
  <input type="checkbox" class="menu-open" name="menu-open1" id="menu-open1" />

  <label class="open-button" for="menu-open1">
    <span class="burger burger-1"></span>
    <span class="burger burger-2"></span>
    <span class="burger burger-3"></span>
  </label>

  <a href="#features" class="gooey-menu-item">
    <i title="Features" class="fa fa-cog fa-2x"></i>
  </a>
  <a href="#h-spaced-menu" class="gooey-menu-item">
    <i title="Horizontal Menu" class="fa fa-arrows-h fa-2x"></i>
  </a>
  <a href="#menu-v-example" class="gooey-menu-item">
    <i title="Vertical Menu" class="fa fa-arrows-v fa-2x"></i>
  </a>
  <a href="#docs" class="gooey-menu-item">
    <i title="Docs" class="fa fa-book fa-2x"></i>
  </a>
  <a href="#event-api" class="gooey-menu-item">
    <i title="Event API" class="fa fa-code fa-2x"></i>
  </a>
  <a href="#round" class="gooey-menu-item">
    <i title="Round Menu" class="fa fa-circle fa-2x"></i>
  </a>
</nav>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Tips on eliminating the top margin on my webpage

I am in need of assistance with removing the margin at the top of my page. Take a look at the screenshot for reference: As shown in the image, there is a red arrow pointing to the problematic margin. Can someone guide me on how to eliminate this margin? B ...

Troubleshooting the challenges with jQuery's next().addClass() and prev().addClass() functions

I am attempting to create a slider feature. I have four different contents that I've positioned consecutively, but made them invisible initially. I defined a class called active-client with the attribute display: flex. Using jQuery's addClass() m ...

Leverage the power of puppeteer alongside webpack

Struggling to make puppeteer work with webpack? Despite adding it to package.json and configuring webpack.dev, the 'launch' function still throws errors. Here's what I've tried: Installed dependency in package.json: npm i puppeteer In ...

Steps for refreshing a JavaScript function responsible for generating a table

Within the code snippet provided, there is a click event attached to a table row. Upon clicking a row, the script extracts the id value from the first column and triggers a REST call. Subsequently, a new table is constructed using a third-party function ca ...

Struggling to navigate web pages with Selenium using Java is proving to be a challenge

I am currently working on using Selenium's HtmlUnitDriver and WebElement classes in Java to automate clicking the "Download as CSV" button on Google Trends. The issue that I am encountering is that the button remains hidden until another settings men ...

Utilizing jQuery AJAX with a plethora of dynamically created div elements

Within my JSP file, I have a series of divs that are created dynamically based on a database value. These divs have ids such as event1, event2, and so on. Let's focus on the div with the id event1. Inside this div, there is a button with the id foll1 ...

Angular directive ng-clickIs the directive in angular known as

I am struggling to understand why my ng-click function in my directive is not triggering the fooControls clickTest. Why isn't clickTest logging to the console? Is there a more efficient way to accomplish this? Custom Directive app.directive('fo ...

Exploring the use of barcodes with node.js

Having some issues with generating a barcode using a barcode module from NPMJS called npm i barcode. I am getting an error message res is not defined even after following the instructions. Can someone please guide me in the right direction? Here is my code ...

Best method for reverting react-native to previous version

Here's the dilemma I'm facing: I had a functional version of a react-native project that was running smoothly and committed to my git repository. Deciding to upgrade from react-native 0.26.3 to 0.28 led me into a tangled web of dependencies, so ...

Creating multi-level nested lists with numbering using HTML and CSS

Is there a way to create a unique numbering format using only HTML and CSS lists (<ul> or <ol>)? 1. Item A 2. Item B 3. Item C 3.1. Subitem C.1 3.2. Subitem C.2 3.3. Subitem C.3 4. Item D 4.1. Subitem D.1 4.1.1 Sub-subi ...

The functionality of Ajax calls is malfunctioning specifically in Internet Explorer

I followed the cart/jquery ajax tutorial found on this codeigniter cart and jquery tutorial at nettuts+ The implementation works perfectly in all browsers except for IE. I suspect it might be related to a css selector that earlier versions of IE do not su ...

State of loading getServerSideProps in Next.js

Can we implement a loading state similar to when retrieving data on the client-side? I'm interested in having a loading state, maybe with a loading-skeleton like react-loading-skeleton On the client-side, we can achieve this by: import useSWR from & ...

Use of absolute positioning resulted in the disappearance of the element

Can anyone assist with resolving the issue I am encountering? I currently have three nested divs as follows: <div class="section"> <div class="parent"> <div class="child"> Some random text. </div> </div> </div> To adj ...

What is the best way to align li elements in a ul list at the

How can I center ul elements on a web page? I have checked similar questions on this site and tried using text-align in my CSS file to center the elements, but it didn't work as expected. I also attempted to use margins which did center the elements, ...

Activating the mousewheel effect exclusively on specific div sections, rather than the entire page

After researching mousewheel events in jQuery, I realize that my lack of knowledge may be hindering my ability to find useful answers. I am looking to create a mousewheel effect that is only triggered within a specific div called #scroller. Currently, I am ...

Best practices for integrating Vuex with Vuelidation

Currently, I am developing a Vue front end for an application that necessitates storing all form data locally before sending it to the backend in case of any network connectivity issues. To achieve this, I am using Vuex to manage and retain all the necessa ...

What additional requirements are needed for Rails and remote AJAX with the "true" setting?

I'm a bit confused about the purpose of remote:true in Rails forms. I initially thought that it required some Javascript to enable asynchronous functionality, but instead it seems to be causing issues with my page. Below is a simple index.html.haml f ...

Personalized Bootstrap 4.1 Toggle Animation

I have been attempting to implement a customized menu toggle on Bootstrap 4.0's Navbar menu, using the code provided by Codeply HERE. My goal is to apply the X toggle style to my website's bootstrap navbar. Below is the current setup I have imple ...

Tips for choosing nested elements with basic CSS selectors like nth-of-type or nth-child for Selenium

Is there a way to select the paragraph tag for B (or C) by utilizing nth-child or nth-of-type in Selenium WebDriver? <tr> <td> <p class="myClass">A</p> </td> </tr> <tr> <td> <p ...

jQuery does not support iterating over JavaScript objects

Here is the code snippet I am working with: $(obj).each(function(i, prop) { tr.append('<td>'+ i +'</td>' + '<td>'+ prop +'</td>'); }); Intriguingly, the data in $(obj) appears as: Obje ...