-
Notifications
You must be signed in to change notification settings - Fork 11
/
example5.html
122 lines (88 loc) · 3.33 KB
/
example5.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Wobble Window - jQuery Example 5</title>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js'></script>
<script src='js/jquery.wobblewindow.min.js'></script>
<style type='text/css'>
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
box-sizing: border-box;
}
body {
overflow: hidden;
background-color: #CCC;
}
.clear {
clear: both;
height: 0;
font-size: 0;
line-height: 0;
}
#window1 {
width:350px;
height:110px;
left:65px;
top:65px;
position:absolute;
padding: 20px 20px 20px 20px;
}
#window2 {
width:350px;
height:110px;
left:65px;
top:65px;
position:absolute;
padding: 20px 20px 20px 20px;
}
</style>
<script>
$( document ).ready( function() {
//------------------------------------------------------------------------
//Settings - params for WobbleWindow
var settings = {
bodyColor: '#EEE',
numberOfXPoints: 7,
numberOfYPoints: 3
};
//------------------------------------------------------------------------
//standalone
//init
var wobbleWindow1 = new WobbleWindow( document.getElementById( 'window1' ), settings );
var wobbleWindow2 = new WobbleWindow( document.getElementById( 'window2' ), settings );
//------------------------------------------------------------------------
//jQuery
//init
// $( '#window1' ).wobbleWindow( settings );
// $( '#window2' ).wobbleWindow( settings );
//------------------------------------------------------------------------
} );
</script>
</head>
<body>
<div id='holder1' style='left:0px; top:0px; width:480px; height:240px; position:absolute; background-color: #562A72'>
<div id='window1'>
<strong>Lorem ipsum</strong> dolor sit amet, consectetur adipiscing elit. Fusce ac elementum tortor, eget efficitur quam. Quisque eu erat dui. Etiam ut.
</div>
</div>
<div id='holder2' style='left:0px; top:240px; width:480px; height:240px; position:absolute; background-color: #862D63'>
<div id='window2'>
<strong>Lorem ipsum</strong> dolor sit amet, consectetur adipiscing elit. Fusce ac elementum tortor, eget efficitur quam. Quisque eu erat dui. Etiam ut.
</div>
</div>
</body>