mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
cleanup and try new twitter widget
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
u/*
|
||||
active-users.txt
|
||||
version.txt
|
||||
@@ -2,3 +2,4 @@ DirectoryIndex index.shtml index.html
|
||||
AddType text/cache-manifest .appcache
|
||||
RewriteEngine on
|
||||
RewriteRule ^f/(.*)$ /create.cgi?id=$1 [L,QSA]
|
||||
CheckCaseOnly on
|
||||
|
||||
8
active-users.sh
Executable file
8
active-users.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
echo -n "$(date --iso-8601) "
|
||||
for i in 1 10 20 30
|
||||
do
|
||||
echo -n "$i day(s): $(find /srv/www/greptweet.com/u -maxdepth 1 -mindepth 1 -type d -mtime -$i | wc -l), "
|
||||
done
|
||||
|
||||
echo Total: $(find /srv/www/greptweet.com/u -maxdepth 1 -mindepth 1 -type d | wc -l)
|
||||
30
index.shtml
30
index.shtml
@@ -55,34 +55,8 @@ if (user) { window.location.replace("/u/" + user); }
|
||||
|
||||
</form>
|
||||
|
||||
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
|
||||
<script>
|
||||
new TWTR.Widget({
|
||||
version: 2,
|
||||
type: 'profile',
|
||||
rpp: 4,
|
||||
interval: 30000,
|
||||
width: 250,
|
||||
height: 300,
|
||||
theme: {
|
||||
shell: {
|
||||
background: '#333333',
|
||||
color: '#ffffff'
|
||||
},
|
||||
tweets: {
|
||||
background: '#000000',
|
||||
color: '#ffffff',
|
||||
links: '#4aed05'
|
||||
}
|
||||
},
|
||||
features: {
|
||||
scrollbar: false,
|
||||
loop: false,
|
||||
live: false,
|
||||
behavior: 'all'
|
||||
}
|
||||
}).render().setUser('greptweet').start();
|
||||
</script>
|
||||
<a class="twitter-timeline" href="https://twitter.com/greptweet" data-widget-id="262428256576339968">Tweets by @greptweet</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
|
||||
<footer>
|
||||
<p>Please <a href="https://github.com/kaihendry/Greptweet">report issues and contribute on Github</a> :)</p>
|
||||
|
||||
Reference in New Issue
Block a user