1

I have a laravel project and just wanted to use a simple timer jquery script in it. I created a new folder in views, placed there my code. I also placed there another folder called flip_timer with jquery files. My problem is that i cannot make the script paths work "not found http exception". Folder structure looks like this: folder in views > contains file(code below) and folder including all the needed files. Whenever i try to run the link with code the page is empty, and when i click to see the source code and click on the css or js link it shows me the error i mentioned above...

<link rel="stylesheet" type="text/css" href="flip_timer/jquery.flipcountdown.css" />
<script type="text/javascript" src="flip_timer/jquery.min.js"></script>
<script type="text/javascript" src="flip_timer/jquery.flipcountdown.js"></script>


<div id="retroclockbox1">
  <script>
    jQuery(function($){
    $('#retroclockbox1').flipcountdown();
})
  </script>
</div>
2
  • 3
    See top answer here stackoverflow.com/questions/15232600/… Commented Jul 20, 2015 at 20:50
  • Just in case something happens to the link above, you need to store your assets (css / js) inside Laravel's public directory. Commented Jul 20, 2015 at 23:04

1 Answer 1

1

put your jquery.flipcountdown.css file in inside css folder named: css/flip_timer/jquery.flipcountdown.css AND your both js file inside js folder named:js/flip_timer/jquery.min.js and js/flip_timer/jquery.flipcountdown.js and then put below code in your html file.

<link rel="stylesheet" href="{{ URL::asset('css/flip_timer/jquery.flipcountdown.css') }}" />

AND for js file

<script type="text/javascript" src="{{ URL::asset('js/flip_timer/jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('js/flip_timer/jquery.flipcountdown.js') }}"></script>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.