-
Notifications
You must be signed in to change notification settings - Fork 1
/
eula.js
68 lines (51 loc) · 2.71 KB
/
eula.js
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
function get_eula() {
var seen = ""
var news = ""
var testStr = "SELECT * FROM EULA WHERE 1"
db.transaction(function (tx) {
tx.executeSql('CREATE TABLE IF NOT EXISTS EULA (date TEXT)')
var pull = tx.executeSql(testStr)
if (pull.rows.length === 1) {
seen = pull.rows.item(0).date
} else {
seen = "none"
}
})
theeula = "\n## End User Agreement\\n All users of CafeSync must agree to continue using the software and its network. Please read the following carefully. \\n
<br> ### CafeSync and OpenSeed\\n
CafeSync is in large part a client of the OpenSeed API and as such both products will collect certain information about the user. The data collected will only go as far as what is required to render\
the desired results of the application. Furthermore, your data is only accessible by those participating on the network and as long as that information isn't considered a part of securing an account or set private by the user or application.\
Passwords, encryption keys, pin numbers, and passphrases are considered secure data. CafeSync offers businesses (not ad networks) the ability to gather data that is publicly accessible by those on the network for the\
purpose of analytics and advertising. No data will be sold to third party ad networks by CafeSync or OpenSeed.\\n
<br> ### User expectations\\n
- Users will not assume another persons name or likeness for the purpose of defamation or personal gain.\\n
- Users will not harass or bully any other user on the system.\\n
- Users will not try to gain access to another persons account or ex-filtrate data from the servers.\\n
- Users will apply rules of common decency when selecting their profile image.\\n
- Users will use common sense when searching out other members.\\n
Users failing to adhere to a code of conduct may face up to and including the immediate deletion of the account with the possibility of public shaming in the form of updating your card to reflect the reason for dismissal.\\n
<br><br> Updated on April 24 2018\\n
"
date = 'April 24 2018'
if (seen != date) {
thisWindow.visible = true
} else {
eulacheck.stop()
}
}
function dismiss_eula(date) {
var testStr = "SELECT * FROM EULA WHERE 1"
var insert = "INSERT INTO EULA VALUES(?)"
var data = [date]
var update = "UPDATE EULA SET date='" + date + "' WHERE 1"
db.transaction(function (tx) {
tx.executeSql('CREATE TABLE IF NOT EXISTS EULA (date TEXT)')
var pull = tx.executeSql(testStr)
if (pull.rows.length === 1) {
tx.executeSql(update)
} else {
tx.executeSql(insert, data)
}
})
thisWindow.visible = false
}