Update index.php
This commit is contained in:
parent
8b4bbd6373
commit
525f26f349
1 changed files with 13 additions and 7 deletions
20
index.php
20
index.php
|
@ -68,12 +68,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<script>
|
<!-- header and options for making posts -->
|
||||||
function logSignature() {
|
|
||||||
alert(document.getElementById("signature-input"));
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h1><span style="color: var(--accent);">furp</span>social</h1>
|
<h1><span style="color: var(--accent);">furp</span>social</h1>
|
||||||
|
|
||||||
|
@ -83,11 +78,22 @@
|
||||||
<input type="submit" value="Farp it">
|
<input type="submit" value="Farp it">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<span style="font-size: 12px; color: grey;">Privacy Policy: The only data collected by furpsocial is the contents of your posts (signature and body text). This information is stored in our secure databases which are wiped of all post data every week. This data is only used to accomodate furp as a social media platform.</span>
|
<span style="font-size: 12px; color: grey;">Privacy Policy: The only data collected by furpsocial server-side is the contents of your posts (signature and body text). This information is stored in our secure databases which are wiped of all post data every week. This data is only used to accomodate furpsocial as a social media platform. Client-side, furpsocial stores your most recently used signature as a cookie.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</div>
|
<div class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</div>
|
||||||
|
|
||||||
|
<!-- save most recent signature as a cookie QOL -->
|
||||||
|
<script>
|
||||||
|
document.getElementById("signature-input").defaultValue = "cookie";
|
||||||
|
|
||||||
|
function logSignature() {
|
||||||
|
// save signature to cookie
|
||||||
|
alert(document.getElementById("signature-input").innerHTML);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- feed display -->
|
||||||
<?php
|
<?php
|
||||||
// make sure the file, well, exists
|
// make sure the file, well, exists
|
||||||
$myfile = fopen("posts.txt", "a");
|
$myfile = fopen("posts.txt", "a");
|
||||||
|
|
Reference in a new issue