Commit 7477a414055a83e774476b7d54b99c6c446a3cef
- Diff rendering mode:
- inline
- side by side
swtr/static/css/swtmaker.css
(5 / 0)
  | |||
126 | 126 | display: none; | |
127 | 127 | } | |
128 | 128 | ||
129 | footer { | ||
130 | font-size: 0.9em; | ||
131 | text-align: center; | ||
132 | } | ||
133 | |||
129 | 134 | ||
130 | 135 | /* text-annotation styles */ | |
131 | 136 |
swtr/static/js/main.js
(5 / 4)
  | |||
93 | 93 | }, | |
94 | 94 | postSweets: function() { | |
95 | 95 | var appView = swtr.appView; | |
96 | var self = this; | ||
96 | 97 | this.helpview.step(5); | |
97 | 98 | appView.$overlay.show(); | |
98 | 99 | try { | |
… | … | ||
102 | 102 | console.log(collection, response); | |
103 | 103 | swtr.sweets.set(collection); | |
104 | 104 | appView.$overlay.hide(); | |
105 | this.helpview.step(6); | ||
105 | self.helpview.step(6); | ||
106 | 106 | }, | |
107 | 107 | error: function(jqxhr, error, text) { | |
108 | 108 | console.log(jqxhr, error, text); | |
109 | 109 | appView.$overlay.hide(); | |
110 | this.helpview.step(10); | ||
110 | self.helpview.step(10); | ||
111 | 111 | } | |
112 | 112 | }); | |
113 | 113 | } catch(e) { | |
114 | 114 | if(e.message == 'Access Token is required to sweet') { | |
115 | 115 | appView.$overlay.hide(); | |
116 | this.helpview.step(9); | ||
116 | self.helpview.step(9); | ||
117 | 117 | } | |
118 | 118 | } | |
119 | 119 | this.cleanUp(); | |
… | … | ||
591 | 591 | break; | |
592 | 592 | case 2: text = 'Annotate the image, or see other annotations'; | |
593 | 593 | break; | |
594 | case 3: text = 'Now you can sweet this annotation, or add more annotations'; | ||
594 | case 3: text = 'Now you can publish this annotation, or add more annotations'; | ||
595 | 595 | break; | |
596 | 596 | case 4: text = 'Click Sweet button to publish these annotations to the Sweet Store'; | |
597 | 597 | break; |
swtr/templates/index.html
(6 / 2)
  | |||
139 | 139 | ||
140 | 140 | <hr/> | |
141 | 141 | ||
142 | <footer style="text-align: center; font-size: 0.9em;"> | ||
142 | <footer> | ||
143 | 143 | <!--p>This app is part of the <a href="http://www.opencultuurdata.nl/challenge-english/"> | |
144 | 144 | Open Cuultur Data challenge</a> | |
145 | 145 | </p--> | |
… | … | ||
153 | 153 | [<b>Clink</b>: Middle English clinken, probably from Middle Dutch klinken, of | |
154 | 154 | imitative origin.] | |
155 | 155 | </p> | |
156 | <p style="font-size: 0.8em;"> | ||
157 | Made with ♥ by <a href="//twitter.com/rayanon">Anon Ray</a> | ||
158 | and <a href="//twitter.com/arvindkhadri">Arvind Khadri</a> | ||
159 | </p> | ||
156 | 160 | </footer> | |
157 | 161 | </div> | |
158 | 162 | ||
… | … | ||
268 | 268 | <div class="col-md-8"> | |
269 | 269 | <form class="form-inline" role="form"> | |
270 | 270 | <div class="form-group"> | |
271 | <button class="btn btn-default" id="sweet">Sweet</button> | ||
271 | <button class="btn btn-default" id="sweet">Publish</button> | ||
272 | 272 | </div> | |
273 | 273 | </form> | |
274 | 274 | </div> |