-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.html
More file actions
75 lines (64 loc) · 1.64 KB
/
debug.html
File metadata and controls
75 lines (64 loc) · 1.64 KB
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>
<head>
<meta charset="utf-8">
<title>Debug - Onepage Scroll Test</title>
<script src="templates/jquery-latest.min.js"></script>
<script src="templates/jquery.onepage-scroll.js"></script>
<link href='styles/onepage-scroll.css' rel='stylesheet' type='text/css'>
<style>
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
.main {
height: 100%;
}
section {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: white;
}
.page1 {
background: #3b82f6;
}
.page2 {
background: #10b981;
}
.page3 {
background: #f59e0b;
}
</style>
</head>
<body>
<div class="main">
<section class="page1">
<h1>Page 1</h1>
</section>
<section class="page2">
<h1>Page 2</h1>
</section>
<section class="page3">
<h1>Page 3</h1>
</section>
</div>
<script>
$(document).ready(function () {
console.log("jQuery loaded:", typeof $ !== 'undefined');
console.log("Sections found:", $("section").length);
$(".main").onepage_scroll({
sectionContainer: "section",
loop: true
});
console.log("Plugin initialized");
console.log("Body classes:", $("body").attr("class"));
});
</script>
</body>
</html>