Split JS resources

Fix for #36
master
Daniel Berteaud 11 years ago
parent 5ef1801ade
commit ecbee1f15c
  1. 2
      templates/default/about.html.ep
  2. 1
      templates/default/error.html.ep
  3. 2
      templates/default/feedback.html.ep
  4. 2
      templates/default/feedback_thanks.html.ep
  5. 1
      templates/default/goodby.html.ep
  6. 2
      templates/default/help.html.ep
  7. 2
      templates/default/index.html.ep
  8. 3
      templates/default/join.html.ep
  9. 4
      templates/default/js_common.html.ep
  10. 5
      templates/default/js_room.html.ep
  11. 1
      templates/default/password.html.ep

@ -38,5 +38,5 @@
</div>
</div>
</div>
%= include 'js_include'
%= include 'js_common'
%= include 'footer'

@ -17,4 +17,5 @@
</div>
</div>
</div>
%= include 'js_common'
%= include 'footer'

@ -25,5 +25,5 @@
</form>
</div>
</div>
%= include 'js_include'
%= include 'js_common'
%= include 'footer'

@ -11,6 +11,6 @@
</div>
</div>
</div>
%= include 'js_include'
%= include 'js_common'
%= include 'footer'

@ -12,4 +12,5 @@
</div>
</div>
</div>
%= include 'js_common'
%= include 'footer'

@ -75,5 +75,5 @@
</div>
</div>
</div>
%= include 'js_include'
%= include 'js_common'
%= include 'footer'

@ -69,5 +69,5 @@
</div>
</div>
</div>
%= include 'js_include'
%= include 'js_common'
%= include 'footer'

@ -273,7 +273,8 @@
</div>
</div>
</div>
%= include 'js_include'
%= include 'js_common'
%= include 'js_room'
<script>
var roomName = '<%= $room %>';
$( document ).ready(function() {

@ -1,9 +1,7 @@
<script type="text/javascript">
var rootUrl = '<%= $self->get_url('/'); %>';
</script>
<% foreach my $js (qw(simplewebrtc.bundle.js jquery-1.11.1.min.js bootstrap.min.js
notify-combined.min.js jquery.browser.min.js sprintf.js
FileSaver.js vroom.js)){
<% foreach my $js (qw(jquery-1.11.1.min.js bootstrap.min.js notify-combined.min.js vroom.js)){
%>
<script type="text/javascript" src="/js/<%= $js %>?<%= $self->get_mtime("js/$js") %>"></script>
<% } %>

@ -0,0 +1,5 @@
<%
foreach my $js (qw(simplewebrtc.bundle.js jquery.browser.min.js sprintf.js FileSaver.js)){
%>
<script type="text/javascript" src="/js/<%= $js %>?<%= $self->get_mtime("js/$js") %>"></script>
<% } %>

@ -25,4 +25,5 @@
</form>
</div>
</div>
%= include 'js_common'
%= include 'footer'

Loading…
Cancel
Save