Skip to content

Commit

Permalink
Added more wallpapers.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcam007 committed Feb 12, 2019
1 parent 8530727 commit 4f75ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if(navigator.onLine) { // true|false

function random()
{
return Math.floor(Math.random() * 20);
return Math.floor(Math.random() * 99);
}
/*
$.ajax({
Expand Down Expand Up @@ -273,7 +273,7 @@ function wallpaperChange()
console.log("Online");
$.ajax({
type: "GET",
url: "https://pixabay.com/api/?key=11539462-ceb223426b7e2e65b3aaf606f&q=landscape+beautiful&orientation=horizontal&image_type=photo&pretty=true&min_width=1280&min_height=720",
url: "https://pixabay.com/api/?key=11539462-ceb223426b7e2e65b3aaf606f&q=landscape&orientation=horizontal&image_type=photo&pretty=true&min_width=1280&min_height=720&per_page=100",
processData: false,
success: function(msg) {
console.log("API Called");
Expand Down Expand Up @@ -334,7 +334,7 @@ else{
success: function(msg) {
console.log("API Called");
var obj = JSON.parse(msg);
$("#quote").append(obj.slip.advice);
$("#quote").html(obj.slip.advice);
console.log(obj.slip.advice);
setCookie("quote",obj.slip.advice,0.01);

Expand Down

0 comments on commit 4f75ef2

Please sign in to comment.