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 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 Contributors https://github.com/kaihendry/greptweet/graphs/contributors
Jamie Kitson <jamie@kitten-x.com> Jamie Kitson <jamie@kitten-x.com>
Pádraig Brady <http://www.pixelbeat.org> Pádraig Brady <http://www.pixelbeat.org>

File diff suppressed because one or more lines are too long

View File

@@ -10,10 +10,9 @@ if(empty($id)) {
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Fetching tweets of <?php echo $id; ?></title> <title>Fetching tweets of <?php echo $id; ?></title>
<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
</head> </head>
<body> <body>
<div class="container"> <div class="container">
@@ -33,9 +32,9 @@ symlink ("../../index.html", "index.html");
symlink ("../../grep.php", "grep.php"); symlink ("../../grep.php", "grep.php");
if (strpos($id, '_') !== false) { 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 { } 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`; echo `sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcache`;

View File

@@ -3,12 +3,6 @@ CACHE MANIFEST
CACHE: CACHE:
tweets.txt tweets.txt
/main.js /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 /jquery.js
NETWORK: NETWORK:
* *

View File

@@ -5,8 +5,6 @@
<title>Grepping twitter backup</title> <title>Grepping twitter backup</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no"> <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> <script src="/jquery.js"></script>
</head> </head>

View File

@@ -10,9 +10,6 @@
<link rel=icon href=/icons/greptweet_birdie.svg sizes="any" type="image/svg+xml"> <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"> <link href="/icons/120x120.png" sizes="120x120" rel="apple-touch-icon">
<meta name="description" content="Download and search your tweets - no password login required!"> <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> </head>
<body> <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 = window.location.pathname.split('/')[2];
$("#name").html(NAME); $("#name").html(NAME);
appletouchicon = document.createElement('link'); // appletouchicon = document.createElement('link');
appletouchicon.setAttribute("rel", "apple-touch-icon"); // appletouchicon.setAttribute("rel", "apple-touch-icon");
appletouchicon.setAttribute("href", "https://api.twitter.com/1/users/profile_image?screen_name=" + NAME + "&size=bigger"); // TODO: Grab profile URL out https://dev.twitter.com/overview/general/user-profile-images-and-banners
document.getElementsByTagName("head")[0].appendChild(appletouchicon); // 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() { $("input[type=search]").change(function() {
query = this.value; query = this.value;
@@ -74,7 +75,7 @@ $(document).ready(function() {
$("input[type=text]").focus(); $("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>'; footer += '<a href="' + "/f/" + NAME + '" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-refresh"></i> Update</a></p>';
$("#source").html(footer); $("#source").html(footer);
document.title = NAME; document.title = NAME;