diff --git a/resources/library/search/Pixabay.wgs/config.xml b/resources/library/search/Pixabay.wgs/config.xml
index 3eb471da..20b3ce4a 100755
--- a/resources/library/search/Pixabay.wgs/config.xml
+++ b/resources/library/search/Pixabay.wgs/config.xml
@@ -7,7 +7,7 @@
height="500"
ub:resizable="true">
- Choisir
+ Pixabay search
Craig Watson
Pixabay image search
diff --git a/resources/library/search/Pixabay.wgs/css/basic.css b/resources/library/search/Pixabay.wgs/css/basic.css
index deaeaefe..5225ed60 100755
--- a/resources/library/search/Pixabay.wgs/css/basic.css
+++ b/resources/library/search/Pixabay.wgs/css/basic.css
@@ -4,6 +4,7 @@ html, body{
height: auto;
background-color: white;
margin: 0;
+ font-family: arial;
}
::-webkit-scrollbar {
diff --git a/resources/library/search/Pixabay.wgs/icon.png b/resources/library/search/Pixabay.wgs/icon.png
new file mode 100644
index 00000000..5a24fcce
Binary files /dev/null and b/resources/library/search/Pixabay.wgs/icon.png differ
diff --git a/resources/library/search/Pixabay.wgs/icon.thumbnail.png b/resources/library/search/Pixabay.wgs/icon.thumbnail.png
new file mode 100755
index 00000000..5a24fcce
Binary files /dev/null and b/resources/library/search/Pixabay.wgs/icon.thumbnail.png differ
diff --git a/resources/library/search/Pixabay.wgs/index.html b/resources/library/search/Pixabay.wgs/index.html
index 1e0d04b8..ca5e6c12 100644
--- a/resources/library/search/Pixabay.wgs/index.html
+++ b/resources/library/search/Pixabay.wgs/index.html
@@ -5,263 +5,260 @@
Pixabay Image Search
-
+ $(".imgContainer").each(function(){
+ this.addEventListener("dragover", imageDragover, false);
+ })
+ }
+
+ function searchFail(jqXHR, textStatus, errorThrown) {
+ alert('Couldn\'t connect to Pixabay: ' + textStatus + ' ' + errorThrown);
+ }
+
+ function imageDragging(e){
+ e.dataTransfer.setData("text/plain",$(this).find("input:hidden").eq(0).val());
+ }
+
+ function imageDragleave(e){
+ return false;
+ }
+
+ function imageDragover(e){
+ return false;
+ }
+
+ function imageDragenter(e){
+ return false;
+ }
+
+ function gotoPage(i) {
+ runSearch(currentTerm, i);
+ }
+
+ function createMetaData(parent){
+ var meta = "";
+ //alert($(this).find("input:hidden").eq(0).val());
+ meta = "TypeImageUrl" +
+ parent.find("input:hidden").eq(0).val() +
+ "Content" +
+ parent.find("input:hidden").eq(1).val() +
+ "Height" +
+ parent.find("input:hidden").eq(2).val() +
+ "Width" +
+ parent.find("input:hidden").eq(3).val() +
+ "thumbnailUrl" +
+ parent.find("input:hidden").eq(4).val() +
+ "Title" +
+ parent.find("input:hidden").eq(5).val() +
+ "";
+ return meta;
+ }
+
+ function getImageTitle(image) {
+ // Pixabay images don't have a title, but we can fetch the first tag and use that as a title.
+
+ var firstTag = image.tags.split(",")[0]
+ //console.log(firstTag);
+ return firstTag;
+ }
+
+
+
-
-
-
-