From 043df0ae5022f112d8af0d0fc43fcb6cb490112b Mon Sep 17 00:00:00 2001 From: waridrox Date: Mon, 21 Jun 2021 02:09:36 +0530 Subject: [PATCH] Both old and new-capture work along with cross-browser support --- app/assets/config/manifest.js | 10 +- app/assets/javascripts/application.js | 15 +- app/assets/stylesheets/application.css | 8 +- app/views/capture/index.html.erb | 23 +- app/views/capture/index2.html.erb | 695 ++++++++++++------------- 5 files changed, 368 insertions(+), 383 deletions(-) diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js index 453f5b6f4..e7aada2ed 100644 --- a/app/assets/config/manifest.js +++ b/app/assets/config/manifest.js @@ -2,6 +2,14 @@ //= link application.css //= link application.js //= link capture.css +//= link new-capture.css //= link capture.js //= link analyze.js -//= link upload.js \ No newline at end of file +//= link upload.js +//= link jquery.flot.js +//= link jquery.flot.crosshair.js +//= link jquery.flot.threshold.js +//= link d3.js +//= link nv.d3.js +//= link nv.d3.min.css +//= link api.js \ No newline at end of file diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 9d0d8156e..d02b27c48 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -12,15 +12,12 @@ // //= require jquery //= require jquery_ujs -//= require bootstrap-css/js/bootstrap.min.js -//= require getusermedia.js/dist/getUserMedia.min.js +//= require jquery-steps.js +//= require bootstrap.min.js //= require basics.js //= require api.js //= require comment.js -//= require flot/jquery.flot.js -//= require flot/jquery.flot.crosshair.js -//= require flot/jquery.flot.threshold.js -//= require d3/d3.js -//= require nvd3/build/nv.d3.js -//= require moment/moment.js -//= require spectral-workbench/dist/spectral-workbench.js +//= require moment.js +//= require d3.js +//= require nv.d3.js +//= require spectral-workbench.js \ No newline at end of file diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 79c3099ec..ecfce45a4 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -8,12 +8,14 @@ * You're free to add application-wide styles to this file and they'll appear at the top of the * compiled file, but it's generally better to create a new file per style scope. * - *= require bootstrap-css/css/bootstrap.min.css - *= require bootstrap-css/css/bootstrap-responsive.min.css - *= require nvd3/build/nv.d3.css + *= require bootstrap.min.css + *= require bootstrap-responsive.min.css + *= require nv.d3.min.css *= require style *= require graph *= require comment + *= require spectral-workbench + *= require font-awesome * *= require_self * require_tree . diff --git a/app/views/capture/index.html.erb b/app/views/capture/index.html.erb index b674590a6..1fa97eca3 100644 --- a/app/views/capture/index.html.erb +++ b/app/views/capture/index.html.erb @@ -1,3 +1,12 @@ +<%= javascript_include_tag "jquery.flot" %> +<%= javascript_include_tag "jquery.flot.crosshair" %> +<%= javascript_include_tag "jquery.flot.threshold" %> +<%= javascript_include_tag "d3" %> +<%= javascript_include_tag "nv.d3" %> + + + + <% unless logged_in? %>