File tree Expand file tree Collapse file tree 19 files changed +499
-345
lines changed Expand file tree Collapse file tree 19 files changed +499
-345
lines changed Original file line number Diff line number Diff line change 1
1
# Fetch-API-Client
2
- A front end client that makes request to a backend API using fetch
2
+ An ES6 front end API client that makes request to a backend API using fetch
3
3
4
- homepage: http://devpool-client.herokuapp.com
4
+ homepage: http://devpool-client.herokuapp.com
5
+
6
+
7
+
8
+ [ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/c15ab3b0f6907b1526ce/maintainability )] ( https://codeclimate.com/github/michaelNgiri/Fetch-API-Client/maintainability )
Original file line number Diff line number Diff line change 36
36
</ ul >
37
37
</ div >
38
38
39
- < script type ="text/javascript " src ="scripts/queries.js "> </ script >
40
- < script type ="text/javascript " src ="scripts/questions.js "> </ script >
41
- < script type ="text/javascript " src ="scripts/all-questions.js "> </ script >
42
- < script defer type ="text/javascript " src ="scripts/misc.js "> </ script >
39
+ < script type ="text/javascript " src ="scripts/misc.js "> </ script >
40
+ < script defer type ="text/javascript " src ="scripts/queries.js "> </ script >
41
+ < script defer type ="text/javascript " src ="scripts/auth.js "> </ script >
42
+ < script defer type ="text/javascript " src ="scripts/questions.js "> </ script >
43
+ < script defer type ="text/javascript " src ="scripts/all-questions.js "> </ script >
43
44
</ body >
44
45
</ html >
Original file line number Diff line number Diff line change @@ -36,17 +36,15 @@ <h3>Ask a question</h3>
36
36
< form method ="post " onsubmit ="return false " class ="ask-question-form ">
37
37
< label for ="ask-question-title "> Title</ label > < br >
38
38
< input onchange ="checkValidQuestion() " type ="text " name ="question_title " id ="ask-question-title "> < br >
39
- < label id ="ask-question-body-label " for ="ask- question-body "> Enter your Question here:</ label > < br >
40
- < textarea onchange ="checkValidQuestion() " name ="question " id ="question-body " aria-invalid ="false "> </ textarea >
39
+ < label id ="ask-question-body-label " for ="question-body "> Enter your Question here:</ label > < br >
40
+ < textarea onmouseout =" checkValidQuestion() " onchange ="checkValidQuestion() " name ="question " id ="question-body " aria-invalid ="false "> </ textarea >
41
41
< input type ="hidden " name ="user_id " id ="featured-question-id "> < br >
42
- < button id ="ask-question-submit-button " disabled =" true " onclick ="submitQuestion() "> Submit</ button >
42
+ < button id ="ask-question-submit-button " onclick ="submitQuestion() "> Submit</ button > < span id =" saving-question-text " > saving... </ span >
43
43
</ form >
44
44
</ div >
45
45
46
-
47
- < script type ="text/javascript " src ="scripts/queries.js "> </ script >
48
- < script type ="text/javascript " src ="scripts/questions.js "> </ script >
49
- <!-- <script type="text/javascript" src="scripts/app.js"></script> -->
50
- < script defer type ="text/javascript " src ="scripts/misc.js "> </ script >
46
+ < script type ="text/javascript " src ="scripts/misc.js "> </ script >
47
+ < script defer type ="text/javascript " src ="scripts/ask-question.js "> </ script >
48
+ < script type ="text/javascript " src ="scripts/auth.js "> </ script >
51
49
</ body >
52
50
</ html >
Original file line number Diff line number Diff line change @@ -189,4 +189,4 @@ footer {
189
189
width : 44vw ;
190
190
height : 4em ;
191
191
border-radius : 20px ;
192
- }
192
+ }
Original file line number Diff line number Diff line change @@ -25,5 +25,8 @@ height: 2em
25
25
}
26
26
# ask-question-submit-button : hover {
27
27
background : # f3f3f3 ;
28
- cursor : not-allowed;
28
+ /*cursor: not-allowed;*/
29
+ }
30
+ # saving-question-text {
31
+ visibility : hidden;
29
32
}
Original file line number Diff line number Diff line change 34
34
< hr class ="hr ">
35
35
< section >
36
36
37
- < h2 style ="float: right; ">
38
-
39
- </ h2 >
37
+
40
38
<!--heading-->
41
39
<!--<h2 class="featured-heading">Featured question</h2>-->
42
40
< h1 class ="featured-question-title " id ="featured-question-title "> </ h1 >
@@ -78,9 +76,9 @@ <h3 id="answer-title">Answer this question</h3>
78
76
<!--container for social links-->
79
77
80
78
</ footer >
81
- < script defer type ="text/javascript " src ="scripts/misc.js "> </ script >
82
- < script type ="text/javascript " src ="scripts/queries .js "> </ script >
83
- < script type ="text/javascript " src ="scripts/app .js "> </ script >
79
+ < script type ="text/javascript " src ="scripts/misc.js "> </ script >
80
+ < script defer type ="text/javascript " src ="scripts/app .js "> </ script >
81
+ < script defer type ="text/javascript " src ="scripts/queries .js "> </ script >
84
82
< script defer type ="text/javascript " src ="scripts/main.js "> </ script >
85
83
< script defer type ="text/javascript " src ="scripts/auth.js "> </ script >
86
84
</ body >
Original file line number Diff line number Diff line change 42
42
</ form >
43
43
</ div >
44
44
45
-
46
- < script type ="text/javascript " src ="scripts/queries.js "> </ script >
47
- < script defer type ="text/javascript " src ="scripts/misc.js "> </ script >
45
+ < script type ="text/javascript " src ="scripts/misc.js "> </ script >
46
+ < script defer type ="text/javascript " src ="scripts/queries.js "> </ script >
48
47
< script defer type ="text/javascript " src ="scripts/auth.js "> </ script >
49
48
</ body >
50
49
</ html >
Original file line number Diff line number Diff line change 36
36
fetchAllQuestions ( )
37
37
} ) ;
38
38
</ script >
39
- < script type ="text/javascript " src ="scripts/queries .js "> </ script >
40
- < script type ="text/javascript " src ="scripts/questions .js "> </ script >
41
- < script defer type ="text/javascript " src ="scripts/misc .js "> </ script >
39
+ < script type ="text/javascript " src ="scripts/misc .js "> </ script >
40
+ < script defer type ="text/javascript " src ="scripts/queries .js "> </ script >
41
+ < script defer type ="text/javascript " src ="scripts/questions .js "> </ script >
42
42
</ body >
43
43
</ html >
Original file line number Diff line number Diff line change 19
19
< a href ="https://devpool-client.herokuapp.com/ "> < img class ="profile-pic " src ="img/avatar.jpg " alt ="profile photo "> </ a >
20
20
< div class ="intro-summary ">
21
21
< ul class ="menu-items-ul ">
22
- < li role ="menuitem "> < a href ="profile.html "> < span class ="menu-item "> My Profile</ span > </ a > </ li >
22
+ < li role ="menuitem "> < a href ="profile.html "> < span class ="menu-item "> My Profile</ span > </ a >
23
+
24
+ </ li >
23
25
< li > < a href ="ask-question.html "> < span class ="menu-item "> Ask a question</ span > </ a > </ li >
24
26
< li > < a href ="my-questions.html "> < span class ="menu-item "> My Questions</ span > </ a > </ li >
25
27
< li > < a href ="all-questions.html "> < span class ="menu-item "> All Questions</ span > </ a > </ li >
31
33
</ header >
32
34
< hr class ="hr ">
33
35
< div class ="Profile ">
34
-
36
+ < span > </ span >
35
37
</ div >
36
38
37
- < script type ="text/javascript " src ="scripts/queries .js "> </ script >
38
- < script defer type ="text/javascript " src ="scripts/misc .js "> </ script >
39
+ < script type ="text/javascript " src ="scripts/misc .js "> </ script >
40
+ < script defer type ="text/javascript " src ="scripts/queries .js "> </ script >
39
41
< script defer type ="text/javascript " src ="scripts/profile.js "> </ script >
40
- </ script >
41
42
</ body >
42
43
</ html >
You can’t perform that action at this time.
0 commit comments