1
0
mirror of https://github.com/kirsle/kirsle.net synced 2024-12-22 06:59:29 +00:00

Add more apps to my start page

This commit is contained in:
Noah 2015-08-31 18:18:51 +00:00
parent 0496f59b1e
commit 40e8bf7adc

View File

@ -13,8 +13,9 @@
<h2>Web Apps</h2> <h2>Web Apps</h2>
<button id="app-slack" class="btn btn-primary">ZEFR Slack</button> <button data-url="https://zefr.slack.com/" class="app btn btn-primary">ZEFR Slack</button>
<button id="app-fb" class="btn btn-primary">Facebook</button> <button data-url="https://la-engineers.slack.com/" class="app btn btn-primary">LA-Engineers Slack</button>
<button data-url="https://www.facebook.com/" class="app btn btn-primary">Facebook</button>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
@ -22,11 +23,9 @@
$(document).ready(function() { $(document).ready(function() {
$("#google-search").focus(); $("#google-search").focus();
$("#app-slack").click(function() { $("button.app").click(function() {
launchApp("https://zefr.slack.com/"); var url = $(this).attr("data-url");
}); launchApp(url);
$("#app-fb").click(function() {
launchApp("https://www.facebook.com/");
}); });
}); });