Commit f06e85e59d167de902d8711dc8fdc7d60d9771f3

Fix message in the landing page of app

  Change message in landing page of app from mentioning only image to
mentioning image and web page.
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/js/app.js

241 $("#sweet-list").html('');241 $("#sweet-list").html('');
242 alert("Your SWeets are posted!!");242 alert("Your SWeets are posted!!");
243 },243 },
244 error: function(data) {
245 alert("Failed to post your SWeets, please try again.");
246 }
247 });
244 error: function(data) {
245 alert("Failed to post your SWeets, please try again.");
246 }
247 });
248 }248 }
249 });249 });
250 new AppView;250 new AppView;

swtr/static/js/swtmaker.js

546 switch (n) {546 switch (n) {
547 case 0 : text = 'Getting annotations..';547 case 0 : text = 'Getting annotations..';
548 break;548 break;
549 case 1: text = 'Enter the URL of an image below, and start annotating!';
549 case 1: text = 'Enter the URL of an image or web page below, and start annotating!';
550 break;550 break;
551 case 2: text = 'Annotate the image, or see other annotations';551 case 2: text = 'Annotate the image, or see other annotations';
552 break;552 break;

swtr/templates/index.html

38 <div class="form-group col-md-11">38 <div class="form-group col-md-11">
39 <label class="sr-only" for="img-url-input">Enter URL of the image</label>39 <label class="sr-only" for="img-url-input">Enter URL of the image</label>
40 <input class="form-control" type="text"40 <input class="form-control" type="text"
41 placeholder="Enter URL of the image" id="img-url-input">
41 placeholder="Enter URL of the image or web page" id="img-url-input">
42 </div>42 </div>
43 <button type="submit" class="btn btn-primary" id="img-url-load">Load</button>43 <button type="submit" class="btn btn-primary" id="img-url-load">Load</button>
44 </form>44 </form>