Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
16a3e9a
added navbar and banner
HeitungSun1 Mar 27, 2023
e0c4f46
try commit with vscode
HeitungSun1 Mar 27, 2023
c8a8a32
try commit with vscode
HeitungSun1 Mar 27, 2023
03735a5
add base.html as the html templates
yaxuanhuang0710 Mar 27, 2023
379a580
finish page1
yaxuanhuang0710 Mar 28, 2023
5d030f6
centered logo
HeitungSun1 Mar 28, 2023
c2aab3d
Merge branch 'develop' of https://github.com/arXiv/html_feedback_ui i…
HeitungSun1 Mar 28, 2023
65dac4a
page2
HeitungSun1 Mar 28, 2023
2262b7f
added page3
HeitungSun1 Mar 28, 2023
05c7875
modified css
HeitungSun1 Mar 28, 2023
a2d7068
Javascript and Stylesheets
chrisjcameron Mar 28, 2023
af1eba2
Merge branch 'develop' of https://github.com/arXiv/html_feedback_ui i…
chrisjcameron Mar 28, 2023
cb213bc
Update local run directions
chrisjcameron Mar 28, 2023
7ab77a1
page 4 without modal
HeitungSun1 Mar 28, 2023
273083e
Merge branch 'develop' of https://github.com/arXiv/html_feedback_ui i…
HeitungSun1 Mar 28, 2023
161ea39
modify html file
yaxuanhuang0710 Mar 29, 2023
03e766c
added p7p8
HeitungSun1 Mar 30, 2023
1389e0d
with left sidebar
HeitungSun1 Apr 14, 2023
b9c1428
edited the menu bar
HeitungSun1 Apr 14, 2023
09f62d6
Update README.md
chrisjcameron Apr 18, 2023
ed41de6
merging changes reflected on final prototype
zzhilin Apr 20, 2023
498da1b
added lang for html
kkkehui Apr 23, 2023
eed3fca
fixed accessibility issues
kkkehui Apr 23, 2023
49d7b9c
fixed chips and input labels
kkkehui Apr 23, 2023
72027d6
added pages by manuela
kkkehui Apr 24, 2023
c8ad6e0
improved stylings and fixed label issues
kkkehui Apr 24, 2023
c2e22b1
fixed a11y issues based on Shamsi's feedback
kkkehui May 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# macOS
.DS_Store
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# html_feedback_ui
Supports a student project involving soliciting feedback on arXiv articles rendered as html.


## Run locally for development

Make sure flask is installed and the flask environment is active. See the flask tutorial for installation instructions. https://flask.palletsprojects.com/en/2.2.x/tutorial/

In a terminal with the main project directory
(the folder that contains `app.py`) as the working directory,
execute `flask run`.

