解决重大错误后,插件(floatThead.js)不再起作用

时间:2019-04-23 13:17:47

标签: javascript html laravel

我的IDE将开始标题更改为开始脚本标签。我已经通过CDN导入了插件(floatThead),并且效果很好。发现错误并解决后,该插件不再起作用。我什么都没改变,我机智。

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name', 'Laravel') }}</title>

<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>


<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">

<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">

<!-- Images -->
<link rel="shortcut icon" href="{{{ asset('img/favicon.png') }}}">

{{--JS--}}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

{{--floatThead--}}
<meta http-equiv="X-UA-Compatible" content="IE=10; IE=9; IE=8; IE=7; IE=EDGE"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/floatthead/2.1.3/jquery.floatThead.js"></script>

{{--Script for toggling between showing and hiding competences--}}
<script>
    // expand competences
    $(document).ready(function () {
        $('#competenceToggler').click(function () {
            $('#competencesForm').slideToggle()
        })
    })
</script>

</head>

0 个答案:

没有答案