Put all JS stuff in its own ep template, so it can be included easily in the different pages

master
Daniel Berteaud 11 years ago
parent 64baaa6862
commit d189b2ec06
  1. 5
      templates/default/index.html.ep
  2. 8
      templates/default/join.html.ep
  3. 7
      templates/default/js_include.html.ep

@ -64,8 +64,5 @@
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script> %= include 'js_include'
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/notify-combined.min.js"></script>
<script type="text/javascript" src="/js/vroom.js"></script>
%= include 'footer' %= include 'footer'

@ -101,13 +101,7 @@
<div> <div>
</div> </div>
</div> </div>
<script type="text/javascript" src="/js/simplewebrtc.bundle.js"></script> %= include 'js_include'
<script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/notify-combined.min.js"></script>
<script type="text/javascript" src="/js/jquery.browser.min.js"></script>
<script type="text/javascript" src="/js/sprintf.js"></script>
<script type="text/javascript" src="/js/vroom.js"></script>
<script> <script>
var actionUrl = '<%= $self->url_for('/action') %>'; var actionUrl = '<%= $self->url_for('/action') %>';
var goodbyUrl = '<%= $self->url_for('/goodby') %>'; var goodbyUrl = '<%= $self->url_for('/goodby') %>';

@ -0,0 +1,7 @@
<script type="text/javascript" src="/js/simplewebrtc.bundle.js"></script>
<script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/notify-combined.min.js"></script>
<script type="text/javascript" src="/js/jquery.browser.min.js"></script>
<script type="text/javascript" src="/js/sprintf.js"></script>
<script type="text/javascript" src="/js/vroom.js"></script>
Loading…
Cancel
Save