Unverified Commit ce78dafa authored by Pavel Ševčík's avatar Pavel Ševčík
Browse files

Fix JS glitch

parent 4a3e03ad
(function($){
$(document).ready(function(){
$('.sidenav').sidenav();
$('.parallax').parallax();
$('.materialboxed').materialbox(); // centers the image and enlarges
$('.carousel.carousel-slider').carousel({
fullWidth: true,
indicators: true
}); // full-width slider carousel
}); // end of document ready
})(jQuery); // end of jQuery name space
import React from "react";
import React, { useEffect } from "react";
import Head from "next/head";
import { Layout } from "../components/Layout";
......@@ -11,6 +11,12 @@ const description =
'RoninDojo is a Samourai Wallet Community-driven Bitcoin full node stack optimized for Single Board Computers, like the Raspberry Pi 4. Our user interfaces and powerful features are fit for any level Bitcoiner. RoninDojo is focused on providing the tools you need to safely and securely use your Samourai Wallet and Hardware Wallet so you can "Be your own Master!".';
const MyApp = ({ Component, pageProps }) => {
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery(".sidenav").sidenav();
}, []);
return (
<Layout>
<Head>
......@@ -41,7 +47,6 @@ const MyApp = ({ Component, pageProps }) => {
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js" defer />
<script src="/js/materialize.js" defer />
<script src="/js/init.js" defer />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png" />
......
import React, { Fragment } from "react";
import React, { Fragment, useEffect } from "react";
import { NextPage } from "next";
import Head from "next/head";
const HomePage: NextPage = () => {
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery('.parallax').parallax();
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery('.materialboxed').materialbox(); // centers the image and enlarges
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.jQuery('.carousel.carousel-slider').carousel({
fullWidth: true,
indicators: true
}); // full-width slider carousel
}, []);
return (
<Fragment>
<Head>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment