From 649120cff7bb3c682d55bb6e009b504682cc7b04 Mon Sep 17 00:00:00 2001 From: IshaGupta18 Date: Tue, 21 May 2019 17:42:13 +0530 Subject: [PATCH 1/3] Adding CSV string import function --- examples/upload_file.css | 141 +++++++++++++++++++---- examples/upload_file.html | 104 ++++++++++++----- src/parsing.js | 228 +++++++++++++++++++++++++++++++------- 3 files changed, 380 insertions(+), 93 deletions(-) diff --git a/examples/upload_file.css b/examples/upload_file.css index b5daffb..f452516 100644 --- a/examples/upload_file.css +++ b/examples/upload_file.css @@ -1,12 +1,12 @@ .main_container{ - margin:0 auto; - width: 50%; - margin-top: 300px; - height: 500px; - display: flex; - flex-direction: column; - justify-content: space-around; - align-items: center; + margin:0 auto; + width: 50%; + margin-top: 300px; + height: 600px; + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; } .btn-file { @@ -33,26 +33,123 @@ display: block; } .drag_drop_heading{ - margin-top: 50px; + margin-top: 50px; } - .remote_file{ - width: 300px; - border-radius: 5px; - height: 40px; + .text_field{ + width: 350px; + border-radius: 5px; + height: 40px; padding-left: 5px; } ::placeholder{ - font-size: 12px; + font-size: 12px; } .or { - width:50%; - text-align:center; - border-bottom: 1px solid #000; - line-height:0.1em; - margin:10px 0 20px; + width:45%; + text-align:center; + border-bottom: 1px solid #cccccc; + line-height:0.1em; + margin:10px 0 20px; } .or span { - background:#fff; - padding:0 10px; - } \ No newline at end of file + background:#fff; + padding:0 10px; + font-size: 12px; + color: #595959; + } + .input_box{ + width: 350px; + } + .carousel-indicators{ + top: 200px; + justify-content:space-around; + margin:0; + display: flex; + height: 20px; +} +.tables{ + margin-top: 300px; + text-align: center; + +} +.graph{ + margin-top: 300px; +} +#canvas_container{ + width: 50%; + margin: 0 auto; +} +ol.carousel-indicators li.active { + background: #004080; +} +ol.carousel-indicators li{ + width: 150px; + height: 6px; + cursor: pointer; + background: #cccccc; +} +.carousel_headings{ + justify-content:space-around; + margin:0; + display: flex; + height: 20px; +} +.toggle-handle{ + background: #f2f2f2; + width: 100px; +} +.toggle-on{ + text-align: left; + margin-left: 15px; +} +.toggle-off{ + text-align: right; + margin-right: 15px; +} +.hidden { + display:none; +} +.table_container{ + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; +} +.button_container{ + display: flex; + flex-direction: column; + justify-content: space-around; + height: 100px; + align-items: center; + margin-bottom: 30px; +} +.table{ + font-family: 'Ubuntu Condensed'; + overflow: auto; + width: 500px; +} +.feature_buttons{ + display: flex; + flex-direction: row; + justify-content: space-around; + align-items: center; +} +.headings{ + display: flex; + flex-direction: row; + justify-content: space-around; + align-items: center; + margin-bottom: -160px; +} +.check-inputs{ + margin-left: 10px; + +} +.badge{ + padding: 10px; +} +.csv_string{ + height: 100px; + width: 350px; +} \ No newline at end of file diff --git a/examples/upload_file.html b/examples/upload_file.html index c12d72a..dd2b425 100644 --- a/examples/upload_file.html +++ b/examples/upload_file.html @@ -8,42 +8,88 @@ - + + + + + + + + -
-
- -

Choose a csv file or drag & drop it here

- -
- -
-
OR
-