-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPortfolioCrawler_Unlock.html
More file actions
42 lines (32 loc) · 894 Bytes
/
PortfolioCrawler_Unlock.html
File metadata and controls
42 lines (32 loc) · 894 Bytes
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
<HTML>
<HEAD>
<script>
//////////////////////
// javascript start //
//////////////////////
// $$$ set indexes per-page to change what unlocks occur from visiting this page!
var do_page = true;
var page = 0; // page index (for counting how many of your pages the player has visited)
var do_item = true;
var item = 2; // 0 - 6 (left to right)
// entry point (on page load)
function load() {
// set this page to loaded
if(do_page)
setCookie("page" + page, 1, 365);
// set this item to ITEM-GET
if(do_item)
setCookie("item" + item, 1, 365);
}
// util funciton to set cookies
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
</script>
</HEAD>
<body onload="load()">
</body>
</html>