Further tweaks... all I need is some style !

This commit is contained in:
Kai Hendry
2015-10-01 23:30:58 +08:00
parent 574955249b
commit f37fc99c62
8 changed files with 16 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
MIT/X Consortium License
© 2011-2014 Kai Hendry <hendry@iki.fi>
© 2011-2015 Kai Hendry <hendry@iki.fi>
Contributors https://github.com/kaihendry/greptweet/graphs/contributors
Jamie Kitson <jamie@kitten-x.com>
Pádraig Brady <http://www.pixelbeat.org>

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,6 @@ if(empty($id)) {
<head>
<meta charset="utf-8" />
<title>Fetching tweets of <?php echo $id; ?></title>
<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="container">
@@ -33,9 +32,9 @@ symlink ("../../index.html", "index.html");
symlink ("../../grep.php", "grep.php");
if (strpos($id, '_') !== false) {
echo "<a href=\"http://$HTTP_HOST/u/$id\"><h1 class=\"alert alert-success\">Goto http://$HTTP_HOST/u/$id to grep!</h1></a>";
echo "<a href=\"/u/$id/\"><h1 class=\"alert alert-success\">Goto http://$HTTP_HOST/u/$id to grep!</h1></a>";
} else {
echo "<a href=\"http://$HTTP_HOST/u/$id\"><h1 class=\"alert alert-success\">Goto http://$id.$HTTP_HOST to grep!</h1></a>";
echo "<a href=\"/u/$id/\"><h1 class=\"alert alert-success\">Goto http://$id.$HTTP_HOST to grep!</h1></a>";
}
echo `sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcache`;

View File

@@ -3,12 +3,6 @@ CACHE MANIFEST
CACHE:
tweets.txt
/main.js
/bootstrap/css/bootstrap.min.css
/bootstrap/css/bootstrap-theme.min.css
/bootstrap/fonts/glyphicons-halflings-regular.ttf
/bootstrap/fonts/glyphicons-halflings-regular.woff
/bootstrap/fonts/glyphicons-halflings-regular.eot
/bootstrap/fonts/glyphicons-halflings-regular.svg
/jquery.js
NETWORK:
*

View File

@@ -5,8 +5,6 @@
<title>Grepping twitter backup</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css">
<script src="/jquery.js"></script>
</head>

View File

@@ -10,9 +10,6 @@
<link rel=icon href=/icons/greptweet_birdie.svg sizes="any" type="image/svg+xml">
<link href="/icons/120x120.png" sizes="120x120" rel="apple-touch-icon">
<meta name="description" content="Download and search your tweets - no password login required!">
<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css">
</head>
<body>

8
www/jquery.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -53,10 +53,11 @@ $(document).ready(function() {
NAME = window.location.pathname.split('/')[2];
$("#name").html(NAME);
appletouchicon = document.createElement('link');
appletouchicon.setAttribute("rel", "apple-touch-icon");
appletouchicon.setAttribute("href", "https://api.twitter.com/1/users/profile_image?screen_name=" + NAME + "&size=bigger");
document.getElementsByTagName("head")[0].appendChild(appletouchicon);
// appletouchicon = document.createElement('link');
// appletouchicon.setAttribute("rel", "apple-touch-icon");
// TODO: Grab profile URL out https://dev.twitter.com/overview/general/user-profile-images-and-banners
// appletouchicon.setAttribute("href", "https://api.twitter.com/1/users/profile_image?screen_name=" + NAME + "&size=bigger");
// document.getElementsByTagName("head")[0].appendChild(appletouchicon);
$("input[type=search]").change(function() {
query = this.value;
@@ -74,7 +75,7 @@ $(document).ready(function() {
$("input[type=text]").focus();
footer = '<p><a href="' + NAME + '.txt" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-download"></i> Download</a>';
footer = '<p><a href=tweets.txt class="btn btn-default btn-lg"><i class="glyphicon glyphicon-download"></i> Download</a>';
footer += '<a href="' + "/f/" + NAME + '" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-refresh"></i> Update</a></p>';
$("#source").html(footer);
document.title = NAME;