2015-07-17 19:08:10 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block title %}Start Page{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<h1>Start Page</h1>
|
|
|
|
|
|
|
|
<h2>Google</h2>
|
|
|
|
|
|
|
|
<form method="GET" action="https://www.google.com/search">
|
|
|
|
<input type="text" size="80" class="form-control inline" name="q" id="google-search">
|
|
|
|
<button type="submit" class="btn btn-primary">Go</button>
|
|
|
|
</form>
|
|
|
|
|
2015-12-05 22:21:55 +00:00
|
|
|
<h2>Slack Teams</h2>
|
2015-07-17 19:08:10 +00:00
|
|
|
|
2015-08-31 18:18:51 +00:00
|
|
|
<button data-url="https://la-engineers.slack.com/" class="app btn btn-primary">LA-Engineers Slack</button>
|
2015-11-24 18:04:16 +00:00
|
|
|
<button data-url="https://botmakers.slack.com/" class="app btn btn-primary">Botmakers Slack</button>
|
2015-12-05 22:21:55 +00:00
|
|
|
<button data-url="https://socalpython.slack.com/" class="app btn btn-primary">SoCal Python Slack</button>
|
2015-07-17 19:08:10 +00:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$("#google-search").focus();
|
|
|
|
|
2015-08-31 18:18:51 +00:00
|
|
|
$("button.app").click(function() {
|
|
|
|
var url = $(this).attr("data-url");
|
|
|
|
launchApp(url);
|
2015-07-17 19:08:10 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function launchApp(url) {
|
|
|
|
window.open(url, "_blank", "width=1024,height=768,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|