mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 12:11:05 -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
|
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>
|
||||||
|
|||||||
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>
|
<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`;
|
||||||
|
|||||||
@@ -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:
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
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 = 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user