Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Minor changes #3

Closed
wants to merge 2 commits into from

3 participants

@omicronlab

Added image preloader, reduced notification image width and height to 50px

@masnun masnun closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 11, 2011
  1. @mugli

    Added Image Preloader

    mugli authored
  2. @mugli

    Decreased image size to 50px

    mugli authored
This page is out of date. Refresh to see the latest.
View
BIN  avro-bangla.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  avro-english.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
12 avro-phonetic.php
@@ -118,7 +118,7 @@ function enable_avro() {
script.onload= avro_js_loader;
script.src= 'https://raw.github.com/torifat/jsAvroPhonetic/master/dist/avro-latest.js';
root.appendChild(script);
-
+ preload_avro_images();
}
function avro_js_loader() {
@@ -137,6 +137,16 @@ function avro_js_loader() {
}
});
}).avro('destroy').avro();
+
+ }
+
+ var avro_preload = ['https://github.com/masnun/Avro-Phonetic-WP-Plugin/raw/master/avro-bangla.png', 'https://github.com/masnun/Avro-Phonetic-WP-Plugin/raw/master/avro-english.png'];
+ var avro_images = [];
+ function preload_avro_images(){
+ for (var i = 0; i < avro_preload.length; i++) {
+ avro_images[i] = new Image();
+ avro_images[i].src = avro_preload[i];
+ }
}
Something went wrong with that request. Please try again.