In your web browser, visit [http://127.0.0.1:5000/start/](http://127.0.0.1:5000/start/).
70 changes: 70 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
from flask import Flask, render_template
app = Flask(__name__)

page_titles = {
'page1': 'start',
'page2': 'contactInformation',
'page3': 'termsConditions',
'page4': 'licensing',
'page5': 'addFiles',
'page6': 'processing',
'page7': 'pdfPreview',
'page8': 'htmlPreview',
'page9': 'metadata',
'page10': 'category',
'page11': 'review',
'page12': 'finalizeSubmission',
}


@app.route('/start/')
def start():
return render_template('page1.html', page_titles=page_titles, page_title=page_titles['page1'],prev_page=None,next_page=page_titles['page2'])

@app.route('/contactInformation/')
def contactInformation():
return render_template('page2.html',page_titles=page_titles, page_title=page_titles['page2'],prev_page=page_titles['page1'],next_page=page_titles['page3'])

@app.route('/termsConditions/')
def termsConditions():
return render_template('page3.html', page_titles=page_titles, page_title=page_titles['page3'],prev_page=page_titles['page2'],next_page=page_titles['page4'])

@app.route('/licensing/')
def licensing():
return render_template('page4.html', page_titles=page_titles, page_title=page_titles['page4'],prev_page=page_titles['page3'],next_page=page_titles['page5'])

@app.route('/addFiles/')
def addFiles():
return render_template('page5.html', page_titles=page_titles, page_title=page_titles['page5'],prev_page=page_titles['page4'],next_page=page_titles['page6'])

@app.route('/processing/')
def processing():
return render_template('page6.html', page_titles=page_titles, page_title=page_titles['page6'],prev_page=page_titles['page5'],next_page=page_titles['page7'])

@app.route('/pdfPreview/')
def pdfPreview():
return render_template('page7.html', page_titles=page_titles, page_title=page_titles['page7'],prev_page=page_titles['page6'],next_page=page_titles['page8'])

@app.route('/htmlPreview/')
def htmlPreview():
return render_template('page8.html', page_titles=page_titles, page_title=page_titles['page8'],prev_page=page_titles['page7'],next_page=page_titles['page9'])

@app.route('/metadata/')
def metadata():
return render_template('page9.html', page_titles=page_titles, page_title=page_titles['page9'],prev_page=page_titles['page8'],next_page=page_titles['page10'])


@app.route('/category/')
def category():
return render_template('page10.html', page_titles=page_titles, page_title=page_titles['page10'],prev_page=page_titles['page9'],next_page=page_titles['page11'])

@app.route('/review/')
def review():
return render_template('page11.html', page_titles=page_titles, page_title=page_titles['page11'],prev_page=page_titles['page10'],next_page=page_titles['page12'])

@app.route('/finalizeSubmission/')
def finalizeSubmission():
return render_template('page12.html', page_titles=page_titles, page_title=page_titles['page12'],prev_page=page_titles['page11'],next_page=None)

if __name__ == '__main__':
app.run(debug=True)
Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/images/alert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/arxiv-logo-one-color-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/asc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/btn-close-survey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/check_mail-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/close-slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/comment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/covid-19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cul_signature.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/cul_signature_sm.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/desc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/green_exclamation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/house.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/iarxiv_logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icon-magnifier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/inspire_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/journalref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/lib_rt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/library_red.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/magnifier-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ninja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/pb-files.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/pb-metadata.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/pb-preview.gif
Binary file added public/images/pb-process.gif
Binary file added public/images/pb-results.gif
Binary file added public/images/pb-start.gif
Binary file added public/images/pb-submit.gif
Binary file added public/images/pwc_logo.png
Binary file added public/images/replace.png
Binary file added public/images/suspect.png
Binary file added public/images/unsubmit.png
Binary file added public/images/update.png
Binary file added public/images/withdraw.png
2 changes: 2 additions & 0 deletions public/javascripts/chosen.jquery.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions public/javascripts/d3.v3.min.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions public/javascripts/deletePrompt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
$(document).ready(function() {
$(".confirm_delete").click( function(e){
e.preventDefault();

var targetUrl = $(this).attr("href");
var paperid = $(this).attr("id");

$("#dialog").dialog({
autoOpen: false,
modal: true,
buttons : {
"Confirm" : function() {
window.location.href = targetUrl;
},
"Cancel" : function() {
$(this).dialog("close");
}
}
});

$("#dialog").html("Are you sure you want to delete submission " + paperid + "?");
$("#dialog").dialog("open");

});
});
34 changes: 34 additions & 0 deletions public/javascripts/donate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
function setCookie(){
var delay_days = 1;
var date = new Date();
date.setTime(date.getTime()+(delay_days*3600*24*1000));
var expires = "; expires="+date.toGMTString();
document.cookie = 'seenDonateBanner=1' + expires + '; path=/; domain=' + window.location.hostname + ';';
}

function hasCookie(){
return document.cookie.indexOf('seenDonateBanner=') != -1;
}

$(document).ready(
function() {

if( hasCookie() ){
$("#cu-identity, #header").slideDown();
$(".slider-wrapper").slideUp();
}

$(".close-slider").click(function() {
$("#cu-identity, #header").slideDown();
$(".slider-wrapper").slideUp();
setCookie();
});

$(function() {
if( !hasCookie() ){
$(".slider-wrapper").delay(1000).slideDown();
$("#cu-identity, #header").delay(1000).slideUp();
}
});

});
13 changes: 13 additions & 0 deletions public/javascripts/jquery-ui.js

Large diffs are not rendered by default.

Loading