A bit more work to get every URL working exactly as it has been

git-svn-id: https://zxing.googlecode.com/svn/trunk@2032 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-11-13 19:49:53 +00:00
parent 898757898c
commit 51389e88f0
6 changed files with 60 additions and 11 deletions

View file

@ -93,7 +93,7 @@ body {
background-color: #fffbcc; background-color: #fffbcc;
} }
.required { .required {
background: #ffffff url(static/required-field-bg.png) repeat-y; background: #ffffff url(/required-field-bg.png) repeat-y;
} }
.errorMessage { .errorMessage {
padding-left: 110px; padding-left: 110px;

View file

@ -2,9 +2,9 @@
<html> <html>
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="Generator.css"> <link type="text/css" rel="stylesheet" href="/Generator.css">
<title>QR Code Generator from the ZXing Project</title> <title>QR Code Generator from the ZXing Project</title>
<script type="text/javascript" language="javascript" src="generator/generator.nocache.js"></script> <script type="text/javascript" language="javascript" src="/generator/generator.nocache.js"></script>
</head> </head>
<body> <body>
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>zxing</application>
<version>2</version>
</appengine-web-app>

View file

@ -8,14 +8,58 @@ handlers:
static_files: Generator.html static_files: Generator.html
upload: Generator.html upload: Generator.html
- url: /generator/
static_files: Generator.html
upload: Generator.html
- url: /scan - url: /scan
static_files: scan.html static_files: scan.html
upload: scan.html upload: scan.html
- url: /scan/
static_files: scan.html
upload: scan.html
- url: / - url: /
static_files: index.html static_files: index.html
upload: index.html upload: index.html
- url: /(.*) - url: /favicon.ico
static_files: \1 static_files: favicon.ico
upload: / upload: favicon.ico
- url: /Generator.css
static_files: Generator.css
upload: Generator.css
- url: /Generator.html
static_files: Generator.html
upload: Generator.html
- url: /index.html
static_files: index.html
upload: index.html
- url: /required-field-bg.png
static_files: required-field-bg.png
upload: required-field-bg.png
- url: /scan.html
static_files: scan.html
upload: scan.html
- url: /style.css
static_files: style.css
upload: style.css
- url: /zxingicon.png
static_files: zxingicon.png
upload: zxingicon.png
- url: /zxingiconsmall.png
static_files: zxingiconsmall.png
upload: zxingiconsmall.png
- url: /generator/(.*)
static_files: generator/\1
upload: generator/(.*)

View file

@ -4,7 +4,7 @@
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Zebra Crossing</title> <title>Zebra Crossing</title>
<link rel="stylesheet" href="style.css" type="text/css"/> <link rel="stylesheet" href="/style.css" type="text/css"/>
</head> </head>
<body> <body>
@ -15,11 +15,11 @@
<table width="600" cellpadding="4" cellspacing="8"> <table width="600" cellpadding="4" cellspacing="8">
<tr> <tr>
<td valign="top"> <td valign="top">
<img src="zxingicon.png" width="128" height="128"/> <img src="/zxingicon.png" width="128" height="128"/>
</td> </td>
<td valign="top"> <td valign="top">
<p>Welcome to the Zebra Crossing site at zxing.appspot.com.</p> <p>Welcome to the Zebra Crossing site at zxing.appspot.com.</p>
<p> This site features a <a href="generator">QR Code Generator</a>, which <p> This site features a <a href="/generator">QR Code Generator</a>, which
allows you to create a two-dimensional barcode that can be scanned allows you to create a two-dimensional barcode that can be scanned
with a camera phone. These QR Codes can contain a URL, contact with a camera phone. These QR Codes can contain a URL, contact
information, a calendar event, and much more.</p> information, a calendar event, and much more.</p>

View file

@ -4,7 +4,7 @@
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Zebra Crossing</title> <title>Zebra Crossing</title>
<link rel="stylesheet" href="style.css" type="text/css"/> <link rel="stylesheet" href="/style.css" type="text/css"/>
</head> </head>
<body> <body>
@ -15,7 +15,7 @@
<table cellpadding="4" cellspacing="8"> <table cellpadding="4" cellspacing="8">
<tr> <tr>
<td valign="top"> <td valign="top">
<img src="zxingiconsmall.png" width="48" height="48"/> <img src="/zxingiconsmall.png" width="48" height="48"/>
</td> </td>
<td valign="top"> <td valign="top">
<p>A web page you are viewing would like to scan a barcode with your camera phone. To do <p>A web page you are viewing would like to scan a barcode with your camera phone. To do