Compare commits
No commits in common. "1972ecf04389c89f1df1321ca3e3c3b0de3c0493" and "04ffc30e92cb91bcbec2cc1f56ac63e08c3528ae" have entirely different histories.
1972ecf043
...
04ffc30e92
5 changed files with 7 additions and 12 deletions
|
@ -1,14 +1,5 @@
|
|||
var DEBUG = document.location.search.substr(0, 6) == "?debug";
|
||||
|
||||
function petThumbnailUrl(pet_name) {
|
||||
// if first character is "@", use the hash url
|
||||
if (pet_name[0] == "@") {
|
||||
return "https://pets.neopets.com/cp/" + pet_name.substr(1) + "/1/1.png";
|
||||
}
|
||||
|
||||
return "https://pets.neopets.com/cpn/" + pet_name + "/1/1.png";
|
||||
}
|
||||
|
||||
/* Needed items form */
|
||||
(function () {
|
||||
var UI = {};
|
||||
|
@ -74,6 +65,10 @@ function petThumbnailUrl(pet_name) {
|
|||
loadItems(data.query);
|
||||
}
|
||||
|
||||
function petThumbnailUrl(pet_name) {
|
||||
return "https://pets.neopets.com/cpn/" + pet_name + "/1/1.png";
|
||||
}
|
||||
|
||||
/* Items */
|
||||
|
||||
function loadItems(query) {
|
||||
|
@ -132,7 +127,7 @@ function petThumbnailUrl(pet_name) {
|
|||
|
||||
function Pet(name) {
|
||||
var el = $("#bulk-pets-submission-template")
|
||||
.tmpl({ pet_name: name, pet_thumbnail: petThumbnailUrl(name) })
|
||||
.tmpl({ pet_name: name })
|
||||
.appendTo(queue_el);
|
||||
|
||||
this.load = function () {
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<%= javascript_include_tag 'https://analytics.openneo.net/js/script.js',
|
||||
async: true, 'data-domain': 'impress.openneo.net' %>
|
||||
defer: true, 'data-domain': 'impress.openneo.net' %>
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
%script#bulk-pets-submission-template{:type => 'text/x-jquery/tmpl'}
|
||||
%li.waiting
|
||||
%img{:src => '${pet_thumbnail}'}
|
||||
%img{:src => 'https://pets.neopets.com/cpn/${pet_name}/1/1.png'}
|
||||
%span.name ${pet_name}
|
||||
%span.waiting-message= t '.bulk_pets.waiting'
|
||||
%span.loading-message= t '.bulk_pets.loading'
|
||||
|
|
BIN
vendor/cache/ffi-1.17.0-x86_64-linux-gnu.gem
vendored
BIN
vendor/cache/ffi-1.17.0-x86_64-linux-gnu.gem
vendored
Binary file not shown.
BIN
vendor/cache/nokogiri-1.16.7-x86_64-linux.gem
vendored
BIN
vendor/cache/nokogiri-1.16.7-x86_64-linux.gem
vendored
Binary file not shown.
Loading…
Reference in a new issue