Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
122 lines (88 sloc) 3.33 KB
<!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>