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?

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?

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

Create a rectangle when the mouse is pressed down

Creating a zoomable and pannable canvas in Fabric.js was easy, but now I am facing an issue with accurately drawing a rectangle on each mousedown event. The problem arises when the canvas is transformed from its original state, making the coordinates inacc ...

Transmit information from a Chrome extension to a Node.js server

Recently, I developed a basic Chrome extension that captures a few clicks on a specific webpage and stores the data in my content_script. Now, I am looking for ways to transmit this data (in JSON format) to my node.js file located at /start. I am seeking ...

Overriding default styles in an Angular component to customize the Bootstrap navbar

Is there a way to alter the color of the app's navbar when a specific page is accessed? The navbar is set in the app.component.html file, and I am attempting to customize it in a component's css file. app.component.html <nav class="navbar na ...

Enhance the annotation of JS types for arguments with default values

Currently, I am working within a code base that predominantly uses JS files, rather than TS. However, I have decided to incorporate tsc for type validation. In TypeScript, one method of inferring types for arguments is based on default values. For example ...

"Troubleshooting Problem with JSON Encoding in PHP and Parsing with getJSON in

Apologies if this sounds like yet another discussion on the topic, but I've been struggling for hours without finding a solution. I'm attempting to retrieve data from a MySQL database, generate a JSON using PHP, and then parse this JSON in JavaS ...

Deliver JSX components that match one or more keys in the array of strings

Seeking assistance and guidance here. It seems like I might be overlooking something obvious. I am attempting to create a component that accepts either a string or string Array string[] as a property. const ComponentThatReturnsElement = (someElementName) = ...

How to efficiently target and manipulate links using jQuery Mobile

I previously asked a question about loading an external page without ajax while maintaining it as an iOS web app window. In that example, I used the following code: <script> $(document).bind('pageinit', function() { $("#test").click(func ...

Navigating through Expression Engine and utilizing conditional statements

Would greatly appreciate some assistance with this issue. I am working on an Expression Engine website and encountering difficulties with simple conditionals for navigation active states. Despite having a color state designated within the styles, there s ...

ng-disable will only evaluate when the page is initially loaded

I am facing an issue with around 10 textboxes on a form page. The condition I have is as follows: Disable the textboxes if the logged in user does not have permission Disable the textbox if the user has permission, but there is already a value loaded fro ...

Adjusting Position for Parallax Effect using Jquery

I am currently experimenting with a basic Scrolldeck Jquery Parallax effect to scroll items at varying speeds. However, I am encountering some difficulties in making items move from top to bottom. In the example provided below, you will see a shoe moving f ...

The proper method for organizing a nested array object - an obstacle arises when attempting to sort the array

I have a collection of data fetched from Web API 2.2 stored in an Angular array as objects. Each object represents a Client and includes properties like name, surname, and a collection of contracts assigned to that client. Here is the interface definition ...

React Native ScrollView with a custom footer that adjusts its size based on the content inside (

I've implemented the code below to ensure that the blue area in image 1 remains non-scrollable when there is sufficient space, but becomes scrollable when space is limited. However, I'm facing an issue where the ScrollView component is adding ext ...

Controlling the behavior of React components in response to updates

I'm currently learning ReactJs and utilizing the ExtReact framework for my project. I have successfully implemented a grid with pagination, which is functioning well. I customized the spinner that appears during data loading and it works as expected ...

Positioning of vertical linear gradients in CSS

Check out this live demonstration: http://jsfiddle.net/nnrgu/1/ I then adjusted the background position to 0px -70px and observed the changes here: http://jsfiddle.net/nnrgu/2/ The linear gradient seems to disappear! Am I doing something wrong, or is ...

Searching for $or command in express.js

Is it possible to use $or in the app.get() function of an express.js application? For example, how would I write a find() query that includes $or like this: db.inventory.find( { $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } ) I'm curious about ...

Separate every variable with a comma, excluding the final one, using jQuery

I've developed a script that automatically inserts checked checkboxes and radio options into the value() of an input field. var burgerName = meat + " with " + bread + " and " + onion + tomato + cheese + salad; $('#burger-name').val(burger ...

Struggling to make React respond to button clicks without resorting to using addEventListener

Can anyone help me figure out why I can't get the onclick handler to execute in reactjs when specifying it inline for a button? The only solution that worked for me was using addEventListener. From what I understand, this code should work: <button ...

Turning off font ligatures in CSS (letter connections deactivation)

Typically, modern web browsers will automatically merge certain letter combinations, such as 'f' and 'i', into a single character known as a ligature. While this can enhance readability, it may not always align with a designer's pr ...

CSS Horizontal Menu positioned left losing its background color due to float property

Can you explain why the background color of the ul element disappears when its child elements are floated? I have a vague memory of reading something about floats causing this issue, but I can't recall the details. (JSFiddle) ul { padding-left: ...

Tips for positioning two elements side by side in an li element without needing to clear each time

I'm struggling with a stacked list that involves floating an image (icon) alongside text. The constant need to clear after each list item is becoming cumbersome. Anyone have any suggestions for making this more streamlined and tidy? <ul> < ...