-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (64 loc) · 2.31 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Henosis</title>
<meta name="description" content="Test page for henosis.">
<link rel="stylesheet" href="css/henosis.css">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<svg id="henosisLayer">
<filter id="blurMe" x="-10" y="-10" width="20" height="20">
<feGaussianBlur in="SourceGraphic" stdDeviation="5" />
</filter>
<circle id="shadow" cx="50%" cy="50%" r="20" fill="grey" filter="url(#blurMe)" />
<circle id="henosis" cx="50%" cy="50%" r="20" stroke="yellow" stroke-width="0" fill="white" />
</svg>
<div id="container1">
Hello World!
</div>
<div id="container2">
Hello World Again!
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="js/jquery.ui.touch-punch.min.js"></script>
<script src="js/changeShadowOfSVGElement.js"></script>
<script src="js/henosis.js"></script>
<script>
// henosis initialization function - usage help -- start
//
// henosisInit(possibleContainersParameter, containerRotationModeParameter, cx, cy);
//
// 1) possibleContainersParameter
// Set the number of containers you would like to have in the website.
// Values: INTEGER.
//
// 2) containerRotationModeParameter
// Set the mode of operation for container rotation below.
// Values: "display", "visibility";
//
// 3) cx
// Set the initial cx coordinate for henosis.
// Values: Range(20, (viewportWidth-20));
//
// 4) cy
// Set the initial cy coordinate for henosis.
// Values: Range(20, (viewportHeight-20));
//
// henosis initialization function - usage help -- end
// Initializing henosis with default parameters.
henosisInit();
// Passing parameters - example -- start
// var windowHeight = $(window).height();
// var windowWidth = $(window).width();
// henosisInit(2, "display", 20, 20);
// Passing parameters - example -- end
</script>
</body>
</html>