mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
Further tweaks... all I need is some style !
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -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>
|
||||
|
||||
6
www/bootstrap/css/bootstrap.min.css
vendored
6
www/bootstrap/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -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`;
|
||||
|
||||
@@ -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:
|
||||
*
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
8
www/jquery.js
vendored
File diff suppressed because one or more lines are too long
11
www/main.js
11
www/main.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user