From bf2bc33de7ee499e6a2677f9c1ef55eab7065e73 Mon Sep 17 00:00:00 2001 From: IgorSpi Date: Sat, 12 Oct 2019 16:27:35 +0200 Subject: [PATCH 1/6] Added a form in home page that takes as input a github url from a ipynb notebook and redirects the user to the page showing the difference between original notebook and a converted one --- src/templates/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/templates/index.html b/src/templates/index.html index 3a3e5fd..d4399d7 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -21,6 +21,21 @@

Idea

How

+Just copy and paste the ipynd notebook's url here +
+ + +
+ Just replace https://github.com/ with http://tf2up.ml. For example, you would like to upgrade http://github.com/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_restore_models.ipynb From 0ba0e4fedacf4081460f5e60fd665ac5f0bf9d59 Mon Sep 17 00:00:00 2001 From: IgorSpi Date: Sat, 12 Oct 2019 16:43:55 +0200 Subject: [PATCH 2/6] Changed font-size and the width of the input --- src/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/index.html b/src/templates/index.html index d4399d7..e54d92e 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -24,7 +24,7 @@

How

Just copy and paste the ipynd notebook's url here
- +
-Just replace https://github.com/ with http://tf2up.ml. +Or just replace https://github.com/ with http://tf2up.ml. For example, you would like to upgrade http://github.com/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_restore_models.ipynb you would need to replace url to From 3d87ea1dda5100373383e6dd84f484c4e4fc112c Mon Sep 17 00:00:00 2001 From: IgorSpi Date: Sat, 12 Oct 2019 16:53:39 +0200 Subject: [PATCH 3/6] changed the margins of the input form and changed the background color of convert button --- src/templates/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/templates/index.html b/src/templates/index.html index e54d92e..aa8dee1 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -22,9 +22,10 @@

Idea

How

Just copy and paste the ipynd notebook's url here -
+ - + +
From 471e250043f5ab3ee1ed5db01cf97fb77f7a7504 Mon Sep 17 00:00:00 2001 From: IgorSpi Date: Sat, 12 Oct 2019 17:10:00 +0200 Subject: [PATCH 5/6] adding the css file --- src/static/main.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/static/main.css b/src/static/main.css index 371200a..bc17be1 100644 --- a/src/static/main.css +++ b/src/static/main.css @@ -43,4 +43,18 @@ nav ul li a, nav ul li span, header .action { display: block; padding: 0.5rem; } right: 0; border: 0; z-index: 42; +} + +#notebookUrl{ + font-size: 18px; + width: 90%; +} + +#submitUrlButton{ + font-size: 18px; + background-color:#cae6f6; +} + +#redirectToUrlForm{ + margin:1em; } \ No newline at end of file From e0b52f42c522ec36351fd8bf754010e6308262f4 Mon Sep 17 00:00:00 2001 From: IgorSpi Date: Sat, 12 Oct 2019 18:59:34 +0200 Subject: [PATCH 6/6] removing unused comment from index.html line 88 --- src/templates/index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/src/templates/index.html b/src/templates/index.html index 2ba13c1..cffc1ac 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -24,7 +24,6 @@

How

Just copy and paste the ipynd notebook's url here
-