Commits

a2c committed 9d90d24

change html

Comments (0)

Files changed (1)

templates/pjax.html

 <head>
   <meta charset="UTF-8">
   <title>PJAX and Flask</title>
+  <style type="text/css">
+  #main{
+    padding: 10px;
+    margin: 10px;
+    width: 200px;
+    border: 1px solid black;
+  }
+  </style>
   <script src="/static/js/jquery-1.6.2.min.js" type="text/javascript"></script>
   <script src="/static/js/jquery.pjax.js" type="text/javascript"></script>
-
   <script>
-  //$(function() {
   $(document).ready(function() {
     console.log('load done');
     $('a.js-pjax').click(function(evt){
   </script>
 </head>
 <body>
-<section id="logo">
-<pre>
-        .--.
-       /    \
-      ## a  a
-      (   '._)
-       |'-- |
-     _.\___/_   ___pjax___
-   ."\> \Y/|<'.  '._.-'
-  /  \ \_\/ /  '-' /
-  | --'\_/|/ |   _/
-  |___.-' |  |`'`
-    |     |  |
-    |    / './
-   /__./` | |
-      \   | |
-       \  | |
-       ;  | |
-       /  | |
- jgs  |___\_.\_
-      `-"--'---'
-</pre>
-<br>
+
+<div id="main">
+  {% if p.main  %}
+    {{ p.main }}
+  {% endif %}
+</div>
+
 <h3>非同期バージョン</a><p/>
 <a href="/parts/x" data-pjax="main" class='js-pjax'>パーツX</a><br>
 <a href="/parts/y" data-pjax="main" class='js-pjax'>パーツY</a><br>
 <a href="/parts/y">パーツY</a><br>
 <hr>
 
-<div id="main">
-{% if p.main  %}
- {{ p.main }}
-{% endif %}
-</div>
 </body>
 </html>