Fullpage.js无法在Mozilla上运行但在Chrome上运行正常吗?

时间:2015-02-02 08:50:46

标签: javascript jquery fullpage.js

这是网站:carrotcrunchpvp.comule.com。该网站是按照16:9制作的,但除此之外 - 它似乎不想去任何导航链接,你不能触摸滚动,你不能使用键盘(最重要的是......)。我尝试将jquery的版本更改为旧版本,但它没有修复任何内容。

当我点击方向时(例如)我在控制台中弹出这个: KeyboardEvent.key值"左"已过时,将重命名为" ArrowLeft"。如需更多帮助https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.key

Calctheta未定义哪一部分是intialisation.js http://carrotcrunchpvp.comule.com/intialisation.js

1 个答案:

答案 0 :(得分:0)

它在Chrome中也不起作用...... 在包含插件之前,您无法初始化该插件。您要将文件initialisation.js包括在fullPage.js之前。

这并不包括fullpage.js,对于任何其他插件或javascript函数都是如此。

初始化包含应该在最后,就在任何插件初始化之后。

<title>Catholic Professional Standards</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link href="jquery.fullPage.css" rel="stylesheet" type="text/css">
<link href="style.css" rel="stylesheet" type="text/css">
<link href="media_queries.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
<script src="jquery.fullPage.js" type="text/javascript"></script>
<script src="loadingscreen.js" type="text/javascript"></script>

<script src="intialisation.js" type="text/javascript"></script>