|
|
|
@ -14,8 +14,8 @@ $.ajax({
|
|
|
|
|
var img_url = pages[key].imageinfo[0].thumburl;
|
|
|
|
|
var img_w = pages[key].imageinfo[0].thumbwidth;
|
|
|
|
|
var img_h = pages[key].imageinfo[0].thumbheight;
|
|
|
|
|
var img_max_left = window_size.w;// - img_w;
|
|
|
|
|
var img_max_top = window_size.h;// - img_h;
|
|
|
|
|
var img_max_left = window_size.w - img_w;
|
|
|
|
|
var img_max_top = window_size.h - img_h;
|
|
|
|
|
var img_pos_left = ( getRandom(img_max_left).toString() )+"px";
|
|
|
|
|
var img_pos_top = ( getRandom(img_max_top).toString() )+"px";
|
|
|
|
|
|
|
|
|
@ -27,9 +27,9 @@ $.ajax({
|
|
|
|
|
.css('z-index', (getRandom(pages.length)).toString() ,'!important')
|
|
|
|
|
.css('display','block');
|
|
|
|
|
|
|
|
|
|
console.log(img_el, pages.length);
|
|
|
|
|
// console.log(img_el, pages.length);
|
|
|
|
|
// console.log(img, img_w, img_h);
|
|
|
|
|
// $('div.background').append(img);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -38,18 +38,7 @@ $.ajax({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(
|
|
|
|
|
function(){
|
|
|
|
|
var wh = {w: ($(window).width()), h: ($(window).height())} ;
|
|
|
|
|
place_imgs(wh);
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(window).on('resize', function(){
|
|
|
|
|
$(window).on("click scroll resize", function(){
|
|
|
|
|
var wh = {w: ($(window).width()), h: ($(window).height())} ;
|
|
|
|
|
place_imgs(wh);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|