For <script> tags you need to use the src attribute :)
<script src="/js/list.js">
I have a public folder with css and js folders in it. Inside the css folder is a bulma.css file. In the js folder there is a searchInit.js file. When i try to bring these in via link/script tags it just ignores the js ones.
My html looks like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('app.name', 'Conan: ') }} @yield('title')</title>
<!-- Styles -->
<link href="/css/bulma.css" rel="stylesheet" type="text/css" />
{{-- <link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.4.2/css/bulma.css" rel="stylesheet" type="text/css" /> --}}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
@yield('css_links')
</head>
<body>
<div id="app">
@include('partials/header')
<div class="columns">
<div class="column is-one-quarter">
@yield('sidebar')
</div>
<div class="column is-three-quarters">
@yield('content')
</div>
</div>
@include('partials/footer')
</div>
<script href="/js/list.js" type="text/javascript"></script>
<script href="/js/searchInit.js" type="text/javascript"></script>
</body>
</html>
When i load the page this is what the src looks like: http://i.imgur.com/08b9v48.png
What i don't understand is; why is it ignoring the js folder/files. Even when i move a js file into the css folder, it still doesn't see it. I have no way of diagnosing this problem because i never had it before and i have not found my problem through the googlez.
For <script> tags you need to use the src attribute :)
<script src="/js/list.js">
Please or to participate in this conversation.