-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (71 loc) · 3.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<title>Why I love you?</title>
<meta charset="UTF-8" />
<meta https-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Why I love you?" />
<meta name="keywords" content="love, hentai, pics" />
<meta name="author" content="Banditoles" />
<link rel="shortcut icon" href="images/favicon.png">
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href='https://fonts.googleapis.com/css?family=PT+Sans+Narrow&v1' rel='stylesheet' type='text/css' />
<link href='https://fonts.googleapis.com/css?family=Monoton' rel='stylesheet' type='text/css' />
</head>
<body style="background:#000;">
<div class="container">
<script type="text/javascript" src="get_text.js"></script>
<div id="reason">Просто нажми и узнаешь одну из множественных причин, из-за которой я люблю тебя <3 <input type="button" value="Так почему я тебя люблю?" onclick="randomArrayInner()" /></div>
<div class="header">
</div></div>
<div class="am-container" id="am-container">
<script type="text/javascript">
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min;};
function arrayRandElement(arr) {
var rand = Math.floor(Math.random() * arr.length);
return arr[rand];};
for( var i = 0, newimgs = ''; i < 20; ++i ) {
newimgs+= '<a href="#"><img src="images/' + getRandomInt(1,309) + '.jpg"/></a>';}
document.getElementById("am-container").innerHTML = newimgs;</script>
</div>
<div id="loadmore" class="loadmore" style="width:100%;">load more...</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.montage.min.js"></script>
<script type="text/javascript">
$(function load_more() {
var $container = $('#am-container'),
$imgs = $container.find('img').hide(),
totalImgs = $imgs.length,
cnt = 0;
// initialize the plugin
$imgs.each(function(i) {
var $img = $(this);
$('<img/>').load(function() {
++cnt;
if( cnt === totalImgs ) {
$imgs.show();
$container.montage({
fillLastRow : true,
minsize : true,
margin : 2
});
$('#loadmore').show().bind('click', function() {
for( var i = 0, newimgs = ''; i < arrayRandElement([3,4,6,9,12,15]); ++i ) {
newimgs += '<a href="#"><img src="images/' + getRandomInt(1,309) + '.jpg"/></a>';
console.log(newimgs)
}
var $newimages = $( newimgs );
$newimages.imagesLoaded( function(){
$container.append( $newimages ).montage( 'add', $newimages );
});
});
}
}).attr('src',$img.attr('src'));
});
});
</script> </body>
</html>