Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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 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