cleanup and try new twitter widget

This commit is contained in:
Kai Hendry
2012-10-28 06:40:45 +01:00
parent eaa879dba7
commit 2ffb0cddc6
4 changed files with 14 additions and 28 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
u/*
active-users.txt
version.txt

View File

@@ -2,3 +2,4 @@ DirectoryIndex index.shtml index.html
AddType text/cache-manifest .appcache AddType text/cache-manifest .appcache
RewriteEngine on RewriteEngine on
RewriteRule ^f/(.*)$ /create.cgi?id=$1 [L,QSA] RewriteRule ^f/(.*)$ /create.cgi?id=$1 [L,QSA]
CheckCaseOnly on

8
active-users.sh Executable file
View 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)

View File

@@ -55,34 +55,8 @@ if (user) { window.location.replace("/u/" + user); }
</form> </form>
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script> <a class="twitter-timeline" href="https://twitter.com/greptweet" data-widget-id="262428256576339968">Tweets by @greptweet</a>
<script> <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>
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>
<footer> <footer>
<p>Please <a href="https://github.com/kaihendry/Greptweet">report issues and contribute on Github</a> :)</p> <p>Please <a href="https://github.com/kaihendry/Greptweet">report issues and contribute on Github</a> :)</p>