The web design and pages for my personal website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
1.1 KiB

  1. {{ define "title" }}Start Page{{ end }}
  2. {{ define "content" }}
  3. <h1>Start Page</h1>
  4. <h2>Google</h2>
  5. <form method="GET" action="https://www.google.com/search">
  6. <input type="text" size="80" class="form-control inline" name="q" id="google-search">
  7. <button type="submit" class="btn btn-primary">Go</button>
  8. </form>
  9. <h2>Slack Teams</h2>
  10. <button data-url="https://godaddy.slack.com/" class="app btn btn-primary">GoDaddy Slack</button>
  11. <button data-url="https://la-engineers.slack.com/" class="app btn btn-primary">LA-Engineers Slack</button>
  12. <button data-url="https://botmakers.slack.com/" class="app btn btn-primary">Botmakers Slack</button>
  13. <button data-url="https://socalpython.slack.com/" class="app btn btn-primary">SoCal Python Slack</button><p>
  14. <em>David is the best.</em>
  15. {{ end }}
  16. {% block scripts %}
  17. <script>
  18. $(document).ready(function() {
  19. $("#google-search").focus();
  20. $("button.app").click(function() {
  21. var url = $(this).attr("data-url");
  22. launchApp(url);
  23. });
  24. });
  25. function launchApp(url) {
  26. window.open(url, "_blank", "width=1024,height=768,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0");
  27. }
  28. </script>
  29. {% endblock %}