Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pastebin shortcut #4

Open
wants to merge 5 commits into
base: composer
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions BinShortcut/BinShortcut.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta name="apple-mobile-web-app-status-bar-style" content="black-transparent">
<meta name="apple-mobile-web-app-capable" content="no">
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bin shortcut</title>
<link rel="icon" href="https://barakbinyamin.github.io/BinShortcut/pastebin.png" type="image/x-icon" />
<link rel="apple-touch-icon" href="https://barakbinyamin.github.io/BinShortcut/pastebin.png">
<link rel="stylesheet" type="text/css" href="darktheme.css">
<script src="goto.js"></script>
</head>

<body class="night dark-scheme">

<div style="text-align: center;">
<h2 style="color: rgb(57, 255, 20)">Type in your 5-Letter code</h2>
<input class="classy" type="text" id="code" name="fname"><br><br>
<input type="submit" value="goto Pastebin" onclick="goto()">
</div>
<footer class= "coding-green" style="text-align: center;">
<p>Many thanks to Pastebin!!!</p>
</footer>

</body>
</html>

34 changes: 34 additions & 0 deletions BinShortcut/darktheme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.day { background: #eee; color: black; }
.night { background: #333; color: white; }

@media (prefers-color-scheme: dark) {
.day.dark-scheme { background: #333; color: white; }
.night.dark-scheme { background: black; color: #ddd; }
}

@media (prefers-color-scheme: light) {
.day.light-scheme { background: white; color: #555; }
.night.light-scheme { background: #eee; color: black; }
}

.classy{
padding: 15px 0 15px 12px;
font-weight: 400;
color: #377D6A;
background: rgba(0, 10, 102,0.3);
border: none;
outline: none;
color: #fff;
text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
border: 1px solid rgba(0,0,0,0.3);
border-radius: 4px;
box-shadow: inset 0 -5px 45px rgba(100,100,100,0.2), 0 1px 1px rgba(255,255,255,0.2);
}

footer{
width: 100%;
bottom: 0;
position: absolute;
align-items: center;
color: rgb(57, 255, 20)
}
12 changes: 12 additions & 0 deletions BinShortcut/goto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function goto(){
url = "https://clbin.com/" + document.getElementById("code").value;
window.open(url, '_blank')
}

//attaching events to keys
document.onkeydown = function(e) {
//Enter or space bar
if (e.which == 13 || e.which == 32 ) {
goto();
}
}
Binary file added BinShortcut/pastebin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ improvements made.
It's been in limbo for a while, but from Oct 2013 has been available on
GitHub.

Forks
=====
* http://bitbucket.org/j-samuel/paste - this is a fork from 2010 and no update since 2015-04-19


To Do
=====
This started out as a single-script site back in 2002, and grew somewhat
Expand All @@ -31,17 +36,17 @@ pull request.

Further documentation
=====================
See INSTALL for installation instructions
See UPGRADE for information on upgrading pastebin from an older verion
See CHANGES for version history
See LICENCE for licencing terms
* See INSTALL for installation instructions
* See UPGRADE for information on upgrading pastebin from an older verion
* See CHANGES for version history
* See LICENCE for licencing terms

Contact
=======
email: paul at elphin dot com
blog: http:/blog.dixo.net
twitter: @lordelph
skype: lordelph
* email: paul at elphin dot com
* blog: http:/blog.dixo.net
* twitter: @lordelph
* skype: lordelph



Expand Down