bygdis.fi

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 36ffdb70628fec0b36bf95dccb4e40626ead3ab5
parent 30f21de0c30568fd01b78f93ee3f0b2aa55aeb21
Author: rob <rob@tarina.org>
Date:   Mon, 12 Oct 2020 13:41:20 +0300

yes

Diffstat:
Adb/makedb.sh | 13+++++++++++++
Ahemligt.py.sample | 8++++++++
Apublic_html/static/robstyle.css | 293+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apublic_html/static/scrollcookie.js | 9+++++++++
4 files changed, 323 insertions(+), 0 deletions(-)

diff --git a/db/makedb.sh b/db/makedb.sh @@ -0,0 +1,13 @@ +#!/bin/sh +sqlite3 bygdis.db <<EOF +CREATE TABLE kalender (id integer primary key, datumtid datetime, veckodag text, event text, admin TEXT); +CREATE TABLE posts (id integer PRIMARY KEY, datumtid datetime, post text NOT NULL, likes integer); +CREATE TABLE bilder (id integer PRIMARY KEY, filename TEXT, uploaddate TIMESTAMP, titel TEXT, year INT, fotograf TEXT, beskrivning TEXT, uppladdare TEXT, personer TEXT, moddedby TEXT, lastmod TIMESTAMP, plats TEXT); +CREATE TABLE allaversioner (id integer PRIMARY KEY, filename TEXT, uploaddate TIMESTAMP, titel TEXT, year INT, fotograf TEXT, beskrivning TEXT, uppladdare TEXT, personer TEXT, moddedby TEXT, lastmod TIMESTAMP, plats TEXT); +CREATE TABLE bildkommentar (id integer PRIMARY KEY, datumtid TIMESTAMP, user TEXT, comment text NOT NULL, upvotes integer, filename TEXT); +CREATE TABLE stopflood (id integer PRIMARY KEY, ip TEXT, tid INT); +CREATE TABLE likes (id integer PRIMARY KEY, user TEXT, bild TEXT, datum TIMESTAMP); +CREATE TABLE hates (id integer PRIMARY KEY, user TEXT, bild TEXT, datum TIMESTAMP); +CREATE TABLE bildadmin (id INT AUTO_INCREMENT, name TEXT, displayname TEXT, password TEXT, mail TEXT, subscribe TEXT, salt TEXT); +CREATE TABLE stopresetpass (id integer PRIMARY KEY, mail TEXT, tid INT); +EOF diff --git a/hemligt.py.sample b/hemligt.py.sample @@ -0,0 +1,8 @@ + +allowed = ( + ("username", "password"), +) + +historikaccess = ( + ("username","password") +) diff --git a/public_html/static/robstyle.css b/public_html/static/robstyle.css @@ -0,0 +1,293 @@ +@font-face{ + font-family: "Now-Bold"; + src: url('fonts/Now-Bold.otf'), + url('fonts/Now-Bold.otf'); /* IE */ + } + +@font-face{ + font-family: "Now-Regular"; + src: url('fonts/Now-Regular.otf'), + url('fonts/Now-Regular.otf'); /* IE */ + } + + @font-face{ + font-family: "Now-Light"; + src: url('fonts/Now-Light.otf'), + url('fonts/Now-Light.otf'); /* IE */ + } + +body +{ + margin:0px; + border:0px; + text-align: left; + background-color:#242021; + font-family: 'Now-Light', sans-serif; + font-weight: normal; + font-size: 12pt; + color: #f4f4f4; + -webkit-font-smoothing: antialiased; +} + +h1 +{ + padding-left: 0px; + padding-right: 0px; + padding-bottom: 5px; + padding-top: 6px; + margin: 0px; + font-size: 37pt; + font-family: 'Now-Bold', sans-serif; +} + +h4 +{ + padding-left: 0px; + padding-right: 0px; + padding-bottom: 5px; + padding-top: 6px; + margin: 0px; +} + +a +{ + color:#fff; + padding: 2px; + text-decoration: underline; +} + +a:hover +{ + margin-left: 3px; +} + +table +{ + font-style: normal; + font-weight: normal; + width:90%; +} + +td { + display: block; + clear:both; + } + +th { + display: block; + clear:both; + } + +video +{ + width: 100%; +} + +input +{ + padding: 5px; +} + +#beskrivning +{ + height: 100px; + width: 90%; +} + +#personer +{ + height:60px; + width:90%; +} + +#titel, #fotograf, #plats +{ + width:40%; +} + +#kommentar +{ + width:100%; + height: 100px; +} + +#user, #password, #mail +{ + width:80%; +} + +#year +{ + width:80px; +} + +#month +{ + width: 50px; +} + +#day +{ + width: 50px; +} + +#tid +{ + width: 80px; +} + +#antal +{ + width: 50px; +} + +#event +{ + width: 300px; + height: 50px; + padding:10px; +} + +.bild +{ + padding:10px; +} +.bild p +{ + font-size: 14px; + margin:0px; +} +.bild h4 +{ + padding:5px; +} + +div.addevent +{ + margin:0 auto; + background-color:#345E5A; + font-weight: normal; + font-style: normal; + font-size: 15px; + padding-top: 5px; + padding-left: 20px; + padding-right: 20px; + text-align: left; + height: auto; + width: 90%; + padding-bottom: 20px; + border-radius:5px; +} + +#container +{ + margin: 0px auto; + height: auto; + width: 95%; + max-width: 350px; +} + +#bilder +{ + margin: 0px auto; + height: auto; + width: 95%; + max-width: 450px; + text-align: center; +} + +#album +{ + margin: 0px auto; + height: auto; + width: 90%; + max-width: 900px; +} + + + +#top +{ + margin: 0 auto; + text-align: center; + height: 60vh; + width: 50%; +} + +#default +{ + width: 90%; + margin: 0 auto; + height: auto; + margin-top: 10px; + margin-bottom: 10px; +} + +#bild +{ + max-height:80%; + max-width: 100% +} + +#intro +{ + font-size: 14px; + font-family: 'Now-Light', sans-serif; +} + +#intro2 +{ + font-size: 15px; + font-family: 'Now-Light', sans-serif; +} + +#two +{ + background-color:#3B6861; + font-weight: normal; + font-style: normal; + font-size: 12px; + padding-top: 100px; + text-align: center; + height: 600px; + padding-bottom: 20px; +} + +#three +{ + background-color:#345E5A; + font-weight: normal; + font-style: normal; + font-size: 20px; + padding-top: 100px; + text-align: center; + height: auto; + padding-bottom: 20px; +} + +#four +{ + font-weight: normal; + font-style: normal; + font-size: 20px; + padding-top: 100px; + text-align: center; + height: auto; + padding-bottom: 20px; +} + + +#robin +{ + background-color:#3B6861; + padding-bottom: 100px; + margin: 0px auto; + font-weight: normal; + font-size: 16px; + text-align: center; +} + +#footer +{ + font-size:12px; +} diff --git a/public_html/static/scrollcookie.js b/public_html/static/scrollcookie.js @@ -0,0 +1,9 @@ +$(window).on("scroll", function() { + $.cookie("tempScrollTop", $(window).scrollTop()); +}); +$(function() { + if ($.cookie("tempScrollTop")) { + $(window).scrollTop($.cookie("tempScrollTop")); + alert("loaded postion : " + $.cookie("tempScrollTop")); + } +});