diff options
author | 2013-07-23 03:39:32 +0700 | |
---|---|---|
committer | 2013-07-23 03:39:32 +0700 | |
commit | c449c1fe8b43f41714fe0cd87bdacf03a68587fe (patch) | |
tree | 59feeb6c4c8c5e4f9cc2697f0bd27d06c05e6514 /src/java/com/juick/http/www/PageTemplates.java | |
parent | c37d78969da40f4238573bbee2c533c878ea3844 (diff) |
remove "related tags"
/dev/
Diffstat (limited to 'src/java/com/juick/http/www/PageTemplates.java')
-rw-r--r-- | src/java/com/juick/http/www/PageTemplates.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index b5b187a0..10c02a80 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -23,7 +23,6 @@ import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.sql.Connection; -import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; @@ -51,10 +50,10 @@ public class PageTemplates { out.println("<!DOCTYPE html>"); out.print("<html>"); out.print("<head>"); - out.print("<link rel=\"stylesheet\" href=\"/style.2013041001.css\"/>"); + out.print("<link rel=\"stylesheet\" href=\"/style.2013072200.css\"/>"); out.print("<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js\" defer=\"defer\"></script>"); out.print("<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js\" defer=\"defer\" async=\"async\"></script>"); - out.print("<script type=\"text/javascript\" src=\"/scripts.2013032900.js\" defer=\"defer\"></script>"); + out.print("<script type=\"text/javascript\" src=\"/scripts.2013072200.js\" defer=\"defer\"></script>"); if (headers != null) { out.print(headers); } @@ -240,7 +239,7 @@ public class PageTemplates { } else { return sdfFull.format(pDate); } - } catch (ParseException e) { + } catch (Exception e) { return fulldate; } } @@ -253,7 +252,7 @@ public class PageTemplates { + "var d=new Date(" + date.getTime() + ");" + "document.write((d.getDate()<10?'0':'')+d.getDate()+'.'+(d.getMonth()<9?'0':'')+(d.getMonth()+1)+'.'+d.getFullYear()+' '+(d.getHours()<10?'0':'')+d.getHours()+':'+(d.getMinutes()<10?'0':'')+d.getMinutes());" + "</script>"; - } catch (ParseException e) { + } catch (Exception e) { System.err.print(e); } return ""; |