Skip to content

Instantly share code, notes, and snippets.

@sherbondy
Created April 7, 2011 20:30
Show Gist options
  • Save sherbondy/908642 to your computer and use it in GitHub Desktop.
Save sherbondy/908642 to your computer and use it in GitHub Desktop.
Mobile website example.
<!DOCTYPE HTML>
<html>
<head>
<title>{% block title1 %}Tetribe{% endblock %} // Tetribe</title>
<link rel="apple-touch-icon" href="/static/2/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/static/2/favicon.png">
<link rel="stylesheet" href="/static/2/style.css" type="text/css" media="screen">
<meta name="viewport" content="width = device-width, initial-scale = 1.0,
maximum-scale = 1.0, user-scalable = no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"
type="text/javascript"></script>
<script src="/static/2/jquery.form.js" type="text/javascript"></script>
<script src="/static/2/forms.js" type="text/javascript"></script>
<script src="/static/2/search.js" type="text/javascript"></script>
<script src="/static/2/scripts.js" type="text/javascript"></script>
</head>
<body>
<div id="header">
<h1><a href="/">TETRIBE</a></h1>
<img class="loader" src="/static/2/animation.gif" alt="loading">
<p id="name">
{% if you %}
<a href="/user/{{ you.key.id }}">Hello, <strong>{{ you.name|escape }}</strong></a>
{% else %}
<a class="redirect" href="{{log_url}}">Hi, <strong>Guest.</strong> Login?</a>
{% endif %}
</p>
</div>
<div id="nav">
<a href="/" class="first {{current_leaders}}">Leaders</a>
<a href="#search" id="search-link" class="{{current_search}}">Search</a>
{% if you %}
<a href="/submit" class="{{current_submit}}">Submit</a>
{% else %}
<a href="{{log_url}}" class="redirect">Submit</a>
{% endif %}
<a href="/about" class="last {{current_about}}">About</a>
<p id="entree">{{entries_count}}</p>
<!--strip_nav_marker-->
</div>
<div id="notice"></div>
<p id="page-title">{% block title2 %}Tetribe{% endblock %}</p>
<form action="/search" method="get" id="search">
<div id="search-box">
<input type="text" name="player" id="player" value="Search for player">
<button id="search-close">Cancel</button>
<button type="submit" id="search-go">Search</button>
</div>
</form>
<div id="content">
{% block body %}Invalid page.{% endblock %}
<!--strip_skeleton_marker-->
</div>
{% if you %}
<div id="foot">
<p>
{% if is_admin %}
<a id="adminurl" href="/admin">Admin (<span id="par_entries">{{entries_count}}</span>)</a>
{% endif %}
<a class="redirect" href="{{log_url}}">Logout?</a>
</p>
</div>
{% endif %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment