Skip to content

Instantly share code, notes, and snippets.

@josephhays
Last active March 28, 2017 13:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephhays/44b5ca13ff42ad8f8380 to your computer and use it in GitHub Desktop.
Save josephhays/44b5ca13ff42ad8f8380 to your computer and use it in GitHub Desktop.
StackShare comparison tool
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>T'si Ma Studios | Tools</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<div class="container">
<h1> Stackshare comparison tool </h1>
<p> I couldn't find an easy tool to use stackshare.io's convienent comparison service, so I made a super cheesy one. </p>
<h2> I wanna see <input type="text" placeholder="slack" id="serviceOne" class="form-control"> vs. <input type="text" placeholder="kato" id="serviceTwo" class="form-control"> <button class="btn btn-primary" id="fight">fight!</button>
</h2>
<p>Please note: if a service that you specify is not found on StackShare, you will be redirected to StackShare's homepage. I was simply to lazy to find a work around.</p>
<hr />
<p> A public gist is <a href="#">here</a>, if you feel like you can make this better. (You probably can!)</p>
</div>
<script>
$(function() {
var servOne = $("#serviceOne").val();
var servTwo = $("#serviceTwo").val();
$("#fight").on('click', function() {
window.location = 'http://www.stackshare.io/stackups/' + servOne + "-vs-" + servTwo ;
});
});
</script>
</body>
</html>
@ValeroK
Copy link

ValeroK commented Mar 28, 2017

Your site subscription "http://tools.tsimastudios.com/stackshare" is expired so can't examine this amazing feature :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment