Permalink
Browse files

prompt for urls if they're not provided

  • Loading branch information...
1 parent 7419dd1 commit aadbfad5bdf1c7a9de510db8405537149cbf0295 @RoboTeddy committed Aug 13, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 index.html
View
@@ -57,10 +57,8 @@
$(function() {
var params = URI(document.location.href).query(true);
- console.log(params);
-
- $("#top").attr('src', params.top);
- $("#bottom").attr('src', params.bottom);
+ $("#top").attr('src', params.top || prompt('Top URL:'));
+ $("#bottom").attr('src', params.bottom || prompt('Bottom URL:'));
});
$(function() {

0 comments on commit aadbfad

Please sign in to comment.