Skip to content

Commit

Permalink
- fix bugs - display 1 digit month, target window
Browse files Browse the repository at this point in the history
  • Loading branch information
USER committed Oct 3, 2018
1 parent 5837daf commit 77712ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/search.html
Original file line number Diff line number Diff line change
@@ -184,19 +184,19 @@ <h2>All GANs Search <input name="query" v-model="searchQuery"></h2>
},
highlight: function(words, query) {
var iQuery = new RegExp(query, "ig");
if (words.length <= 1) return "";
if (words == "-") return "";
return words.replace(iQuery, function(matchedTxt,a,b){
return ('<span class=\'highlight\'>' + matchedTxt + '</span>');
});
},
searchml: function(uritext) {
return ('<a href=\'http://www.google.com/search?q=' + encodeURI(uritext) + '\'>[Search]</a>');
return ('<a href=\'http://www.google.com/search?q=' + encodeURI(uritext) + '\' target="_blank">[Search]</a>');
},
scholarml: function(uritext) {
return ('<a href=\'http://scholar.google.com/scholar?q=' + encodeURI(uritext) + '\'>[Scholar]</a>');
return ('<a href=\'http://scholar.google.com/scholar?q=' + encodeURI(uritext) + '\' target="_blank">[Scholar]</a>');
},
linkml: function(url, query) {
return ('<a href=\'' + url + '\'>[' + query + ']</a>');
return ('<a href=\'' + url + '\' target="_blank">[' + query + ']</a>');
}
}
});

0 comments on commit 77712ac

Please sign in to comment.