From 73b1d3c7c2babd5a93efba78749f18bb1f84e6b4 Mon Sep 17 00:00:00 2001 From: yanas Date: Thu, 5 Nov 2015 11:27:26 -0600 Subject: [PATCH] Adds a feedback button and dialog. --- Makefile | 4 +- css/feedback.css | 48 +++++++ css/main.css | 28 +++- index.html | 7 +- lang/main.json | 6 +- modules/UI/Feedback.js | 214 ++++++++++++++++++++++++++++++ modules/UI/UI.js | 5 + modules/UI/toolbars/Toolbar.js | 44 +++--- modules/UI/util/MessageHandler.js | 3 +- modules/statistics/CallStats.js | 21 ++- 10 files changed, 345 insertions(+), 35 deletions(-) create mode 100644 css/feedback.css create mode 100644 modules/UI/Feedback.js diff --git a/Makefile b/Makefile index 1d2d20f4e..6f5a920db 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,12 @@ BROWSERIFY = ./node_modules/.bin/browserify UGLIFYJS = ./node_modules/.bin/uglifyjs EXORCIST = ./node_modules/.bin/exorcist CLEANCSS = ./node_modules/.bin/cleancss -CSS_FILES = font.css toastr.css main.css videolayout_default.css font-awesome.css jquery-impromptu.css modaldialog.css notice.css popup_menu.css login_menu.css popover.css jitsi_popover.css contact_list.css chat.css welcome_page.css settingsmenu.css +CSS_FILES = font.css toastr.css main.css videolayout_default.css font-awesome.css jquery-impromptu.css modaldialog.css notice.css popup_menu.css login_menu.css popover.css jitsi_popover.css contact_list.css chat.css welcome_page.css settingsmenu.css feedback.css DEPLOY_DIR = libs BROWSERIFY_FLAGS = -d OUTPUT_DIR = . -all: compile uglify deploy clean +all: compile uglify deploy clean compile: $(NPM) update && $(BROWSERIFY) $(BROWSERIFY_FLAGS) -e app.js -s APP | $(EXORCIST) $(OUTPUT_DIR)/app.bundle.js.map > $(OUTPUT_DIR)/app.bundle.js diff --git a/css/feedback.css b/css/feedback.css new file mode 100644 index 000000000..ea8ae88d5 --- /dev/null +++ b/css/feedback.css @@ -0,0 +1,48 @@ +/** + * The feedback window inner div css. + */ +.feedback { + width: 450px; + display: block; + margin-left: auto; + margin-right: auto; + text-align: center; + font-size: 22px; +} + +/** + * Style of the thank you text inside the feedback window. + */ +.feedbackTitle { + font-size: 22px; + color: #087dba; +} + +/** + * Stars div css. + */ +#stars { + font-size: 30px; +} + +/** + * Star css. + */ +#stars>a { + padding-right: 4px; +} + +/** + * Mouse over a star. + */ +.starHover { + color: #087dba; +} + +/** + * Detailed feedback section text area style. + */ +.feedbackDetails textarea { + resize: vertical; + min-height: 100px; +} \ No newline at end of file diff --git a/css/main.css b/css/main.css index 5bcda6c42..e4855d8c9 100644 --- a/css/main.css +++ b/css/main.css @@ -10,7 +10,7 @@ html, body{ font-family:'Helvetica Neue', Helvetica, sans-serif; font-weight: 400; background: #000000; - overflow-x: hidden; + overflow: hidden; } .right-panel { @@ -236,10 +236,34 @@ form { bottom: 5; left: 5; overflow: visible; - z-index: 100; color: rgba(255,255,255,.50); } +#feedbackButton { + position: absolute; + bottom: 60; + left: 60; + overflow: visible; + color: rgba(255,255,255,.50); +} + +div.feedbackButton { + position: absolute; + background-color: rgba(0,0,0,.50); + border-radius: 50%; + width: 100px; + height: 100px; + bottom: -50px; + left: -50px; + z-index: 100; + overflow: hidden; + transition: all .2s ease-in-out; +} + +div.feedbackButton:hover { + transform: scale(1.3); +} + #bottomToolbar { display:block; position: absolute; diff --git a/index.html b/index.html index 98e377cfb..6d639d693 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - +