diff --git a/public/static/css/styles.css b/public/static/css/styles.css index 8969d88..43756b2 100644 --- a/public/static/css/styles.css +++ b/public/static/css/styles.css @@ -174,6 +174,11 @@ hr{ display: none; } +.noteContent img { + width: 90%; + padding-left: 10%; +} + .toggle{ cursor: pointer; margin-top:-30px; diff --git a/templates/home.html b/templates/home.html index 61af4e5..a235bf4 100644 --- a/templates/home.html +++ b/templates/home.html @@ -37,12 +37,12 @@ {{end}} -
+ diff --git a/views/addViews.go b/views/addViews.go index 9b73fae..065c638 100644 --- a/views/addViews.go +++ b/views/addViews.go @@ -35,6 +35,7 @@ func UploadedFileHandler(w http.ResponseWriter, r *http.Request) { //AddTaskFunc is used to handle the addition of new task, "/add" URL func AddTaskFunc(w http.ResponseWriter, r *http.Request) { if r.Method == "POST" { // Will work only for POST requests, will redirect to home + var filelink string // will store the html when we have files to be uploaded, appened to the note content r.ParseForm() file, handler, err := r.FormFile("uploadfile") if err != nil && handler != nil { @@ -87,7 +88,11 @@ func AddTaskFunc(w http.ResponseWriter, r *http.Request) { defer f.Close() io.Copy(f, file) - filelink := "